オブジェクト画像を条件によって破棄する。
Afficher commentaires plus anciens

左図のように細胞が複数いる画像を2値化した上で、オブジェクトごとに重心を求めて、その点を中心にトリミングを行いました。
しかし、右図の下のように画像の境界面に別の細胞が写り込んでしまっているため、これらの画像を破棄するプログラムを作りたいと考えています。何か良い案がございますでしょうか。
このページの手順5を参考に出来ないかと考えています。もしこれ以外でも良い案があればよろしくお願いします。
3 commentaires
まさにこれが答えではないですか。こんなのがあるんですね。嬉しくなって前回の質問の回答にも適用してみましたが、真ん中の細胞とほんの僅かでも触れていると全て消えてしまうのが難点ですね。
I = imread('cell.tif');
[~,threshold] = edge(I,'sobel');
fudgeFactor = 0.5;
BWs = edge(I,'sobel',threshold * fudgeFactor);
se90 = strel('line',3,90);
se0 = strel('line',3,0);
BWsdil = imdilate(BWs,[se90 se0]);
BWdfill = imfill(BWsdil,'holes');
imshow(BWdfill);
BWnobord = imclearborder(BWdfill,4);
imshow(BWnobord);
HIGUCHI 樋口
le 16 Oct 2021
HIGUCHI 樋口
le 16 Oct 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur オブジェクト解析 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




