Crop Images into smaller images
I am trying to work on a set of some very large images. My computer always freezes. I found that if I crop them into pieces I can do the analysis on each piece. Is there a way I a macro can crop the image into 4 or 6 images and do the analysis automatically?
Thanks
Matt
Thanks
Matt
0
Answers
Matt321 --
If CROPPING the IMAGE and then analyzing the smaller IMAGE works it seems it would be possible to use multiple ROIs in sequence to perform the same type of operation. This might be easier to handle and potentially you could save the results from each ROI and then bring them all back into the image as a SUMMARY.
Either operation can be automated with using the PROJECT WORKBENCH but I think that automating the ROI option would be easier for a novice than the MULTIPLE IMAGE option.
If you turn on the RECORD MACRO TOOL and perform your ROI OPERATIONS or CROPPING OPERATIONS, then STOP RECORDING, the code that is generated should be a good start to a MACRO or an APP that would do what you want.
I hope this information is helpful.
-- Matt
You can use the macro below as an example. It shows how the processing can be done using a loop and ROIs. The macro will go through the image creating ROIs of smaller size and calling DoROIProcessing function for every ROI. The sample macro just crops the ROI to a separate image, but you can extent it to add the processing you need.
I've also attached the complete project.
Yuri