LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quickly go from 2D array to bitmap?

Hey all,

 

Is there a fast way to go from a 2D-Array to a bitmap image? Right now I'm going from 2D Array -> Draw Unflattened Pixmap.vi -> Picture to Pixmap.vi -> Write BMP File.vi, and it's taking way longer to than it seems like should be necessary.

 

Anyone have any suggestions?

 

Thanks in advance for your assistance.

0 Kudos
Message 1 of 8
(3,882 Views)

How big is the array? What is the datatype? What is the picture type? How long does it actually take?

Message 2 of 8
(3,865 Views)

Altenbach,

 

Thanks for the response!

 

The array is 600 x 600, datatype is U8, picture type is BMP (depth 1), right now it takes about 2-3sec to cycle through 9 images.

 

 

0 Kudos
Message 3 of 8
(3,859 Views)

What is the meaning of "cycle through images"?

Message 4 of 8
(3,835 Views)

The bitmap images get written then displayed in the program.

 

I should've stated "It took 3 seconds to write 9 bitmap images".

 

Thanks for the help!!

0 Kudos
Message 5 of 8
(3,830 Views)

Well you could re-write the pixmap utility.  Of course I don't really think 3 seconds is that long for 9 images, besides I'm not sure how much of a improvement you'd see.

Message 6 of 8
(3,783 Views)

You could also use a faster harddrive/SSD… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(3,773 Views)

My aren't you a sassy one...

0 Kudos
Message 8 of 8
(3,757 Views)