オブジェクト画像を条件によって破棄する。
Ältere Kommentare anzeigen

左図のように細胞が複数いる画像を2値化した上で、オブジェクトごとに重心を求めて、その点を中心にトリミングを行いました。
しかし、右図の下のように画像の境界面に別の細胞が写り込んでしまっているため、これらの画像を破棄するプログラムを作りたいと考えています。何か良い案がございますでしょうか。
このページの手順5を参考に出来ないかと考えています。もしこれ以外でも良い案があればよろしくお願いします。
3 Kommentare
まさにこれが答えではないですか。こんなのがあるんですね。嬉しくなって前回の質問の回答にも適用してみましたが、真ん中の細胞とほんの僅かでも触れていると全て消えてしまうのが難点ですね。
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 樋口
am 16 Okt. 2021
HIGUCHI 樋口
am 16 Okt. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu オブジェクト解析 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




