LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Block Statistics inserted in 2D array

Not sure which VI causes my problem, but I think it might be Block Statistics.

 

I'm using Vision add-ons for Labview, and I am interested in getting the green color-distribution of a Region of Interest. So I found the Block Statistics function, which divides my ROI into small blocks, and then returns a bundle of information including the color-values. I've then tried inserting the color values in a 2D array to later export it to a spreadsheet tool like Excel.

 

However, the different rows share the same values throughout each column (the top row's values are copied to each row). Can anyone tell me what's wrong, and how I can fix it? I have tried changing pretty much everything concerning the for-loops, but I think the problem might be the Block Statistics.

 

Help would be much appreciated 🙂

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

Might just add that I'm using the 2010 SP1 version of the software

0 Kudos
Message 2 of 3
(2,155 Views)

Ok, I resolved the issue.

 

The output of the Block Statistics function had to be reshaped, and some auto-indexing went wrong.

So finally, after a couple hours of troubleshooting, I can continue.

0 Kudos
Message 3 of 3
(2,152 Views)