LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create image from string

Solved!
Go to solution
Highlighted

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
(1,468 Views)
Highlighted

Try Unflatten from String with image type.

Thanks
uday
0 Kudos
Message 2 of 5
(1,457 Views)
Highlighted

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
(1,420 Views)
Highlighted

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

0 Kudos
Message 4 of 5
(1,417 Views)
Highlighted
Solution
Accepted by topic author micheleG_Unipd
0 Kudos
Message 5 of 5
(1,413 Views)