how to mark the outline alone of the given input image?

조회 수: 1 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 8월 21일
how to mark the outline alone of the given input image? I need to show the border of the medical image..
  댓글 수: 7
Image Analyst
Image Analyst 2012년 8월 21일
That is not the border of the image. That is the perimeter of an object in the image, such as the liver. You need to segment out that region.

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

답변 (2개)

Jürgen
Jürgen 2012년 8월 21일
Hi,
I think 'Image Analyst' gave a useful answer in http://www.mathworks.nl/matlabcentral/answers/46407-image-edge-to-black
there the image outline is put to black
regards, Jürgen
  댓글 수: 1
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 8월 21일
Thanks Jurgen... Can you tell me the site where i can upload my image

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


Image Analyst
Image Analyst 2012년 8월 21일
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
redChannel(1,:) = 0;
redChannel(end,:) = 0;
redChannel(:,1) = 0;
redChannel(:,end) = 0;
greenChannel(1,:) = 255;
greenChannel(end,:) = 255;
greenChannel(:,1) = 255;
greenChannel(:,end) = 255;
blueChannel(1,:) = 0;
blueChannel(end,:) = 0;
blueChannel(:,1) = 0;
blueChannel(:,end) = 0;
rgbImage = cat(3, redChannel, greenChannel , blueChannel);

카테고리

Help CenterFile Exchange에서 Explore and Edit Images with Image Viewer App에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by