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

Try Unflatten from String with image type.

Thanks
uday
0 Kudos
Message 2 of 5
(1,556 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
(1,519 Views)

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

0 Kudos
Message 4 of 5
(1,516 Views)
Solution
Accepted by topic author micheleG_Unipd
0 Kudos
Message 5 of 5
(1,512 Views)