From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,112 Views)

Try Unflatten from String with image type.

Thanks
uday
0 Kudos
Message 2 of 5
(3,101 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,064 Views)

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

0 Kudos
Message 4 of 5
(3,061 Views)
Solution
Accepted by micheleG_Unipd
0 Kudos
Message 5 of 5
(3,057 Views)