How to cut an image into image parts ?
Posted by
rajava on
Sep 26, 2011; 11:34am
URL: http://imagej.273.s1.nabble.com/How-to-cut-an-image-into-image-parts-tp3682979.html
I am trying to write a macro to cut a simple line drawing image into image parts. I am trying to use the wand tool and cut but it doesn't seem to work. The is the sample image
Here is the code i was trying ,
open("
http://www.coloringparty.eu/images/zoom/toddlers/viewsize/Rocket-toddlers.gif")
doWand(177, 478);
run("Cut");
doWand(338,321);
run("Cut");
Also, Is there a way to find a point(x,y) to doWand so that it comprises of a part and find as much part as possible programmatically ? Any help is this matter is greatly appreciated, Thanks.

Cut image should something like this , but this was cut using wand manually,