LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why the value of 24bit bmp file read by the labview different from the original

when i use labview to read a bmp file,it looks just fine,but the the pixel value is dfferent from the original,how it changed,can i change it back

0 Kudos
Message 1 of 5
(2,637 Views)

Hello,

Can you give more details, like show the code you use to load the BMP file and how you compare the loaded data with the BMP file so you can say it's different.

And also does it happen for all your BMP file or just a particular one?

 

Trying to help...


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 5
(2,629 Views)

i put the details about my problem in my attachment

0 Kudos
Message 3 of 5
(2,613 Views)

right... Your "result" indicator is an I16, it goes from -32768 to 32767... so that's not enough, before the 2 for loops, just after the Integer to colour value VI  you should place a convertion node to convert to i64 and also change you result display representation to i64.

See attached VI.

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 5
(2,608 Views)

it works a little,but the result is not totally right.we can see the clearest image is 3.bmp then 2.bmp then 4.bmp then 1.bmp then 5.bmp then 6.bmp then 7.bmp then 8.bmp.now use iii vi it doesn't work

0 Kudos
Message 5 of 5
(2,603 Views)