KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Enumerations | Functions
cv_histogram.h File Reference
#include <m_cpp/m_vector.h>
#include <i_cpp/i_image.h>
#include <gr_cpp/gr_2D_bounding_box.h>
#include <vector>

Go to the source code of this file.

Namespaces

 kjb
 Classes and functions for dealing with trajectory files.
 
 kjb::opencv
 

Enumerations

enum  kjb::opencv::HIST_COMP_METHOD { kjb::opencv::CORRELATION, kjb::opencv::CHI_SQUARE, kjb::opencv::INTERSECTION, kjb::opencv::BHATTACHARYYA }
 

Functions

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. More...
 
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. More...
 
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. More...
 
std::vector< Matrixkjb::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. More...
 
std::vector< Matrixkjb::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. More...
 
double kjb::opencv::compare_histograms (const Matrix &h1, const Matrix &h2, int method)