Search found 4 matches

by alexanderz
2017-01-06T13:34:42-07:00
Forum: Users
Topic: Nested Regions Isolation
Replies: 7
Views: 3203

Re: Nested Regions Isolation

Great, my task was accomplished.
Also you inspired my to learn more about UNIX scripts. Here is how I decided to go with the percentage calculation:

sortarr=(`echo ${arr[*]} | tr " " "\012" | sort -n -r | uniq | tr "\012" " "`)
shades=(`echo ${sortarr[*]} | tr " " "\012" | awk '{s=100*($1+1)/255 ...
by alexanderz
2017-01-05T02:26:26-07:00
Forum: Users
Topic: Nested Regions Isolation
Replies: 7
Views: 3203

Re: Nested Regions Isolation

Again, appreciate your detailed answer. I'm on a Mac, ImageMagick 6.9.7-2. Everything above worked perfectly, though it took me some time to figure out how the shell script works. I think I'm going to focus on finding the largest jump in area, sounds like a classic programming challenge, but that's ...
by alexanderz
2017-01-04T13:15:46-07:00
Forum: Users
Topic: Nested Regions Isolation
Replies: 7
Views: 3203

Re: Nested Regions Isolation

Thank you so much for the effort answering my question. The second method looks promising.

Though I'm not sure if I can automate the process for many images.

Just another quick question. How do I calculate the right threshold % values according to the objects' data?
by alexanderz
2017-01-04T09:49:28-07:00
Forum: Users
Topic: Nested Regions Isolation
Replies: 7
Views: 3203

Nested Regions Isolation

Hi,

I have a set of satellite footprint images like this:
https://s28.postimg.org/i75jhrr5p/143.png

I need to isolate each nested region as a separate image:
https://s29.postimg.org/vaga4wdl3/tester.png

One way to do this would be to use 'convert src.png -threshold [1%-100%] dest.png ...