MATLAB Answers

How to use 'center pixel' in a sliding block to represent this block using 'nlfilter'?

1 view (last 30 days)
Salad Box
Salad Box on 30 Oct 2019
Hi,
I am dealing with all the coloured images rather than greyscale images. So a lot of the filtering algorithms appear slightly more complicated to me on coloured images than greyscale images.
I would like to use the center pixel in a sliding block (say, 9 by 9 block) to represent this block. How to achieve it using 'nlfilter'??????
Also, in terms of f = @(x), how should I write it?????? Noticing that the center pixel is determined by
floor(([m n]+1)/2)

  0 Comments

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by