Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69024

Initializing Arrays, Draw Unflatten Pixmap

$
0
0

Hi all.

 

I have a peice of code that

1)

- Reads an 8-bit grayscale image. Labview reports its depth as 8.

- Extracts the 1d array

- Repackages as a 2d array

- Draws using unflatten pixmap

(And this works fine.)

 

2)

- Initializes two arrays of 8-bit data, one array to one value, the other to another, the same size as the image.

- Repackages as a 2d array

- Draws using unflatten pixmap

 

However this doesn't work, the array is always initilized to 0; or at least, the images appear black (0).

 

What can be wrong?

 

(The above is for testing another piece of code).

 

 


Viewing all articles
Browse latest Browse all 69024

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>