Dilation operation in 3D.
function call:
[out_img1]=vsg('DoubleSize',in_img1);
function call:
[out_img1]=vsg('Dilate3D',in_img1,connected);
Arguments:
in_img1
-
input image, a DICOM image.
connected
– an integer specifying whether 6 or 26 connected is used.
Description:
out_img1
– a DICOM image.
Each value of the DICOM image is set as the maximum value in a
three-dimensional kernel calculated in a 3x3x3 region of the input
image.
Example:
[filename, chosenDirectory] = uigetfile('*.dcm',
'Pick an M-file');
filePath = [chosenDirectory filename];
stackOfImages=vsg('DICOMRead',filePath);
%4D array of data
[out_img1]=vsg('Dilate3D',stackOfImages,6);
1. For
2. Dicom images
require XMedCon software (version xmedcon-0.10.5-1-win32).
3. DICOM data must
be in a separate folder.