Public Member Functions | Protected Member Functions | Protected Attributes
jsk_perception::SlidingWindowObjectDetector Class Reference

#include <sliding_window_object_detector.h>

Inheritance diagram for jsk_perception::SlidingWindowObjectDetector:
Inheritance graph
[legend]

List of all members.

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::Bagrosbag_
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_

Detailed Description

Definition at line 37 of file sliding_window_object_detector.h.


Constructor & Destructor Documentation

Definition at line 41 of file sliding_window_object_detector.h.


Member Function Documentation

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 210 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 278 of file sliding_window_object_detector.cpp.

void jsk_perception::SlidingWindowObjectDetector::configCallback ( jsk_perception::SlidingWindowObjectDetectorConfig &  config,
uint32_t  level 
) [virtual]

Definition at line 389 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 305 of file sliding_window_object_detector.cpp.

void jsk_perception::SlidingWindowObjectDetector::imageCb ( const sensor_msgs::ImageConstPtr &  msg) [protected, virtual]

Definition at line 76 of file sliding_window_object_detector.cpp.

Definition at line 321 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 241 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 171 of file sliding_window_object_detector.cpp.

Reimplemented from jsk_topic_tools::DiagnosticNodelet.

Definition at line 9 of file sliding_window_object_detector.cpp.

void jsk_perception::SlidingWindowObjectDetector::pyramidialScaling ( cv::Size &  wsize,
const float  scale 
) [virtual]

Definition at line 230 of file sliding_window_object_detector.cpp.

Definition at line 339 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 151 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 371 of file sliding_window_object_detector.cpp.


Member Data Documentation

Definition at line 97 of file sliding_window_object_detector.h.

Definition at line 88 of file sliding_window_object_detector.h.

Definition at line 87 of file sliding_window_object_detector.h.

Definition at line 96 of file sliding_window_object_detector.h.

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.

Definition at line 105 of file sliding_window_object_detector.h.

Definition at line 90 of file sliding_window_object_detector.h.

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.

Definition at line 86 of file sliding_window_object_detector.h.

Definition at line 78 of file sliding_window_object_detector.h.

Definition at line 101 of file sliding_window_object_detector.h.

Definition at line 83 of file sliding_window_object_detector.h.

Definition at line 84 of file sliding_window_object_detector.h.

Definition at line 91 of file sliding_window_object_detector.h.


The documentation for this class was generated from the following files:


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Wed Sep 16 2015 04:36:16