image segmentation on meat picture
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
David Young
el 10 de Mzo. de 2011
Sean, I can see the enthusiasm in your eyes in your profile picture.
Respuesta aceptada
Sarah Wait Zaranek
el 11 de Mzo. de 2011
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 comentario
Matt Tearle
el 11 de Mzo. de 2011
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.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!