LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

16 bit reading problem

Solved!
Go to solution

Hi all,

 

I am having a problem with reading a 16 bit image using labview. The story is that I save 16 bit images using labview BUT I subtract the lowest gray value before saving (i.e.. -32768). Thus the new range of gray levels is 0-65536 instead of -32768 - 32767. So far so good, the problem occurs when reading the images using anther vi we use. The images are truncated at 32 767 and every thing in between 32768 and 65536 is lost! Post reading processing is kind of meaningless since the info is already lost.

 

Any one can help with this problem I will appreciate it.

Thanks in advance

0 Kudos
Message 1 of 4
(2,520 Views)
Solution
Accepted by topic author mssm22

Hi mssm22,

sounds as you use the wrong datatype while reading.

 

Mike

0 Kudos
Message 2 of 4
(2,480 Views)

 


@MikeS81 wrote:

Hi mssm22,

sounds as you use the wrong datatype while reading.

 

Mike


Yes, I would imagine he is using a signed instead of unsigned.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 4
(2,477 Views)

Thanks guys! it is a signed unsigned issue. Yet it occurred when I saved the images and not while reading them. The saved images are signed thus the range is -32768 - 32767.

 

Regards

0 Kudos
Message 4 of 4
(2,456 Views)