From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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,110 Views)

Try Unflatten from String with image type.

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

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

0 Kudos
Message 4 of 5
(3,059 Views)
Solution
Accepted by topic author micheleG_Unipd
0 Kudos
Message 5 of 5
(3,055 Views)