10-03-2012 12:17 PM
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!
Solved! Go to Solution.
10-03-2012 12:25 PM
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.
10-03-2012 12:27 PM
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)