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

4 Ansichten (letzte 30 Tage)
anusha reddy
anusha reddy am 29 Mai 2016
Kommentiert: Image Analyst am 2 Apr. 2018
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 Kommentare
Image Analyst
Image Analyst am 1 Apr. 2018
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 am 2 Apr. 2018
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.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Image Analyst
Image Analyst am 30 Mai 2016
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 Kommentare
anusha reddy
anusha reddy am 30 Mai 2016
Bearbeitet: Image Analyst am 30 Mai 2016
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 am 30 Mai 2016
"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.

Melden Sie sich an, um zu kommentieren.


anusha gorrila
anusha gorrila am 2 Apr. 2018
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 Kommentare
anusha gorrila
anusha gorrila am 2 Apr. 2018
No, I do not. I solved it a year ago.
Image Analyst
Image Analyst am 2 Apr. 2018
ash, did you not expand my comments to see my full code? Click on this.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by