08-12-2010 03:30 AM - edited 08-12-2010 03:31 AM
Dear All,
I am loading a 16-bit image as shown below, and the "File Data Type out" output is incorrect (6 instead of 16).
Nevertheless, the "Image Display" proves that it is correctly loaded (based on pixel values, up to 65k).
My VI works anyway, but am I missing something ?
Thanks
Ghislain
08-16-2010 07:17 AM
Hello Ghislain_B,
Tnaks for posting onto National Instruments forum.
Can you send the picture you use?
08-16-2010 10:22 AM
Hi BenjaminR,
I'm sorry but I couldn't find a way to post my .tif image.
Maybe this info is enough :
Every pixel of this image has a value of 2943 (it's just a backgroujnd image).
Here are the properties of this image as seen in ImageJ :
Title: ImgFondNePasSupprimer.tif Width: 1376 pixels Height: 1038 pixels ID: -3 Coordinate origin: 0,0 Bits per pixel: 16 (unsigned) Display range: 2160 - 8400 No Threshold Magnification: 0.75 Uncalibrated
If it isn't enough, please explain me how to post it
Thanks !
Ghislain
08-16-2010 10:58 AM
Hi,
File Data Type out indicates the pixel size defined in the header for standard image file types. File Options are not necessary for reading standard image files. So the 006 you get should be in the header of your TIF file.
08-16-2010 12:54 PM - edited 08-16-2010 12:55 PM
Thanks for your help but I couldn't find out how to look at the image reader !
The best I tried was to open it with imageJ in debug mode :
FileInfo: name=ImgFondNePasSupprimer.tif, dir=/Users/Ghislain/Desktop/, url=, width=1376, height=1038, nImages=1, type=ushort, format=2, offset=170, whiteZero=f, Intel=f, lutSize=0, comp=1, ranges=null, samples=1 Image Description: ImageJ=1.40g min=2160.0 max=8400.0
Well, "type=ushort" is correct isn't it ?
The most simple would be to upload the image, but I still don't know how to do this...
Regards,
Ghislain
08-16-2010 12:58 PM
You just need to add your photo in a ZIP file then add it here.
08-16-2010 01:27 PM
Oh I'm sorry : I had tried the "insert image" button, but I had not even seen the "attachments" field.
I hope you'll find the problem in the header of this image, otherwise it's far more complicated...
Thanks for your help again !
Ghislain
08-17-2010 06:59 AM
Hello,
I have implemented a TIFF file reader where you can have all the information stored in the hearder.
Is the image you obtain is correct in your application? Why do you need to have this ouput?
08-17-2010 12:02 PM
Thanks, I'll try the library for the TIF header. But did you see anything abnormal yourself with my image ?
Yes, as I said in my first message, the Image is displayed as a 16-bit image, which is perfect. And if I save it, it remains a 16-bit image.
As you can guess, I don't really use "file data type out" : I just noticed it didn't work and that's why I posted here. 😉
We'll find what's wrong !
Regards,
Ghislain
08-19-2010 11:49 AM
Well, I'm sorry but your library didn't help me understand why it says 6 and not 16-bits.
Or perhaps I didn't understand it well.
When my file was loaded, the "image type" entry remained at "0" : is it normal ?
Ghislain