I would like to crop these two ROIs as two images:
I am thinking to crop these two ROI synchronously by scripting, I found a code about creating image from ROI by D. R. G. Mitchell. So I wrote this:
image front := GetFrontImage()
imagedisplay imgdisp = front.ImageGetImageDisplay(0)
number roinum = imgdisp.ImageDisplayCountRois()
number x
for (x=0; x<roinum; x++)
{
roidisp = ImageDisplayGetROI(imgdisp,x)
image crop = front []
ShowImage(crop)
}
But it actually only works for one ROI. I'll appreciate if you could give me a clue about how to deal with more than one ROI's cropping. Thanks!