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

7 Ansichten (letzte 30 Tage)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran am 21 Aug. 2012
how to mark the outline alone of the given input image? I need to show the border of the medical image..
  7 Kommentare
Image Analyst
Image Analyst am 21 Aug. 2012
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.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Jürgen
Jürgen am 21 Aug. 2012
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

Image Analyst
Image Analyst am 21 Aug. 2012
% 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);

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by