Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
jsk_perception::SlidingWindowObjectDetector Class Reference

#include <sliding_window_object_detector.h>

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

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 ()
 
- Public Member Functions inherited from HOGFeatureDescriptor
virtual cv::Mat computeHOG (const cv::Mat &)
 
 HOGFeatureDescriptor (const int=8, const int=2, const int=9, const float=180.0f)
 

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_
 
bool override_manifest_
 
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_
 
- Protected Attributes inherited from HOGFeatureDescriptor
int ANGLE
 
int BINS_ANGLE
 
int BLOCK
 
int CELL
 
int N_BINS
 

Detailed Description

Definition at line 37 of file sliding_window_object_detector.h.

Constructor & Destructor Documentation

◆ SlidingWindowObjectDetector()

jsk_perception::SlidingWindowObjectDetector::SlidingWindowObjectDetector ( )
inline

Definition at line 41 of file sliding_window_object_detector.h.

Member Function Documentation

◆ computeHSHistogram()

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

◆ concatenateCVMat()

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

◆ configCallback()

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

Definition at line 409 of file sliding_window_object_detector.cpp.

◆ convertCvRectToJSKRectArray()

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

◆ imageCb()

void jsk_perception::SlidingWindowObjectDetector::imageCb ( const sensor_msgs::ImageConstPtr &  msg)
protectedvirtual

Definition at line 85 of file sliding_window_object_detector.cpp.

◆ loadTrainedDetectorModel()

void jsk_perception::SlidingWindowObjectDetector::loadTrainedDetectorModel ( )
virtual

Definition at line 330 of file sliding_window_object_detector.cpp.

◆ nonMaximumSuppression()

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

◆ objectRecognizer()

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

◆ onInit()

void jsk_perception::SlidingWindowObjectDetector::onInit ( )
protectedvirtual

Definition at line 14 of file sliding_window_object_detector.cpp.

◆ pyramidialScaling()

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

Definition at line 239 of file sliding_window_object_detector.cpp.

◆ readTrainingManifestFromDirectory()

void jsk_perception::SlidingWindowObjectDetector::readTrainingManifestFromDirectory ( )
virtual

Definition at line 348 of file sliding_window_object_detector.cpp.

◆ runSlidingWindowDetector()

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

◆ setBoundingBoxLabel()

void jsk_perception::SlidingWindowObjectDetector::setBoundingBoxLabel ( cv::Mat &  im,
cv::Rect_< int >  rect,
const std::string  label = "object" 
)
virtual

Definition at line 391 of file sliding_window_object_detector.cpp.

◆ subscribe()

void jsk_perception::SlidingWindowObjectDetector::subscribe ( )
protectedvirtual

Definition at line 70 of file sliding_window_object_detector.cpp.

◆ unsubscribe()

void jsk_perception::SlidingWindowObjectDetector::unsubscribe ( )
protectedvirtual

Definition at line 79 of file sliding_window_object_detector.cpp.

Member Data Documentation

◆ dataset_path_

std::string jsk_perception::SlidingWindowObjectDetector::dataset_path_
protected

Definition at line 97 of file sliding_window_object_detector.h.

◆ downsize_

int jsk_perception::SlidingWindowObjectDetector::downsize_
protected

Definition at line 88 of file sliding_window_object_detector.h.

◆ incrementor_

int jsk_perception::SlidingWindowObjectDetector::incrementor_
protected

Definition at line 87 of file sliding_window_object_detector.h.

◆ model_name_

std::string jsk_perception::SlidingWindowObjectDetector::model_name_
protected

Definition at line 96 of file sliding_window_object_detector.h.

◆ mutex_

boost::mutex jsk_perception::SlidingWindowObjectDetector::mutex_
protected

Definition at line 77 of file sliding_window_object_detector.h.

◆ ndataset_path_

std::string jsk_perception::SlidingWindowObjectDetector::ndataset_path_
protected

Definition at line 94 of file sliding_window_object_detector.h.

◆ nms_client_

ros::ServiceClient jsk_perception::SlidingWindowObjectDetector::nms_client_
protected

Definition at line 81 of file sliding_window_object_detector.h.

◆ nonobject_dataset_filename_

std::string jsk_perception::SlidingWindowObjectDetector::nonobject_dataset_filename_
protected

Definition at line 93 of file sliding_window_object_detector.h.

◆ object_dataset_filename_

std::string jsk_perception::SlidingWindowObjectDetector::object_dataset_filename_
protected

Definition at line 92 of file sliding_window_object_detector.h.

◆ override_manifest_

bool jsk_perception::SlidingWindowObjectDetector::override_manifest_
protected

Definition at line 99 of file sliding_window_object_detector.h.

◆ pub_image_

ros::Publisher jsk_perception::SlidingWindowObjectDetector::pub_image_
protected

Definition at line 79 of file sliding_window_object_detector.h.

◆ pub_rects_

ros::Publisher jsk_perception::SlidingWindowObjectDetector::pub_rects_
protected

Definition at line 80 of file sliding_window_object_detector.h.

◆ rosbag_

boost::shared_ptr<rosbag::Bag> jsk_perception::SlidingWindowObjectDetector::rosbag_
protected

Definition at line 108 of file sliding_window_object_detector.h.

◆ run_type_

std::string jsk_perception::SlidingWindowObjectDetector::run_type_
protected

Definition at line 90 of file sliding_window_object_detector.h.

◆ scale_

float jsk_perception::SlidingWindowObjectDetector::scale_
protected

Definition at line 85 of file sliding_window_object_detector.h.

◆ srv_

boost::shared_ptr<dynamic_reconfigure::Server< jsk_perception::SlidingWindowObjectDetectorConfig> > jsk_perception::SlidingWindowObjectDetector::srv_
protected

Definition at line 107 of file sliding_window_object_detector.h.

◆ stack_size_

int jsk_perception::SlidingWindowObjectDetector::stack_size_
protected

Definition at line 86 of file sliding_window_object_detector.h.

◆ sub_image_

ros::Subscriber jsk_perception::SlidingWindowObjectDetector::sub_image_
protected

Definition at line 78 of file sliding_window_object_detector.h.

◆ supportVectorMachine_

boost::shared_ptr<cv::SVM> jsk_perception::SlidingWindowObjectDetector::supportVectorMachine_
protected

Definition at line 104 of file sliding_window_object_detector.h.

◆ swindow_x

int jsk_perception::SlidingWindowObjectDetector::swindow_x
protected

Definition at line 83 of file sliding_window_object_detector.h.

◆ swindow_y

int jsk_perception::SlidingWindowObjectDetector::swindow_y
protected

Definition at line 84 of file sliding_window_object_detector.h.

◆ trainer_manifest_filename_

std::string jsk_perception::SlidingWindowObjectDetector::trainer_manifest_filename_
protected

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 Fri May 16 2025 03:11:18