WPCounter

Compute the number of white pixels.

 

function call:

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

 

Arguments:

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

 

Return values:

num1 – the number of white pixels in the input image.

 

Example:

img = openimage('blobs.jpg');

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

 

Notes:

Ensure that binary images have a range {0,255}. For DICOM images, this function returns the total number of white pixels across all slices.

Home       Functions       Back