キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

create image from string

解決済み
解決策を見る

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 件の賞賛
メッセージ1/5
4,134件の閲覧回数

Try Unflatten from String with image type.

Thanks
uday
0 件の賞賛
メッセージ2/5
4,123件の閲覧回数

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

Immagine.png

 

0 件の賞賛
メッセージ3/5
4,086件の閲覧回数

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

0 件の賞賛
メッセージ4/5
4,083件の閲覧回数
解決策
受理者 micheleG_Unipd
0 件の賞賛
メッセージ5/5
4,079件の閲覧回数