AvgIntensity

Compute the average intensity of the input image.

 

function call:

[num1]=vsg('AvgIntensity',in_img1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image.

 

Description:

num1 – a double representing the average intensity for the image.

 

Example:

img1 = openimage('lake.jpg');

[num1]=vsg('AvgIntensity',img1);

 

num1 =  108.3735

 

Notes:

1. For DICOM images, the function finds the average intensity across all slices.

2. For RGB images, the function finds the average value across all colour planes.
Home       Functions       Back