#include <saliency_map_generator.h>
Public Member Functions | |
void | callback (const sensor_msgs::Image::ConstPtr &) |
bool | computeSaliencyImpl (cv::Mat, cv::Mat &) |
SaliencyMapGenerator () | |
void | setNumThreads (int) |
Protected Member Functions | |
void | onInit () |
void | subscribe () |
void | unsubscribe () |
Protected Attributes | |
boost::mutex | lock_ |
ros::Publisher | pub_image_ |
ros::Subscriber | sub_image_ |
Private Member Functions | |
void | calcIntensityChannel (cv::Mat, cv::Mat) |
void | copyImage (cv::Mat, cv::Mat) |
void | getIntensity (cv::Mat, cv::Mat, cv::Mat, cv::Mat, bool) |
void | getIntensityScaled (cv::Mat, cv::Mat, cv::Mat, cv::Mat, int) |
float | getMean (cv::Mat, cv::Point2i, int, int) |
void | mixOnOff (cv::Mat intensityOn, cv::Mat intensityOff, cv::Mat intensity) |
void | mixScales (cv::Mat *, cv::Mat, cv::Mat *, cv::Mat, const int) |
Private Attributes | |
int | counter_ |
int | num_threads_ |
bool | print_fps_ |
double | start_ |
Definition at line 22 of file saliency_map_generator.h.
Definition at line 48 of file saliency_map_generator.h.
void jsk_perception::SaliencyMapGenerator::calcIntensityChannel | ( | cv::Mat | srcArg, |
cv::Mat | dstArg | ||
) | [private] |
Definition at line 89 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::callback | ( | const sensor_msgs::Image::ConstPtr & | image_msg | ) |
Definition at line 28 of file saliency_map_generator_node.cpp.
bool jsk_perception::SaliencyMapGenerator::computeSaliencyImpl | ( | cv::Mat | image, |
cv::Mat & | saliencyMap | ||
) |
Definition at line 66 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::copyImage | ( | cv::Mat | srcArg, |
cv::Mat | dstArg | ||
) | [private] |
Definition at line 84 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::getIntensity | ( | cv::Mat | , |
cv::Mat | , | ||
cv::Mat | , | ||
cv::Mat | , | ||
bool | |||
) | [private] |
void jsk_perception::SaliencyMapGenerator::getIntensityScaled | ( | cv::Mat | integralImage, |
cv::Mat | gray, | ||
cv::Mat | intensityScaledOn, | ||
cv::Mat | intensityScaledOff, | ||
int | neighborhood | ||
) | [private] |
Definition at line 138 of file saliency_map_generator_node.cpp.
float jsk_perception::SaliencyMapGenerator::getMean | ( | cv::Mat | srcArg, |
cv::Point2i | PixArg, | ||
int | neighbourhood, | ||
int | centerVal | ||
) | [private] |
Definition at line 172 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::mixOnOff | ( | cv::Mat | intensityOn, |
cv::Mat | intensityOff, | ||
cv::Mat | intensity | ||
) | [private] |
Definition at line 270 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::mixScales | ( | cv::Mat * | intensityScaledOn, |
cv::Mat | intensityOn, | ||
cv::Mat * | intensityScaledOff, | ||
cv::Mat | intensityOff, | ||
const int | numScales | ||
) | [private] |
Definition at line 210 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::onInit | ( | ) | [protected, virtual] |
Reimplemented from jsk_topic_tools::DiagnosticNodelet.
Definition at line 6 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::setNumThreads | ( | int | num_threads | ) |
Definition at line 79 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::subscribe | ( | ) | [protected, virtual] |
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 16 of file saliency_map_generator_node.cpp.
void jsk_perception::SaliencyMapGenerator::unsubscribe | ( | ) | [protected, virtual] |
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 22 of file saliency_map_generator_node.cpp.
int jsk_perception::SaliencyMapGenerator::counter_ [private] |
Definition at line 36 of file saliency_map_generator.h.
boost::mutex jsk_perception::SaliencyMapGenerator::lock_ [protected] |
Definition at line 39 of file saliency_map_generator.h.
int jsk_perception::SaliencyMapGenerator::num_threads_ [private] |
Definition at line 33 of file saliency_map_generator.h.
bool jsk_perception::SaliencyMapGenerator::print_fps_ [private] |
Definition at line 34 of file saliency_map_generator.h.
Definition at line 41 of file saliency_map_generator.h.
double jsk_perception::SaliencyMapGenerator::start_ [private] |
Definition at line 35 of file saliency_map_generator.h.
Definition at line 40 of file saliency_map_generator.h.