DICOMHi

 Compute the highest grey level from the input dicom file.

 

function call:

[array1]=vsg('DICOMHi',in_img1);

 

Arguments:

in_img1 -  input image, a DICOM image.

 

Description:

array1 –  one dimensional array of values. Each value is the highest greyscale value of a corresponding slice of the input dicom image.

 

Example:

[filename, chosenDirectory] = uigetfile('*.dcm', 'Pick an M-file');

filePath = [chosenDirectory filename]; %complete path

stackOfImages=vsg('DICOMRead',filePath);  %4D array of data

[array1]=vsg('DICOMHi',stackOfImages);

array1(1)

 

ans = 3497

 

Notes:

1. For RGB images, the function operates on all colour planes together and returns a single highest value 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