MATLAB: Fspecial Disk Filter Shape

diskfilterfspecialImage Processing Toolbox

What is the actual shape of the pre-defined disk filter in MATLAB? Obviously it can't be exactly circular but what shape would it have with say a radius of 5. For example, the center row I'm guessing would have 9 pixels including the pixel of interest but I'm not sure… What about the other rows? Thanks.

Best Answer

Just type it out and see:
>>theFilter = fspecial('disk', 5)