オブジェクト画像を条件によって破棄する。
Mostrar comentarios más antiguos

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




