Address blocks in sliding windows?

I'm trying to use a sliding window in nlfilter (or colfilter, or blockproc) to replace pixels, in the m-by-n block x. nlfilter calls, with black pixels if var(block)>=500.
But I don't know how to address these blocks, and hence what function to use.
Can you suggest anything?
Thank you!

Answers (0)

Asked:

on 8 Aug 2014

Edited:

on 8 Aug 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!