image segmentation on meat picture

조회 수: 6 (최근 30일)
rex
rex 2011년 3월 10일
Hi guys i have a trouble in segmentation of animal meat picture.
Is there anybody who knows which program(code)i can use to segment this kind of pics?
The meat picture include black background, White area, red area.
Thank you !!!
  댓글 수: 3
David Young
David Young 2011년 3월 10일
Sean, I can see the enthusiasm in your eyes in your profile picture.
rex
rex 2011년 3월 11일
HaHa Sean is a funny guy. I need a useful code to separate this three area. I tried lots of methods including the "Color-based Segmentation of Fabric Using the L*a*b Color Space" which in the MATLAB own method dictionary.
Thank you both of you and i will post the image to your email.

댓글을 달려면 로그인하십시오.

채택된 답변

Sarah Wait Zaranek
Sarah Wait Zaranek 2011년 3월 11일
I would filter by the red color plane.
See below:
myImage = imread('too-much-red-meat101.jpg');
rPlane = myImage(:,:,1) - 0.5*(myImage(:,:,2)) - 0.5*(myImage(:,:,3));
red = rPlane > 100 ;
white = rPlane < 5;
pink = rPlane > 5 & rPlane < 100;
figure
imshow(red)
figure
imshow(white)
figure
imshow(pink)
I tried this on a picture from google images and it seemed to work well. You probably need to pick different criteria for red, white, pink, and black. My photo only had red, white and pink.
Ironically, this answer was written by a strict vegetarian!
  댓글 수: 1
Matt Tearle
Matt Tearle 2011년 3월 11일
That last comment was immediately what I thought when I saw that you'd answered. Excellent. Also: I think this question wins the "Best Question Title Ever" award.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by