- Morphological operations on binary volume - MATLAB bwmorph3 (mathworks.com)
- Fill image regions and holes - MATLAB imfill (mathworks.com)
Fill empty cylinders in binary volume
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello
I'm trying to fill empty cylinders in a binary 3d volume.:
load cylinders.mat
J = bwmorph3(OutputBinaryImage2,'fill');
But nothing seems to happen
댓글 수: 0
답변 (1개)
Saffan
2023년 6월 28일
I understand that you are attempting to fill a hollow 3D cylinder using the “bwmorph3” function. However, the current usage of the “bwmorph3” function with the ‘fill’ option is not effective for this, as it only sets the individual ‘off’ voxels which are surrounded by ‘on’ voxels in a 3-dimensional space. Hence, it does not work on a hollow cylinder where all the 'off' voxels inside the cylinder are adjacent to each other. Instead, you can use “imfill” function to achieve this.
Here's an example code snippet to fill a hollow cylinder:
filledVolume = imfill(HollowCylinder, 'holes');
Refer to these links for more information:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!