Login  Register

Re: Non Local Means filter crash

Posted by jumpfunky on Dec 09, 2015; 5:16pm
URL: http://imagej.273.s1.nabble.com/Non-Local-Means-filter-crash-tp5015190p5015191.html

Dear Sidnei,

I can't reproduce the error at my side. Could send me your image that I
can try to reproduce and fix?

Kind Regards,
Thorsten Wagner

Am Mittwoch, den 09.12.2015, 16:30 +0000 schrieb Sidnei Paciornik:

> Dear Colleagues,
> I have this strange behavior with the Non Local Means filter, used
> within the
> macro below:
> makeRectangle(1, 1, 835, 1025); run(“Crop”); run(“Duplicate...”,
> “title=Background”); run(“Mean...”, “radius=50”);
> imageCalculator(“Subtract create 32-bit”, “HAADF-
> 08.jpg”,”Background”); selectWindow(“Result of HAADF-08.jpg”);
> rename(“Back_Corrected”); run(“8-bit”); run(“Duplicate...”,
> “title=BackCorrected_NLM”); run(“Non-local Means Denoising”,
> “sigma=15 smoothing_factor=1 auto”); run(“Duplicate...”,
> “title=BC_NLM_CLAHE”); run(“Enhance Local Contrast (CLAHE)“,
> “blocksize=257 histogram=256 maximum=3
> mask=*None*”); run(“Set Scale...”, “distance=239 known=50 pixel=1
> unit=nm”);
> The filter crashes with “java.lang.ArrayIndexOutOfBoundsException” if
> I make a
> rectangular selection and crop the image at the beginning.
> The filter behaves normally if I don´t make a ROI.
> It must be trivial but I just don´t get it. Any suggestions?
> Thank you!
> Prof. Sidnei Paciornik Grupo de Análise de Imagens e Microscopia
> Digital
> DEQM - Departamento de Engenharia Química e de Materiais
> PUC-Rio
>
> Rua Marquês de São Vicente 225
> Prédio Leme, Sala 501L
> Gávea - Rio de Janeiro - RJ
> 22451-900 - Brasil
> tel: (55) (21)3527-1243
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html