#include <opencv2/opencv.hpp>
#include <jsk_recognition_msgs/HistogramWithRangeBin.h>
Go to the source code of this file.
Namespaces | |
namespace | jsk_recognition_utils |
Functions | |
cv::Rect | jsk_recognition_utils::boundingRectOfMaskImage (const cv::Mat &image) |
compute bounding rectangle of mask image. | |
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 | |
cv::MatND | jsk_recognition_utils::HistogramWithRangeBinArrayTocvMatND (const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &histogram) |
convert jsk_recognition_msgs::HistogramimageWithRangeBin array to cv::MatND | |
bool | jsk_recognition_utils::isBGR (const std::string &encoding) |
Check encodings. | |
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. | |
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. |