How to Extract skin/region outside the bone (white part in image 1)?

4 ビュー (過去 30 日間)
anusha reddy
anusha reddy 2016 年 5 月 29 日
コメント済み: Image Analyst 2018 年 4 月 2 日
Considering the two images, I want to extract the part of image in 1 outside the bone shown in image 2. Being a novice, I could not get to any solution to extract that region. Any help would be appreciated.
  5 件のコメント
Image Analyst
Image Analyst 2018 年 4 月 1 日
I don't think anusha reddy knows how to solve it or even cares about your problem. So why don't you start your own question so we don't keep bugging anusha? By the way, I don't even know how to answer your question or even know what you want or what the arrows are pointing to.
anusha gorrila
anusha gorrila 2018 年 4 月 2 日
Hello ash fairy, apologize for the delay. Usually in scans, the bone pixels are at a higher intensity compared to the soft tissue. We could extract the bone pixels by using a minimum threshold intensity of the bone pixel intensities, capturing all the pixels above the threshold leaving you with the bone.

サインインしてコメントする。

回答 (2 件)

Image Analyst
Image Analyst 2016 年 5 月 30 日
Take the bone-only image and fill it, then use it as a mask against the original image
mask = imfill(boneOnlyImage, 'holes'); % Fill holes.
outsideSkin = grayImage; % Initialize
outsideSkin(mask) = 0; % Zero out inside the mask.
  5 件のコメント
anusha reddy
anusha reddy 2016 年 5 月 30 日
編集済み: Image Analyst 2016 年 5 月 30 日
i'm getting a blank image if I give it a threshold. so i had to take out the threshold and then fill in the holes. And also in the code you gave latter, you used image 1, during threshold and creating mask but we need to use the bone image to create the mask, if I'm not wrong.
Image Analyst
Image Analyst 2016 年 5 月 30 日
"image 1" was the original image with 3 gray levels (actually more because you unfortunately jpegged it). So I had to use that to threshold and get the bone-only image. Like I said, you did not use the same threshold. You said you took it out so I'm not even sure how you got the bone-only binary image. But however you're doing it, it's picking a threshold that's wrong because there is a little break on the left side which prevents the blob from getting filled. My code does not have a little gap in the skull like yours does. Again, follow my guidance and you'll be alright.

サインインしてコメントする。


anusha gorrila
anusha gorrila 2018 年 4 月 2 日
Worked the problem a year ago. Apologize for the delay. I filled in both regions separately with same pixel intensities and negated the filled whole face region (image 1) with the filled skull region in image 2, leaving me the soft tissue depth, which was what I was looking for.
  3 件のコメント
anusha gorrila
anusha gorrila 2018 年 4 月 2 日
No, I do not. I solved it a year ago.
Image Analyst
Image Analyst 2018 年 4 月 2 日
ash, did you not expand my comments to see my full code? Click on this.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by