Slow Macro - Need ideas to speed up

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Slow Macro - Need ideas to speed up

Don Cartagena
I have written a macro to essentially process a rectangular ROI.  All I am
doing is get the pixel values for each channel in an RGB image and printing
this information to the "Log" window.
The macro seems to take a considerable amount of time (several hours) to
process 1 image.  I assume because I am performing I/O operations (ie
printing the data for each pixel value to the log window.)

The image is approx 1280 * 960

The region of interest is approximately 425*300

Is there something that I can do to make the system process the image
quicker?  Is it possible to create some sort of table or data structure
through the macro language and just print everyhting at the end?

I have already setBatchMode(true) which has speed things up a lot.
Reply | Threaded
Open this post in threaded view
|

Re: Slow Macro - Need ideas to speed up

Don Cartagena
This is a good idea I didn't know you can do this.  I forgot to mention
though i need the x,y coordinates in addition to the respective RGB values.
Is there a way I can do that with your method?



On Fri, Dec 5, 2008 at 1:32 PM, Jim Quinn
<[hidden email]>wrote:

> Why not duplicate the image, crop to the ROI,
> save as text?
>
>