Edge detection + binary mask
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hugo
am 24 Dez. 2013
Beantwortet: Image Analyst
am 24 Dez. 2013
I want to create a mask of a thresholded head/neck dicom serie based on detection of the black white boundary. So i want to detect the transition form black to white and determine the positions of this transition after which i would like to create a mask. Does anybody has a suggestion for a method to preform this?

0 Kommentare
Akzeptierte Antwort
Image Analyst
am 24 Dez. 2013
You don't need to do edge detection - not sure who told you that. You simply need to do thresholding and hole filling.
binaryImage = grayImage > 50; % or whatever gray level the background is.
mask = imfill(binaryImage, 'holes');
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!