LabVIEW provided a nice rank filter when we need to pick a middle point value, I can pick a value in 3x3 or 5x5 subset by rank order, like this:
1 0 1
2 5 7
7 5 3
If i set the rank order to 5 in this picture, I will get value 3. because 3 is 5th value in 0,1,1,2,3,5,5,7,7
But my application have really little redundancy, I would like to pick vaule from a 3x3 cross instead of a 3x3 square, like this:
x 0 x
2 5 7
x 5 x
and now i have only 5 value, I can pick 3rd value in this serial 0,2,5,5,7, there I get 5.
The kernel is smaller, and for certain data it is much preferable, also it should take less resource as a side benefit.
I'm using FlexRIO for online rank order, is it possible to get the cross 3x3 rank filter working?
Thanks!