Public Member Functions | |
RectangleDetector (ros::NodeHandle nh=ros::NodeHandle()) | |
Private Member Functions | |
void | callback (const sensor_msgs::ImageConstPtr &image, const jsk_perception::LineArrayConstPtr &line) |
cv::Point2f | computeIntersect (cv::Vec4i a, cv::Vec4i b) |
void | reconfigureCallback (jsk_perception::RectangleDetectorConfig &new_config, uint32_t level) |
void | sortCorners (std::vector< cv::Point2f > &corners, cv::Point2f center) |
Private Attributes | |
int | _apertureSize |
bool | _L2gradient |
double | _threshold1 |
double | _threshold2 |
jsk_perception::RectangleDetectorConfig | config_ |
ros::Publisher | image_pub_ |
message_filters::Subscriber < sensor_msgs::Image > * | image_sub |
image_transport::ImageTransport | it_ |
message_filters::Subscriber < jsk_perception::LineArray > * | line_sub |
ros::NodeHandle | nh_ |
dynamic_reconfigure::Server < jsk_perception::RectangleDetectorConfig > | srv |
TimeSynchronizer < sensor_msgs::Image, jsk_perception::LineArray > * | sync |
Definition at line 25 of file rectangle_detector.cpp.
RectangleDetector::RectangleDetector | ( | ros::NodeHandle | nh = ros::NodeHandle() | ) | [inline] |
Definition at line 189 of file rectangle_detector.cpp.
void RectangleDetector::callback | ( | const sensor_msgs::ImageConstPtr & | image, |
const jsk_perception::LineArrayConstPtr & | line | ||
) | [inline, private] |
Definition at line 96 of file rectangle_detector.cpp.
cv::Point2f RectangleDetector::computeIntersect | ( | cv::Vec4i | a, |
cv::Vec4i | b | ||
) | [inline, private] |
Definition at line 54 of file rectangle_detector.cpp.
void RectangleDetector::reconfigureCallback | ( | jsk_perception::RectangleDetectorConfig & | new_config, |
uint32_t | level | ||
) | [inline, private] |
Definition at line 45 of file rectangle_detector.cpp.
void RectangleDetector::sortCorners | ( | std::vector< cv::Point2f > & | corners, |
cv::Point2f | center | ||
) | [inline, private] |
Definition at line 71 of file rectangle_detector.cpp.
int RectangleDetector::_apertureSize [private] |
Definition at line 42 of file rectangle_detector.cpp.
bool RectangleDetector::_L2gradient [private] |
Definition at line 43 of file rectangle_detector.cpp.
double RectangleDetector::_threshold1 [private] |
Definition at line 40 of file rectangle_detector.cpp.
double RectangleDetector::_threshold2 [private] |
Definition at line 41 of file rectangle_detector.cpp.
jsk_perception::RectangleDetectorConfig RectangleDetector::config_ [private] |
Definition at line 27 of file rectangle_detector.cpp.
ros::Publisher RectangleDetector::image_pub_ [private] |
Definition at line 31 of file rectangle_detector.cpp.
message_filters::Subscriber<sensor_msgs::Image>* RectangleDetector::image_sub [private] |
Definition at line 36 of file rectangle_detector.cpp.
Definition at line 32 of file rectangle_detector.cpp.
message_filters::Subscriber<jsk_perception::LineArray>* RectangleDetector::line_sub [private] |
Definition at line 37 of file rectangle_detector.cpp.
ros::NodeHandle RectangleDetector::nh_ [private] |
Definition at line 33 of file rectangle_detector.cpp.
dynamic_reconfigure::Server<jsk_perception::RectangleDetectorConfig> RectangleDetector::srv [private] |
Definition at line 28 of file rectangle_detector.cpp.
TimeSynchronizer<sensor_msgs::Image, jsk_perception::LineArray>* RectangleDetector::sync [private] |
Definition at line 38 of file rectangle_detector.cpp.