How can I remove objects that fit within a certain circular radius?
I am currently trying to create a mask of an image to only capture certain vasculature in an image. I have created a mask that uses a specific sensitivity value to only get the darker areas (which would represent the blood vessels), but I am also picking up smaller circle-like areas that do not represent that vasculature. Is there a way for me to detect if certain white areas are within a circular radius and then delete them? Here is my code so far:
binarizedImage1 = imbinarize(repairedImage1, ‘adaptive’, ‘Sensitivity’, 0.8);
binarizedImage1 = ~binarizedImage1;
imshow(binarizedImage1)
BWao = bwareaopen(binarizedImage1, 500);
nhood = ones(3);
closeBWao = imclose(BWao,nhood);
mask = imfill(closeBWao,’holes’);I am currently trying to create a mask of an image to only capture certain vasculature in an image. I have created a mask that uses a specific sensitivity value to only get the darker areas (which would represent the blood vessels), but I am also picking up smaller circle-like areas that do not represent that vasculature. Is there a way for me to detect if certain white areas are within a circular radius and then delete them? Here is my code so far:
binarizedImage1 = imbinarize(repairedImage1, ‘adaptive’, ‘Sensitivity’, 0.8);
binarizedImage1 = ~binarizedImage1;
imshow(binarizedImage1)
BWao = bwareaopen(binarizedImage1, 500);
nhood = ones(3);
closeBWao = imclose(BWao,nhood);
mask = imfill(closeBWao,’holes’); I am currently trying to create a mask of an image to only capture certain vasculature in an image. I have created a mask that uses a specific sensitivity value to only get the darker areas (which would represent the blood vessels), but I am also picking up smaller circle-like areas that do not represent that vasculature. Is there a way for me to detect if certain white areas are within a circular radius and then delete them? Here is my code so far:
binarizedImage1 = imbinarize(repairedImage1, ‘adaptive’, ‘Sensitivity’, 0.8);
binarizedImage1 = ~binarizedImage1;
imshow(binarizedImage1)
BWao = bwareaopen(binarizedImage1, 500);
nhood = ones(3);
closeBWao = imclose(BWao,nhood);
mask = imfill(closeBWao,’holes’); matlab, image processing, filter, image analysis, image segmentation MATLAB Answers — New Questions