Namespaces | Functions
cv_utils.h File Reference
#include <opencv2/opencv.hpp>
#include <jsk_recognition_msgs/HistogramWithRangeBin.h>
Include dependency graph for cv_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 jsk_recognition_utils
 

Functions

cv::Rect jsk_recognition_utils::boundingRectOfMaskImage (const cv::Mat &image)
 compute bounding rectangle of mask image. More...
 
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. More...
 
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. More...
 
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 More...
 
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 More...
 
cv::MatND jsk_recognition_utils::HistogramWithRangeBinArrayTocvMatND (const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &histogram)
 convert jsk_recognition_msgs::HistogramimageWithRangeBin array to cv::MatND More...
 
bool jsk_recognition_utils::isBGR (const std::string &encoding)
 Check encodings. More...
 
bool jsk_recognition_utils::isBGRA (const std::string &encoding)
 
bool jsk_recognition_utils::isRGB (const std::string &encoding)
 
bool jsk_recognition_utils::isRGBA (const std::string &encoding)
 
void jsk_recognition_utils::labelToRGB (const cv::Mat src, cv::Mat &dst)
 convert label image to rgb one. More...
 
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. More...
 
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. More...
 


jsk_recognition_utils
Author(s):
autogenerated on Mon May 3 2021 03:03:03