LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use 2d array of bmp file for future median filter?

Solved!
Go to solution

Hello there,

 

I want to try to read a bmp-file, unflatten it so I can use the 2D array for some signal processing.

The signal processing will be mostly be done in formula nodes.

My problem is that I just can't figure out how to split the 2D array from the Unflatten Pixmap VI in a Width and Height component.

The Width and Height component would then be used as input for my formula node.

 

Am I missing something or did I overlooked a simple VI?

 

Thanks in advance!

0 Kudos
Message 1 of 3
(2,951 Views)

The dimensions of the array will give you the width and the height.

 

Also, the information is in the image data cluster.  Look at the Rectangle cluster and unbundle the top, bottom, right and left and to the math to get the width and height.

0 Kudos
Message 2 of 3
(2,948 Views)
Solution
Accepted by topic author Kishintai

I'm thinking you just need the Array Size function with an Index Array.  This will give you the number of rows and columns, which is the same os width and height in number of pixels.  Or you can just use the Matrix Size function (will be slightly faster)



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 3
(2,947 Views)