Mask the image over
3 dimensions.
function call:
[out_img1]=vsg('Mask3D',in_img1,border);
Arguments:
in_img1
- input image, a DICOM
image.
border
– an integer specifying the size of the border which shall be placed on
the image.
Description:
out_img1
– a DICOM image. Each value of the DICOM image is the same as the input
image, except for the region around the edges in the x, y, and z
dimensions where a black border of width border is drawn. The border
being applied to the z dimension is equivalent to deleting that number
of slices from the beginning and end of the image stack i.e. in the
example provided, 20 slices will be masked out in the image stack.
Example:
[filename,
chosenDirectory] = uigetfile('*.dcm', 'Pick an M-file');
filePath =
[chosenDirectory filename]; %complete path
stackOfImages=vsg('DICOMRead',filePath);
%4D array of data
[out_img1]=vsg('Mask3D',stackOfImages,10);
Notes:
1. For
2. Requires XMedCon
software (version xmedcon-0.10.5-1-win32).
3. DICOM data should
be in a separate folder.