From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

filtering a 1D array

Hi,

I am working on a programm that kan read a bitmap file and convert it
into a 1D array: It's for old medical data on paper that needs to be
compaired etc.. But now i have one problem how do elemenate the noise on
a bitmap:
I have a 2D array coming in and i read a 1D array at a time to see what
values are in it (I mask my bitmap with an array filled with values).

Now i want to make from this:

0.000
0.000
3.678
3.589
0.000
0.000
8.478
0.000
0.000
3.987
3.587
3.588
4.876
4.376
0.000

this: the average of the five values in a row, in,other words i want to
do a search in a 1D array that can locate at least 5 "non-zero" (behind
each other) values and averge them in one value, does anyone know ho to
do that?!
Thijs
0 Kudos
Message 1 of 1
(2,270 Views)