Simd Library Documentation.

Home | Release Notes | Download | Documentation | Forum | SourceForge | GitHub
Face Recognition

Functions for face recognition. More...

Functions

SIMD_API void SimdHogDirectionHistograms (const uint8_t *src, size_t stride, size_t width, size_t height, size_t cellX, size_t cellY, size_t quantization, float *histograms)
 Calculates HOG direction histograms for 8-bit gray image. More...
 

Detailed Description

Functions for face recognition.

Function Documentation

void SimdHogDirectionHistograms ( const uint8_t *  src,
size_t  stride,
size_t  width,
size_t  height,
size_t  cellX,
size_t  cellY,
size_t  quantization,
float *  histograms 
)

Calculates HOG direction histograms for 8-bit gray image.

Calculates HOG direction histogram for every cell of 8-bit gray image. This function is useful for face recognition.

Note
This function has a C++ wrapper Simd::HogDirectionHistograms(const View<A> & src, const Point<ptrdiff_t> & cell, size_t quantization, float * histograms).
Parameters
[in]src- a pointer to pixels data of input 8-bit gray image.
[in]stride- a row size of the image.
[in]width- an image width. It must be a multiple of cellX.
[in]height- an image height. It must be a multiple of cellY.
[in]cellX- a width of cell.
[in]cellY- a height of cell.
[in]quantization- a direction quantization. Must be even.
[out]histograms- a pointer to buffer with histograms. Array must has size grater or equal to (width/cellX)*(height/cellY)*quantization.