Dilation of Specific points

I have a binary zero matrix form of an image.Now I wonder,how to perform dilation morphological operation only on certain locations(to be read from a 2D array) so that the locations would likely turn as disk shapes (using strel('disk',r) function) having value as 1's and rest of the part as 0's;

1 Comment

Use imcrop for the region of interest..extract the locations also...do what you want..and replace it back to the original matrix.

Sign in to comment.

Answers (0)

Categories

Asked:

on 13 Dec 2018

Commented:

on 13 Dec 2018

Community Treasure Hunt

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

Start Hunting!