LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

working with several image and saving them in array

Hi every one

I want to import hundreds of images to Labview and after
that export them to the DMD. One approach that I found is that I give the
program the path of images folder and automatically let it read all image from
folder by recursive list file function. But the problem is by this method I
only have the file path and the transferring speed is a problem because I want
to transfer image in 0.001 s. so I decided to import all images and save them
in an array but I do not know how to save 1 bit bmp image to an array.

I really appreciate if anyone could me or give me a better
solution

Thanks

Morteza

 

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

Try this.  Reads in JPGs and builds an array of picures.

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 5
(2,398 Views)

Morti,

 

What is a DMD and how are you transferring data to this device?

 

You said you want to open a 1 bit BMP file, you are referring to monochrome bitmaps, correct?

 

Did the array of images posted previously help you?

Anthony F.
Staff Software Engineer
National Instruments
0 Kudos
Message 3 of 5
(2,381 Views)

I really appreciate the Matthew`s answer. It was such a VI that I
needed. I localized it to my VI.

Actually  DMD is Digital Micromirror Device by Texas Instruments
Please Refer to these Webpages:


http://en.wikipedia.org/wiki/Digital_micromirror_device

http://www.dlinnovations.com/index.php?page=products&section=d4100&subsection=alpbasic

http://www.ti.com/lsds/ti/analog/mems/mems.page?DCMP=TIHomeTracking&HQS=Other+OT+home_p_mems


this device is used in many applications such as projectors. I am
going to transfer thousands of monochrome bitmaps to this device
through labview in a fraction of time ( i.e in every milliseconds).
but there is 2 problem :

1- the transfering speed through USB

2- the processing speed of Labview

when I wanted to use an array for saving all image data memory went to 6GB, so Can you help me how to optimize the program to use less memory?

Thanks again

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

Hi Morti,

 

I'm glad Matthew's VI was helpful to you.  One thing I did see though was that it displays the picture arrays on the front panel.  If you don't need to view the array on your front panel, removing the indicator for it should significantly improve performance for you if you're processing a large number of images.  The following KB has a few things you can take into account.

 

How Can I Optimize the Memory Use in My LabVIEW VI?

http://digital.ni.com/public.nsf/allkb/771AC793114A5CB986256CAB00079F57?OpenDocument

 

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