Re: Setting values to NaN with a macro
Posted by
Miguel Tapia R. on
Nov 15, 2016; 1:23am
URL: http://imagej.273.s1.nabble.com/Re-Setting-values-to-NaN-with-a-macro-tp5017580.html
Hi,
I've tested the following macro wrote by ctrueden:
newImage("Untitled", "8-bit black", 400, 400, 1);
run("32-bit");
makeRectangle(83, 88, 235, 228);
setForegroundColor(50, 50, 50);
run("Draw");
run("Macro...", "code=[if (v==0) v=NaN]");
print("(1, 1) = " + getPixel(1, 1));
on ImageJ 64-bit 1.51h and it show "0" again instead of "NaN", any suggestions? I need to be able to assign NaN values
Thanks in advance,
Miguel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html