Filter löschen
Filter löschen

How to remove the edge of this medical image?

6 Ansichten (letzte 30 Tage)
Suba Suba
Suba Suba am 10 Okt. 2016
Kommentiert: Suba Suba am 10 Okt. 2016
In the figure below,I need that tumor part separately,how can I remove the edge of this images using MATLAB with out affecting the tumor part.I tried my best to remove this,but failed at the end.Please help me to sort this problem.

Akzeptierte Antwort

Massimo Zanetti
Massimo Zanetti am 10 Okt. 2016
Bearbeitet: Massimo Zanetti am 10 Okt. 2016
The morphological operation imerode() suits your needs. I give you some hints, look at this plot after image erosion with an element of size 5 (which is approx the thickness of the line you want to remove):
A=rgb2gray(imread('Final Output.png'));
B=imerode(A,ones(5))
imagesc(B);
Thus, you can identify all connected components in the original image, and also in the eroded one. Then, the conn comp found in the original image that have large interseection with the ones in the eroded image can be stored.
  3 Kommentare
Massimo Zanetti
Massimo Zanetti am 10 Okt. 2016
I have manually inspected your image, and I have noticed that the thick line to remove had 5-pixels width, approximately.
Suba Suba
Suba Suba am 10 Okt. 2016
oh okey.Thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by