how to detect some difficult circles and count them

2 ビュー (過去 30 日間)
Lucas Moreira
Lucas Moreira 2020 年 10 月 8 日
コメント済み: Lucas Moreira 2020 年 10 月 15 日
i'm trying to count some colonies of bacterias and this is the result i got till now, i'm having problem at detecting them properly, i tried imfindcircles, but the range i pass detect a lot of false positives, can someone help me?
the code is:
clear variables;
close all;
warning off;
img = imread('colonies21.jpg');
imgcinza = rgb2gray(img);
equalized = adapthisteq(imgcinza);
limiar = graythresh(equalized);
imbin = imbinarize(equalized,limiar);
filled = imfill(~imbin,'holes');
imgjunta = (double(img)./255) .* filled;
imgjuntabin = rgb2gray(imgjunta) > 0.4;
imshow(imgjuntabin);

回答 (1 件)

Selva Karna
Selva Karna 2020 年 10 月 13 日
Option 1:
* Change threshold level
Option 2:
* Use dialtion & Erotion Operration
  1 件のコメント
Lucas Moreira
Lucas Moreira 2020 年 10 月 15 日
i want to detect all the black points aand count them, not eliminate

サインインしてコメントする。

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by