CODE to perform a SNAPSHOT within an ROI . . .
I am looking for the equivalent of the SNAPSHOT COMMAND but I would like the image that is the result to be just the ROI.
So as an example . . .
I have an image that is 3000 x 3000 pixels. I would like to work with an ROI that is 1000 x 1000. I have done a COUNT in the ROI. Now I would like a SNAPSHOT of just the ROI.
Here is an illustration with:
-- AA on the left being the 3000 x 3000 image with the 1000 x 1000 ROI with the COUNT within it
-- BB on the right being the SNAPSHOT of the 1000 x 1000 ROI with the COUNT burned into it.
I did this manually by:
-- Saving the ROI from AA in the FEATURES MANAGER
-- Doing a SNAPSHOT on AA
-- Recalling the ROI from AA into the SNAPSHOT
-- Cropping the 3000 x 3000 pixel SNAPSHOT to the appropriate 1000 x 1000 SNAPSHOT
-- Deleting the 3000 x 3000 pixel SNAPSHOT
The result of these steps is BB.
Is there an efficient way to do this with CODE or should I write CODE to perform the steps that I did manually to get from AA to BB?
I know that I could CROP AA to the ROI before doing the COUNT, do a COUNT on the CROPPED IMAGE, and then do a SNAPSHOT of the CROPPED + COUNTED IMAGE but I would like to avoid working with an INTERMEDIATE IMAGE if possible.