LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best approach to use 2 one dimensional position stages for laser engraving


Ravens Fan wrote:

Yes.  That is the palette.

 

The Read JPEG function puts out a cluster of different parameters.  One of which is a 1-D array called image consisting of unsigned bytes.  You could unbundle that to get the array.  You can use the image attributes in order to reshape the 2-D if you need to.  You may also need to do some analysis on the array  so that you can convert the 255 potential values to a single on/off value.

 

Be careful with JPEG's as they have built in compression.  You could have compression artifacts that would make the image not as sharp as you would desire.


Great! You mentioned that I would need to do some analysis to the array of bytes to make it 1/0 values. How can I do that? Is there another VI or is it part of this function? 

Also, is there a way I can save the output from the JPEG function to view as a text file?

Thanks for your prompt response!

0 Kudos
Message 11 of 12
(578 Views)

It might be as simple as taking the array and comparing it to 128.  >128, you get a true, <=128 you get a false.

 

You can create an indicator of the cluster coming out of the jpeg on screen.  You could unbundle the array out of the cluster, and pass that to a Write to Spreadsheet File function.

Message 12 of 12
(573 Views)