Reconstruction by dilation in 3D (user specify connectivity of the
structured element 6 or 26) [Default=6].
function call:
[out_img1,out_img2]=vsg('ReconByDil3D',in_img1,in_img2,connected);
Arguments:
in_img1
-
input image, a DICOM image, the mask image.
in_img2
- input image, a DICOM
image, the seed image.
connected
– an integer specifying whether 6 or 26 connected is used.
Description:
out_img1
– a DICOM image which has been reconstructed by dilation.
out_img2
– a DICOM image, the remaining parts of the image that were excluded
from the reconstruction.
Example:
[filename, chosenDirectory] = uigetfile('*.dcm',
'Pick an M-file');
filePath = [chosenDirectory filename];
stackOfImages=vsg('DICOMRead',filePath);
%4D array of data
stackOfImages1 = stackOfImages;
stackOfImages1(20:size(stackOfImages1,1)-20,20:size(stackOfImages1,2)-20,:,1:size(stackOfImages1,4)-1)=0;
connected=6;
% 6 or 26 connected
[out_img1,out_img2]=vsg('ReconByDil3D',stackOfImages,stackOfImages1,connected);
Notes:
1. For
2. Dicom images
require XMedCon software (version xmedcon-0.10.5-1-win32).
3. DICOM data must be in a separate folder.