ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create image from string

Solved!
Go to solution

Hi,

For my project I have to receive an image via tcp from another computer, the sender sends me a string like this:

'0  255    0  255  255  255  255  255    0  255    0  255  255  255  255  255    0  255    0  255  255  255  255  255'

 in which every value is the pixel intensity of a greyscale image that I have to recreate, how can i do that knowing the size of image?

 

I have Labview 2016 with vision tollbox

0 Kudos
Message 1 of 5
(3,983 Views)

Try Unflatten from String with image type.

Thanks
uday
0 Kudos
Message 2 of 5
(3,972 Views)

I tried that but I couldn't underdtand exactly how it works. Anyway I created my own code in Mathscript

Immagine.png

 

0 Kudos
Message 3 of 5
(3,935 Views)

This create a 2D array, is there a method to convert this array into an image? 

0 Kudos
Message 4 of 5
(3,932 Views)
Solution
Accepted by micheleG_Unipd
0 Kudos
Message 5 of 5
(3,928 Views)