How does colfilt work ? Is there any mathematical explanation how it work ?

2 visualizzazioni (ultimi 30 giorni)
Hi Guys,
I wanted to understand the working of colfilt. When we provide the block size and function (ex.colfilt(img,[3 3],'fun');) does it make overlapping boxes if not how does the output image is of same size. If there is any document wherer I can find the mathematical explanation ?.
I will really appreciate for your help.
Thanks

Risposte (1)

Image Analyst
Image Analyst il 10 Gen 2017
I agree it's confusing, so maybe that's why I've never found a need to use it. Supposedly it can make processing faster but since typical operations I do on an image take like a second or less, time has never been something I've worried about.
It looks like it has a 'distinct' (jumping by several pixels) option and a 'sliding' (move by 1 pixel) option.
  2 Commenti
Parag
Parag il 10 Gen 2017
Thank you for your comment. Is Colfilt use a convolution-based method to apply specific function ? .For example I am applying a fun x to image I(x,y) then the out put image will be I(x,y)*fun is that right. Thanks
Image Analyst
Image Analyst il 11 Gen 2017
No, it doesn't do convolution. imfilter() is more like that (except imfilter doesn't flip the kernel like conv2 does). colorfilt() applies the function you supply, so it's more like nlfilter().

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by