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?

 採用された回答

Image Analyst
Image Analyst 2013 年 12 月 24 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2013 年 12 月 24 日

回答済み:

2013 年 12 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by