SIN3D

Replace the central pixel of the 3x3x3 mask with the minimum value.

 

function call:

[out_img1]=vsg('SIN3D',in_img1);

 

Arguments:

in_img1 -  input image, a DICOM image.

 

Description:

out_img1 – a DICOM image. Each value of the DICOM image is calculated as the smallest intensity value in a 3x3x3 three-dimensional region of the input with the kernel centred at the location in question.

 

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('SIN3D',stackOfImages);

 

Notes:

1. For RGB images, the function operates on all colour planes together and returns a single average per slice for all of the colour planes.

2. Requires XMedCon software (version xmedcon-0.10.5-1-win32).

3. DICOM data should be in a separate folder.  

Home       Functions       Back