If it doesn't need to wrap at the edges, then just "array subset". Am I
missing something?
If it does need to wrap, you just need a bit of extra code to detect a
boundary overlap and retrieve the correct entries from the other side of the
array.
"Kian" wrote in message
news:5065000000080000007B370000-1007855737000@exchange.ni.com...
> Hi all,
> I have 2D array from an image. I wanna be able to impose a "window"
> (eg 3x3 matrix) on an element of the array, with that element at the
> center of that window, so that I can work on this group of data (eg
> find the maximum value of this window of values). This will be done
> for every element of the array from left to right and top to bottom.
> Anyone has a good way of doing that?
>
> Thanks.