Login  Register

possible bug when importing text image containing NaN

Posted by Neil Fazel on Feb 09, 2015; 6:29pm
URL: http://imagej.273.s1.nabble.com/possible-bug-when-importing-text-image-containing-NaN-tp5011530.html

I have created a text file having 480 rows, and on each row there are 640 tab-separated numbers. I expected that, upon importing this file as a text image, the image would be 640x480 pixels. It is in fact 640x479 pixels. The image has boundary rows and columns with NaN pixels. I suspect this is what's causing the problem, because when I replaced the NaNs with 0's, the text file was correctly imported as a 640x480 image.

Here's a Dropbox link to the text file which, when imported, produces a 640x479 image. (I used the unix command 'wc -l 8263_phasemap.txt' to determine that the input text file has 480 rows.)

https://www.dropbox.com/s/kc3fymk8g0csbsc/8263_phasemap.txt?dl=0

Thanks,
Neil

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