To select all pixels from x,y
by 20 pixels radially, you can use the circle
function from the strel
package to create a structuring element with a circular shape, and then use that structuring element to perform a morphological dilation operation on your image.
Here's some example code:
main.m424 chars16 lines
This code creates a binary mask with the selected pixels using imdilate
, and then applies that mask to your original image to select the pixels you want.
gistlibby LogSnag