MATLAB: What units is the number in strel(‘disk’, 22)

imageimage analysisimage processingImage Processing Toolbox

dilated = imdilate(ImagetoDilate,strel('disk', 22));
I have this line in my code to dilate the image, but I was wondering what units the 22 is? It says it is the radius but is it measured in centimeters, percentage, pixels or something else?

Best Answer

Pixels.
Or more correctly, memory locations, as the result is used in multiple contexts and makes no attempt to handle multiple color planes.