Controlling the sizes of particle analysis (counting dots)

1 view (last 30 days)
I am trying to count the number of dots in an image (think upwards 3000 points), but I'd like to have a size range so that matlab will only count particles in that range and disclude all the others. Here is my current code:
figure, imshow (A);
B = bwboundaries(A);
imshow(A)
text(10,10,strcat('\color{green}Objects Found:',num2str(length(B))))
hold on
drawnow; % Force display to update immediately.
end
thank you!

Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!