LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read/ write image

I am trying to read/ write image using the attached programs. 

I read the image and perform some feedback loop operation which is a very fast process and save image for some condition met.

I find that my program is not able to write the exact data to the file (sometimes it misses information). Is there a need to assign memory before these operations specially write or is there

a better way? Are these programs correct in the first place ?

 

Thanks

Download All
0 Kudos
Message 1 of 3
(2,308 Views)

Hi Alice,

 

I believe that you're forgetting a couple information for us to know 🙂 What are the typical operations you perform after reading the picture, and before  writing it to a file ? We don't really have a clue about the format the pixels are (16-32-64 integers, float ?). Also, the bit depth can have an impact when it comes to write the image to a file. Also I did not really understand why you "loop" in the Write operation : image data -> picture  -> image data -> save.

 

Hope it'll give some thoughts 😃

Regards,

Eric

Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.

0 Kudos
Message 2 of 3
(2,298 Views)

Thanks for your reply.

Throughout I need to deal with U8 pixel format and saved/ read image is BMP file.

After reading the picture (call this image "I") I just perform some mathematical operations (addition, modulo) on some pixels and display it on a second monitor.

I'm doing an experiment in which I acquire data using a PXI-5124 card and based on these data and previous data comparison I save the image "I". So, my experiment

is running in feedback mode and each cycle takes 10 ms.

I find that sometimes the saved image is not as expected (some data is missing in the image). This means the program is not able to save the image properly.

Is there a better way to save image which is changing very quickly ?

0 Kudos
Message 3 of 3
(2,289 Views)