#include <DLProfile.h>
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) |
Definition at line 12 of file DLProfile.h.
A selection of possible directions.
Definition at line 30 of file DLProfile.h.
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.
image | DLImage to project | |
direction | direction to project the image: can be one of |
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
image | DLImage to project |
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
image | DLImage to project |