Login  Register

Re: Anaglyph Macro Speedup

Posted by Albert Cardona on May 05, 2008; 10:32pm
URL: http://imagej.273.s1.nabble.com/Anaglyph-Macro-Speedup-tp3696335p3696336.html

Hi Jon,

> After writing this macro I found the nice plugin by Ronald Petie that
> does it much faster.
>
> But I would like to know: Is there any way to speed up this sort of
> macro: one that does pixel by pixel operations on two images and then
> writes the result to a third image.  I have tried to speed it up, but
> it is very slow on a large image.


The macro language uses strings as internal data representation, so no,
you can't speed up pixel by pixel operations.

I would use the macro language for very high level sequences of comands
only, such as open an image, run a plugin on it, save the result and
close it. Everything else is iddle play; a java plugin will work orders
of magnitude faster.

Albert

--
Albert Cardona
http://www.mcdb.ucla.edu/Research/Hartenstein/acardona