#include <sliding_window_object_detector.h>
Public Member Functions | |
virtual void | computeHSHistogram (cv::Mat &, cv::Mat &, const int=64, const int=32, bool=true) |
virtual void | concatenateCVMat (const cv::Mat &, const cv::Mat &, cv::Mat &, bool=true) |
virtual void | configCallback (jsk_perception::SlidingWindowObjectDetectorConfig &, uint32_t) |
void | convertCvRectToJSKRectArray (const std::vector< cv::Rect_< int > > &, jsk_recognition_msgs::RectArray &, const int, const cv::Size) |
virtual void | loadTrainedDetectorModel () |
virtual std::vector< cv::Rect_ < int > > | nonMaximumSuppression (std::multimap< float, cv::Rect_< int > > &, const float) |
virtual void | objectRecognizer (const cv::Mat &, std::multimap< float, cv::Rect_< int > > &, const cv::Size, const int=16) |
virtual void | pyramidialScaling (cv::Size &, const float) |
virtual void | readTrainingManifestFromDirectory () |
virtual std::multimap< float, cv::Rect_< int > > | runSlidingWindowDetector (const cv::Mat &, const cv::Size, const float, const int, const int) |
virtual void | setBoundingBoxLabel (cv::Mat &, cv::Rect_< int >, const std::string="object") |
SlidingWindowObjectDetector () | |
Protected Member Functions | |
virtual void | imageCb (const sensor_msgs::ImageConstPtr &) |
virtual void | onInit () |
virtual void | subscribe () |
virtual void | unsubscribe () |
Protected Attributes | |
std::string | dataset_path_ |
int | downsize_ |
int | incrementor_ |
std::string | model_name_ |
boost::mutex | mutex_ |
std::string | ndataset_path_ |
ros::ServiceClient | nms_client_ |
std::string | nonobject_dataset_filename_ |
std::string | object_dataset_filename_ |
ros::Publisher | pub_image_ |
ros::Publisher | pub_rects_ |
boost::shared_ptr< rosbag::Bag > | rosbag_ |
std::string | run_type_ |
float | scale_ |
boost::shared_ptr < dynamic_reconfigure::Server < jsk_perception::SlidingWindowObjectDetectorConfig > > | srv_ |
int | stack_size_ |
ros::Subscriber | sub_image_ |
boost::shared_ptr< cv::SVM > | supportVectorMachine_ |
int | swindow_x |
int | swindow_y |
std::string | trainer_manifest_filename_ |
Definition at line 37 of file sliding_window_object_detector.h.
Definition at line 41 of file sliding_window_object_detector.h.
void jsk_perception::SlidingWindowObjectDetector::computeHSHistogram | ( | cv::Mat & | src, |
cv::Mat & | hist, | ||
const int | hBin = 64 , |
||
const int | sBin = 32 , |
||
bool | is_norm = true |
||
) | [virtual] |
color histogram temp placed here
Definition at line 215 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::concatenateCVMat | ( | const cv::Mat & | mat_1, |
const cv::Mat & | mat_2, | ||
cv::Mat & | featureMD, | ||
bool | iscolwise = true |
||
) | [virtual] |
Definition at line 283 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::configCallback | ( | jsk_perception::SlidingWindowObjectDetectorConfig & | config, |
uint32_t | level | ||
) | [virtual] |
Definition at line 394 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::convertCvRectToJSKRectArray | ( | const std::vector< cv::Rect_< int > > & | bounding_boxes, |
jsk_recognition_msgs::RectArray & | jsk_rects, | ||
const int | downsize, | ||
const cv::Size | img_sz | ||
) |
Definition at line 310 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::imageCb | ( | const sensor_msgs::ImageConstPtr & | msg | ) | [protected, virtual] |
Definition at line 81 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::loadTrainedDetectorModel | ( | ) | [virtual] |
Definition at line 326 of file sliding_window_object_detector.cpp.
std::vector< cv::Rect_< int > > jsk_perception::SlidingWindowObjectDetector::nonMaximumSuppression | ( | std::multimap< float, cv::Rect_< int > > & | detection_info, |
const float | nms_threshold | ||
) | [virtual] |
Definition at line 246 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::objectRecognizer | ( | const cv::Mat & | image, |
std::multimap< float, cv::Rect_< int > > & | detection_info, | ||
const cv::Size | wsize, | ||
const int | incrementor = 16 |
||
) | [virtual] |
Definition at line 176 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::onInit | ( | ) | [protected, virtual] |
Definition at line 11 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::pyramidialScaling | ( | cv::Size & | wsize, |
const float | scale | ||
) | [virtual] |
Definition at line 235 of file sliding_window_object_detector.cpp.
Definition at line 344 of file sliding_window_object_detector.cpp.
std::multimap< float, cv::Rect_< int > > jsk_perception::SlidingWindowObjectDetector::runSlidingWindowDetector | ( | const cv::Mat & | image, |
const cv::Size | wsize, | ||
const float | scale, | ||
const int | scale_counter, | ||
const int | incrementor | ||
) | [virtual] |
Definition at line 156 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::setBoundingBoxLabel | ( | cv::Mat & | im, |
cv::Rect_< int > | rect, | ||
const std::string | label = "object" |
||
) | [virtual] |
Definition at line 376 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::subscribe | ( | ) | [protected, virtual] |
Definition at line 66 of file sliding_window_object_detector.cpp.
void jsk_perception::SlidingWindowObjectDetector::unsubscribe | ( | ) | [protected, virtual] |
Definition at line 75 of file sliding_window_object_detector.cpp.
Definition at line 97 of file sliding_window_object_detector.h.
int jsk_perception::SlidingWindowObjectDetector::downsize_ [protected] |
Definition at line 88 of file sliding_window_object_detector.h.
int jsk_perception::SlidingWindowObjectDetector::incrementor_ [protected] |
Definition at line 87 of file sliding_window_object_detector.h.
Definition at line 96 of file sliding_window_object_detector.h.
boost::mutex jsk_perception::SlidingWindowObjectDetector::mutex_ [protected] |
Definition at line 77 of file sliding_window_object_detector.h.
Definition at line 94 of file sliding_window_object_detector.h.
Definition at line 81 of file sliding_window_object_detector.h.
Definition at line 93 of file sliding_window_object_detector.h.
Definition at line 92 of file sliding_window_object_detector.h.
Definition at line 79 of file sliding_window_object_detector.h.
Definition at line 80 of file sliding_window_object_detector.h.
boost::shared_ptr<rosbag::Bag> jsk_perception::SlidingWindowObjectDetector::rosbag_ [protected] |
Definition at line 105 of file sliding_window_object_detector.h.
Definition at line 90 of file sliding_window_object_detector.h.
float jsk_perception::SlidingWindowObjectDetector::scale_ [protected] |
Definition at line 85 of file sliding_window_object_detector.h.
boost::shared_ptr<dynamic_reconfigure::Server< jsk_perception::SlidingWindowObjectDetectorConfig> > jsk_perception::SlidingWindowObjectDetector::srv_ [protected] |
Definition at line 104 of file sliding_window_object_detector.h.
int jsk_perception::SlidingWindowObjectDetector::stack_size_ [protected] |
Definition at line 86 of file sliding_window_object_detector.h.
Definition at line 78 of file sliding_window_object_detector.h.
boost::shared_ptr<cv::SVM> jsk_perception::SlidingWindowObjectDetector::supportVectorMachine_ [protected] |
Definition at line 101 of file sliding_window_object_detector.h.
int jsk_perception::SlidingWindowObjectDetector::swindow_x [protected] |
Definition at line 83 of file sliding_window_object_detector.h.
int jsk_perception::SlidingWindowObjectDetector::swindow_y [protected] |
Definition at line 84 of file sliding_window_object_detector.h.
Definition at line 91 of file sliding_window_object_detector.h.