LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert *.dat to image

Solved!
Go to solution

Attach your dat file and we figure it out. Also attach your VI.

 

900x900 is 810000 pixels, but since you are reading it as U16, that would be twice as many bytes. What is the size of the array coming out of the read operation? Also, why do you have a coercion dot on the IAMQ conversion?

 

 

0 Kudos
Message 11 of 13
(443 Views)
Solution
Accepted by topic author tushar.V

@tushar.V wrote:

 

I'am able to convert *.dat to *.png  image, but i'am getting two images in earth.png


 

altenbach_0-1682266210613.png

 

 

You obviously get a double image if you data is actually U8 , but you are reading it as U16. Now you only have half the required pixels for the full size, so the  reshape will pad with black.

 

altenbach_0-1682266119371.png

 

 

0 Kudos
Message 12 of 13
(413 Views)

Thank you it worked.

0 Kudos
Message 13 of 13
(388 Views)