libface 0.2
|
Static Public Member Functions | |
static IplImage * | resizeToArea (const IplImage *img, int area, double &ratio) |
static CvPoint | center (const Face &) |
static int | distance (CvPoint, CvPoint) |
static int | distance (const Face &, const Face &) |
static CvMat * | addScalar (CvMat *src, CvScalar value) |
static CvMat * | combine (CvMat *src, CvMat *vector) |
static void | divVec (CvMat *src, double value) |
static CvMat * | getColoumn (CvMat *src, int col) |
static CvMat * | mean (CvMat *src) |
static CvMat * | multScalar (CvMat *src, double value) |
static void | printMatrix (CvMat *src) |
static CvMat * | reshape (CvMat *src) |
static CvMat * | reverseOrder (CvMat *src) |
static void | showImage (CvArr *src, const std::string &title="Image") |
static void | showImage (const IplImage *img, const std::vector< Face > &faces, double scale=1, const std::string &title="Image") |
static void | sqrVec (CvMat *src) |
static IplImage * | stringToImage (const std::string &data, int depth, int channels) |
static CvMat * | stringToMatrix (const std::string &data, int type) |
static CvMat * | subtract (CvMat *src1, CvMat *src2) |
static double | sumVecToDouble (CvMat *src) |
static CvMat * | transpose (CvMat *src) |
static IplImage * | charToIplImage (const char *img, int width, int height, int step, int depth, int channels) |
static IplImage * | copyRect (const IplImage *src, const CvRect &rect) |
static IplImage * | scaledSection (const IplImage *src, const CvRect &sourceRect, double scaleFactor) |
static IplImage * | scaledSection (const IplImage *src, const CvRect &sourceRect, const CvSize &destSize) |
static std::string | imageToString (IplImage *src) |
static std::string | matrixToString (CvMat *src) |
CvMat * libface::LibFaceUtils::addScalar | ( | CvMat * | src, |
CvScalar | value | ||
) | [static] |
A method for adding another element to the end of a vector.
src | A pointer to a matrix. |
value | Value to be appended to the end. |
CvPoint libface::LibFaceUtils::center | ( | const Face & | f | ) | [static] |
Returns a CvPoint that is the center coordinate of a face object.
f | The face object whose center will be returned |
CvMat * libface::LibFaceUtils::combine | ( | CvMat * | src, |
CvMat * | vector | ||
) | [static] |
Method for adding an extra column to a matrix. This method makes no checks on validity of the data.
src | A pointer to a matrix to be added to. |
vector | A pointer to a vector to be added to the matrix. Needs to have the same number of rows. |
IplImage * libface::LibFaceUtils::copyRect | ( | const IplImage * | src, |
const CvRect & | rect | ||
) | [static] |
cvCreateImage(cvSize(src->width, src->height), src->depth, src->nChannels);
int libface::LibFaceUtils::distance | ( | CvPoint | p1, |
CvPoint | p2 | ||
) | [static] |
Returns the integer-rounded distance between two points.
p1 | The first CvPoint |
p2 | The second CvPoint |
void libface::LibFaceUtils::divVec | ( | CvMat * | src, |
double | value | ||
) | [static] |
Method for dividing every element by some value. Matrix is modified in process.
src | A pointer to a matrix. |
value | A value to be divided by. |
CvMat * libface::LibFaceUtils::getColoumn | ( | CvMat * | src, |
int | col | ||
) | [static] |
Method for accessing a coloumn from a matrix.
src | A pointer to a matrix. |
id | of coloumn to be returned. |
string libface::LibFaceUtils::imageToString | ( | IplImage * | img | ) | [static] |
Method for converting image(greyscale, 1 channel) into a string. The data in coloumns is separated by "\t" and rows are separated by "\n".
img | - A pointer to the IplImage to be converted to string. |
string libface::LibFaceUtils::matrixToString | ( | CvMat * | src | ) | [static] |
Method for converting matrix into a string. The data in coloumns is separated by "\t" and rows are separated by "\n".
src | - A pointer to the matrix to be converted to string. |
CvMat * libface::LibFaceUtils::mean | ( | CvMat * | src | ) | [static] |
Method for calculating mean value for every row.
src | A pointer to a matrix. |
CvMat * libface::LibFaceUtils::multScalar | ( | CvMat * | src, |
double | value | ||
) | [static] |
Method for multiplying every element by a single value. New matrix is created and returned.
void libface::LibFaceUtils::printMatrix | ( | CvMat * | src | ) | [static] |
Method for printing matrix.
src | A pointer to a matrix. |
CvMat * libface::LibFaceUtils::reshape | ( | CvMat * | src | ) | [static] |
Method for reshaping a matrix into a single coloumn vector.
src | A pointer to the matrix to be reshaped. |
IplImage * libface::LibFaceUtils::resizeToArea | ( | const IplImage * | img, |
int | area, | ||
double & | ratio | ||
) | [static] |
This takes the input image and returns a new image of a specified pixel count (area), while preserving the aspect ratio.
img | The input image |
area | The desired area of the resized image |
ratio | The scaling factor, to be passed as reference |
CvMat * libface::LibFaceUtils::reverseOrder | ( | CvMat * | src | ) | [static] |
Method for reversing order of the elements in a matrix. Only columns are reversed, rows are left in tact.
src | A pointer to a matrix to have columns reversed. |
void libface::LibFaceUtils::sqrVec | ( | CvMat * | src | ) | [static] |
A method for squaring every element in a matrix. The matrix will be modified in the process.
src | A pointer to the matrix where every element will be squared. |
IplImage * libface::LibFaceUtils::stringToImage | ( | const std::string & | data, |
int | depth, | ||
int | channels | ||
) | [static] |
Method for converting from string to image format. The data in the columns is separated by "\t" rows are separated by "\n".
data | - String that contains the delimited data. |
depth | - depth for the image to be. |
channels | - Numbers of channels in the image. |
CvMat * libface::LibFaceUtils::stringToMatrix | ( | const std::string & | data, |
int | type | ||
) | [static] |
Method for converting from string to matrix format. The data in the columns is separated by "\t" rows are separated by "\n".
data | - String that contains the delimited data. |
type | - type for the matrix to be. |
CvMat * libface::LibFaceUtils::subtract | ( | CvMat * | src1, |
CvMat * | src2 | ||
) | [static] |
A method for subtrating a vector from a matrix. New matrix is created in process.
src1 | A pointer to a matrix to be subtracted from. |
src2 | A pointer to a vector to be subtracted. |
double libface::LibFaceUtils::sumVecToDouble | ( | CvMat * | src | ) | [static] |
Method for summing all the rows in a vector to a value of type double.
src | A pointer to a vector to be summed. |
CvMat * libface::LibFaceUtils::transpose | ( | CvMat * | src | ) | [static] |
Method for transposing a matrix.
src | A Pointer to the matrix. |