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개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by