Asked by Nicholas
on 19 Sep 2014

I'm trying to understand how matlab creates its disk filter function. In a continuous domain, a disk is just 1 inside some radius and 0 outside that radius.

The tricky part about making the disk function with an image is that the edge pixels may be partially inside the disk and partially outside the disk. It appears that the matlab function assigns the edge pixels a value equal to the area of the pixel contained in the disk.

I've been trying to derive the algorithm for how one would do that, but it seems that this isn't straight forward. Is there a paper or textbook detailing how to create the disk function seen in the fspecial function? Is this problem much easier than I think it is?

Answer by Image Analyst
on 19 Sep 2014

Image Analyst
on 22 Sep 2014

You can see the algorithm by bringing fspecial up in the editor:

>> edit fspecial

Nicholas
on 23 Sep 2014

Image Analyst
on 23 Sep 2014

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 0 Comments

Sign in to comment.