DLProfile Class Reference

Calculate a projection profile of an image. More...

#include <DLProfile.h>

List of all members.

Public Types

enum  DLProjectionDirection { DL_HORIZONTAL = 1, DL_VERTICAL = 2 }

Static Public Member Functions

static vector< int > dlProjectProfile (const DLImage &image, DLProjectionDirection direction)
static vector< int > dlProjectHorizontalProfile (const DLImage &image)
static vector< int > dlProjectVerticalProfile (const DLImage &image)


Detailed Description

Calculate a projection profile of an image.

Definition at line 12 of file DLProfile.h.


Member Enumeration Documentation

enum DLProfile::DLProjectionDirection

A selection of possible directions.

Enumerator:
DL_HORIZONTAL 
DL_VERTICAL 

Definition at line 30 of file DLProfile.h.


Member Function Documentation

static vector<int> DLProfile::dlProjectProfile ( const DLImage image,
DLProjectionDirection  direction 
) [static]

Computes a vertical or horizontal projection of the image. Each entry in the array returned will contain the sum of pixel values in an entire row or column; for a vertical projection, each entire column's pixel values are summed, and for a horizontal projection, each entire row's pixel values are summed.

Parameters:
image DLImage to project
direction direction to project the image: can be one of
Returns:
vector of projected image values

static vector<int> DLProfile::dlProjectHorizontalProfile ( const DLImage image  )  [static]

Computes a horizontal projection of the image. Each entry in the array returned will contain the sum of pixel values in an entire row. Currently only supports 8-bit (grayscale) images

Parameters:
image DLImage to project
Returns:
vector of projected image values

static vector<int> DLProfile::dlProjectVerticalProfile ( const DLImage image  )  [static]

Computes a vertical projection of the image. Each entry in the array returned will contain the sum of pixel values in an entire column. Currently only supports 8-bit (grayscale) images

Parameters:
image DLImage to project
Returns:
vector of projected image values


The documentation for this class was generated from the following file:

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007