Namespaces | Functions
cv_utils.cpp File Reference
#include "jsk_recognition_utils/cv_utils.h"
Include dependency graph for cv_utils.cpp:

Go to the source code of this file.

Namespaces

namespace  jsk_recognition_utils

Functions

bool jsk_recognition_utils::compareHistogramWithRangeBin (const jsk_recognition_msgs::HistogramWithRangeBin &left, const jsk_recognition_msgs::HistogramWithRangeBin &right)
 return true if left.count is larger than right.count.
cv::MatND jsk_recognition_utils::computeHistogram (const cv::Mat &input_image, int bin_size, float min_value, float max_value, const cv::Mat &mask_image)
 simple wrapper for cv::calcHist.
std::vector
< jsk_recognition_msgs::HistogramWithRangeBin > 
jsk_recognition_utils::cvMatNDToHistogramWithRangeBinArray (const cv::MatND &cv_hist, float min_value, float max_value)
 convert cv::MatND to jsk_recognition_msgs::HistogramimageWithRangeBin array
void jsk_recognition_utils::drawHistogramWithRangeBin (cv::Mat &image, const jsk_recognition_msgs::HistogramWithRangeBin &bin, float min_width_value, float max_width_value, float max_height_value, cv::Scalar color)
 draw bin to cv::Mat
void jsk_recognition_utils::sortHistogramWithRangeBinArray (std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &bins)
 sort std::vector<jsk_recognition_msgs::HistogramWithRangeBin>. largest value will be at the first element.
std::vector
< jsk_recognition_msgs::HistogramWithRangeBin > 
jsk_recognition_utils::topNHistogramWithRangeBins (const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &bins, double top_n_rate)
 extract top-N histograms. bins should be sorted. top_n_rate should be 0-1.


jsk_recognition_utils
Author(s):
autogenerated on Wed Sep 16 2015 04:36:01