Login  Register

Slow Macro - Need ideas to speed up

Posted by Don Cartagena on Dec 05, 2008; 6:24pm
URL: http://imagej.273.s1.nabble.com/Slow-Macro-Need-ideas-to-speed-up-tp3694315.html

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.