how to mark the outline alone of the given input image?
古いコメントを表示
how to mark the outline alone of the given input image? I need to show the border of the medical image..
7 件のコメント
Image Analyst
2012 年 8 月 21 日
What does this mean? Can you upload an example of an unmarked and marked image? As far as I know, the border of all images are showing, unless they're zoomed.
Sivakumaran Chandrasekaran
2012 年 8 月 21 日
編集済み: Sivakumaran Chandrasekaran
2012 年 8 月 21 日
Sivakumaran Chandrasekaran
2012 年 8 月 21 日
Image Analyst
2012 年 8 月 21 日
Try tinypic.com
Sivakumaran Chandrasekaran
2012 年 8 月 21 日
Sivakumaran Chandrasekaran
2012 年 8 月 21 日
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
2012 年 8 月 21 日
0 投票
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
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);
カテゴリ
ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!