How write this image with plotted boundary in a folder
1 回表示 (過去 30 日間)
古いコメントを表示
figure;imshow(Img);
title('Hill Climbing Segmentation');
axis image; % Make sure image is not artificially stretched because of screen's aspect ratio.
hold on;
boundaries = bwboundaries(bw);
numberOfBoundaries = size(boundaries, 1);
for k = 1 : numberOfBoundaries
thisBoundary = boundaries{k};
plot(thisBoundary(:,2), thisBoundary(:,1), 'g', 'LineWidth', 2);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151792/image.jpeg)
end
hold off;
have got this image want to write this image in directory with its boundary how to write,have used imwrite() in for loop but it write only image not image with boundary is not present
0 件のコメント
回答 (1 件)
Image Analyst
2015 年 7 月 1 日
You can use getimage() though it will just get a 24 bit RGB image of what's in the axes, so the graphics won't be burned in at the full image resolution. Though maybe that will be good enough for your needs. Then just call imwrite to write the image to disk:
displayedImage = getimage();
imwrite(displayedImage, fullFileName);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!