KJB
|
Classes | |
class | CV_features_to_track_detector |
struct | CV_term_criteria |
Enumerations | |
enum | HIST_COMP_METHOD { CORRELATION, CHI_SQUARE, INTERSECTION, BHATTACHARYYA } |
Functions | |
Matrix | calculate_histogram (const Matrix &src, int num_bins, float lower_bound=0.0f, float upper_bound=256.0f) |
Calculates a histogram of values in src. More... | |
Matrix | calculate_rg_histogram (const Image &img, const Axis_aligned_rectangle_2d &box, int red_bins, int green_bins) |
Calculates a histogram of values in src. More... | |
Matrix | calculate_hs_histogram (const Image &img, const Axis_aligned_rectangle_2d &box, int hue_bins, int saturation_bins) |
Calculates a histogram of values in src. More... | |
std::vector< Matrix > | calculate_rg_histograms (const Image &img, const std::vector< Axis_aligned_rectangle_2d > &boxes, int red_bins, int green_bins) |
Calculates a histogram of values in src. More... | |
std::vector< Matrix > | calculate_hs_histograms (const Image &img, const std::vector< Axis_aligned_rectangle_2d > &boxes, int hue_bins, int saturation_bins) |
Calculates a histogram of values in src. More... | |
double | compare_histograms (const Matrix &h1, const Matrix &h2, int method) |
Matrix kjb::opencv::calculate_histogram | ( | const Matrix & | src, |
int | num_bins, | ||
float | lower_bound = 0.0f , |
||
float | upper_bound = 256.0f |
||
) |
Calculates a histogram of values in src.
src | Source Image. |
num_bins | Size of histograms of each R, G, B component (number of bins) |
lower_bound | Lower bound of the range of histogram |
upper_bound | Upper bound of the range of histogram (exclusive) |
Matrix kjb::opencv::calculate_hs_histogram | ( | const Image & | img, |
const Axis_aligned_rectangle_2d & | box, | ||
int | hue_bins, | ||
int | saturation_bins | ||
) |
Calculates a histogram of values in src.
img | Source Image. |
boxes | Regions of interest |
hue_bins | Size of histograms of each hue component |
saturation_bins | Size of histograms of each saturation component |
std::vector< Matrix > kjb::opencv::calculate_hs_histograms | ( | const Image & | img, |
const std::vector< Axis_aligned_rectangle_2d > & | boxes, | ||
int | hue_bins, | ||
int | saturation_bins | ||
) |
Calculates a histogram of values in src.
img | Source Image. |
boxes | A vector of regions of interest |
hue_bins | Size of histograms of each hue component |
saturation_bins | Size of histograms of each saturation component |
Matrix kjb::opencv::calculate_rg_histogram | ( | const Image & | img, |
const Axis_aligned_rectangle_2d & | box, | ||
int | red_bins, | ||
int | green_bins | ||
) |
Calculates a histogram of values in src.
img | Source Image. |
box | The region of interest |
red_bins | Size of histograms of each r component |
green_bins | Size of histograms of each g component |
std::vector< Matrix > kjb::opencv::calculate_rg_histograms | ( | const Image & | img, |
const std::vector< Axis_aligned_rectangle_2d > & | boxes, | ||
int | red_bins, | ||
int | green_bins | ||
) |
Calculates a histogram of values in src.
img | Source Image. |
red_bins | Size of histograms of each r component |
green_bins | Size of histograms of each g component |