Re: Edge Enhancement
Posted by
Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Edge-Enhancement-tp5003576p5014757.html
On Friday 23 Oct 2015 17:45:31 Sidnei Paciornik wrote:
> Hi Gabriel
> Thanks for the patience. I have just confirmed it is a memory error.
Yes, it is, I can trigger the error in linux.
For small images, storing the pixels as an array is not an issue, but it is
with large ones, which was an oversight when I wrote that macro.
Doing it one pixel at a time is not practical because the macro would need to
swap the images every time you access a pixel from each of the images it uses.
Instead you can compute an entire row of pixels at a time. At least this will
reduce the number of swaps (which seem to take an inordinate amount of time in
Java > 1.6).
The attached macro does it that way and hope that runs without problems in
your images. It is slower, however, so perhaps you might want to rewrite as a
plugin.
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html