Public Member Functions | Private Member Functions | Private Attributes | List of all members
jsk_perception::SlidingWindowObjectDetectorTrainer Class Reference

#include <sliding_window_object_detector_trainer.h>

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

Public Member Functions

virtual void computeHSHistogram (cv::Mat &, cv::Mat &, const int=64, const int=32, bool=true)
 
virtual void extractFeatures (cv::Mat &, cv::Mat &)
 
virtual void readDataset (std::string, std::string, cv::Mat &, cv::Mat &, bool=false, const int=0)
 
 SlidingWindowObjectDetectorTrainer ()
 
virtual void trainBinaryClassSVM (const cv::Mat &, const cv::Mat &)
 
virtual void trainObjectClassifier (std::string, std::string)
 
- 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)
 

Private Member Functions

virtual void concatenateCVMat (const cv::Mat &, const cv::Mat &, cv::Mat &, bool=true)
 
void writeTrainingManifestToDirectory (cv::FileStorage &)
 

Private Attributes

std::string dataset_path_
 
int hist_hbin_
 
int hist_sbin_
 
std::string manifest_filename_
 
ros::NodeHandle nh_
 
std::string nonobject_dataset_filename_
 
std::string nonobject_dataset_topic_
 
std::string object_dataset_filename_
 
std::string object_dataset_topic_
 
boost::shared_ptr< rosbag::Bagrosbag_
 
boost::shared_ptr< cv::SVM > supportVectorMachine_
 
int swindow_x_
 
int swindow_y_
 
std::string trained_classifier_name_
 

Additional Inherited Members

- Protected Attributes inherited from HOGFeatureDescriptor
int ANGLE
 
int BINS_ANGLE
 
int BLOCK
 
int CELL
 
int N_BINS
 

Detailed Description

Definition at line 26 of file sliding_window_object_detector_trainer.h.

Constructor & Destructor Documentation

jsk_perception::SlidingWindowObjectDetectorTrainer::SlidingWindowObjectDetectorTrainer ( )

Member Function Documentation

void jsk_perception::SlidingWindowObjectDetectorTrainer::computeHSHistogram ( cv::Mat &  src,
cv::Mat &  hist,
const int  hBin = 64,
const int  sBin = 32,
bool  is_norm = true 
)
virtual
void jsk_perception::SlidingWindowObjectDetectorTrainer::concatenateCVMat ( const cv::Mat &  mat_1,
const cv::Mat &  mat_2,
cv::Mat &  featureMD,
bool  iscolwise = true 
)
privatevirtual
void jsk_perception::SlidingWindowObjectDetectorTrainer::extractFeatures ( cv::Mat &  img,
cv::Mat &  featureMD 
)
virtual

currently programmed using fixed sized image

Definition at line 102 of file sliding_window_object_detector_trainer_node.cpp.

void jsk_perception::SlidingWindowObjectDetectorTrainer::readDataset ( std::string  filename,
std::string  topic_name,
cv::Mat &  featureMD,
cv::Mat &  labelMD,
bool  is_usr_label = false,
const int  usr_label = 0 
)
virtual
void jsk_perception::SlidingWindowObjectDetectorTrainer::trainBinaryClassSVM ( const cv::Mat &  featureMD,
const cv::Mat &  labelMD 
)
virtual
void jsk_perception::SlidingWindowObjectDetectorTrainer::trainObjectClassifier ( std::string  pfilename,
std::string  nfilename 
)
virtual
void jsk_perception::SlidingWindowObjectDetectorTrainer::writeTrainingManifestToDirectory ( cv::FileStorage &  fs)
private

Member Data Documentation

std::string jsk_perception::SlidingWindowObjectDetectorTrainer::dataset_path_
private

Definition at line 37 of file sliding_window_object_detector_trainer.h.

int jsk_perception::SlidingWindowObjectDetectorTrainer::hist_hbin_
private

Definition at line 34 of file sliding_window_object_detector_trainer.h.

int jsk_perception::SlidingWindowObjectDetectorTrainer::hist_sbin_
private

Definition at line 35 of file sliding_window_object_detector_trainer.h.

std::string jsk_perception::SlidingWindowObjectDetectorTrainer::manifest_filename_
private

Definition at line 44 of file sliding_window_object_detector_trainer.h.

ros::NodeHandle jsk_perception::SlidingWindowObjectDetectorTrainer::nh_
private

Definition at line 30 of file sliding_window_object_detector_trainer.h.

std::string jsk_perception::SlidingWindowObjectDetectorTrainer::nonobject_dataset_filename_
private

Definition at line 41 of file sliding_window_object_detector_trainer.h.

std::string jsk_perception::SlidingWindowObjectDetectorTrainer::nonobject_dataset_topic_
private

Definition at line 42 of file sliding_window_object_detector_trainer.h.

std::string jsk_perception::SlidingWindowObjectDetectorTrainer::object_dataset_filename_
private

Definition at line 39 of file sliding_window_object_detector_trainer.h.

std::string jsk_perception::SlidingWindowObjectDetectorTrainer::object_dataset_topic_
private

Definition at line 40 of file sliding_window_object_detector_trainer.h.

boost::shared_ptr<rosbag::Bag> jsk_perception::SlidingWindowObjectDetectorTrainer::rosbag_
private

Definition at line 46 of file sliding_window_object_detector_trainer.h.

boost::shared_ptr<cv::SVM> jsk_perception::SlidingWindowObjectDetectorTrainer::supportVectorMachine_
private

Definition at line 50 of file sliding_window_object_detector_trainer.h.

int jsk_perception::SlidingWindowObjectDetectorTrainer::swindow_x_
private

Definition at line 32 of file sliding_window_object_detector_trainer.h.

int jsk_perception::SlidingWindowObjectDetectorTrainer::swindow_y_
private

Definition at line 33 of file sliding_window_object_detector_trainer.h.

std::string jsk_perception::SlidingWindowObjectDetectorTrainer::trained_classifier_name_
private

Definition at line 43 of file sliding_window_object_detector_trainer.h.


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


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Mon May 3 2021 03:03:28