Is it possible to imwrite only the contents of particle boundary?

1 回表示 (過去 30 日間)
Joe Perkins
Joe Perkins 2017 年 5 月 30 日
編集済み: Joe Perkins 2017 年 6 月 6 日
Hi all - My overall aim is to segment these particles from each other and export only the particle images for further analysis. So far I have;
Successfully thresholded the image, overlayed binary mask on original image, labelled each particle & determined the boundary for each.
Now I would like to separate each particle from each other and create separate images of only the particle and nothing else outside of the boundaries. I have only been able to find methods for drawing a rectangle around each the extremities of particle and using this.
Any help would be greatly appreciated!
Many thanks,
Joe
boundaries = bwboundaries(binaryImage);
numberOfBoundaries = size(boundaries, 1);
for k = 1 : numberOfBoundaries
thisBoundary = boundaries{k};
plot(thisBoundary(:,2), thisBoundary(:,1), 'g', 'LineWidth', 2);
end

回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by