Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
jsk_recognition_utils Namespace Reference

Namespaces

namespace  chainermodels
namespace  conversations
namespace  depth
namespace  feature
namespace  geometry
namespace  mask
namespace  visualize

Classes

class  CameraDepthSensor
class  ConvexPolygon
class  Counter
class  Cube
class  Cylinder
class  GridIndex
class  GridLine
class  GridMap
class  GridPlane
 Grid based representation of planar region. More...
class  Line
 Class to represent 3-D straight line. More...
class  Plane
class  PointCloudSensorModel
 Super class for sensor model. It provides pure virtual method for common interfaces. More...
struct  PointXYZHLS
class  Polygon
class  PolyLine
 Class to represent 3-D polyline (not closed). More...
class  ScopedWallDurationReporter
class  Segment
 Class to represent 3-D straight line which has finite length. More...
class  SeriesedBoolean
class  SpindleLaserSensor
class  TfListenerSingleton
class  TimeredDiagnosticUpdater
class  WallDurationTimer

Typedefs

typedef std::map< int,
std::vector< int > > 
IntegerGraphMap
typedef Eigen::Vector3f Point
typedef boost::tuple< size_t,
size_t > 
PointIndexPair
typedef boost::tuple< Point,
Point
PointPair
typedef Eigen::Vector3f Vertex
typedef std::vector
< Eigen::Vector3f,
Eigen::aligned_allocator
< Eigen::Vector3f > > 
Vertices

Enumerations

enum  Colors {
  ALICEBLUE, ANTIQUEWHITE, AQUA, AQUAMARINE,
  AZURE, BEIGE, BISQUE, BLACK,
  BLANCHEDALMOND, BLUE, BLUEVIOLET, BROWN,
  BURLYWOOD, CADETBLUE, CHARTREUSE, CHOCOLATE,
  CORAL, CORNFLOWERBLUE, CORNSILK, CRIMSON,
  CYAN, DARKBLUE, DARKCYAN, DARKGOLDENROD,
  DARKGRAY, DARKGREEN, DARKGREY, DARKKHAKI,
  DARKMAGENTA, DARKOLIVEGREEN, DARKORANGE, DARKORCHID,
  DARKRED, DARKSALMON, DARKSEAGREEN, DARKSLATEBLUE,
  DARKSLATEGRAY, DARKSLATEGREY, DARKTURQUOISE, DARKVIOLET,
  DEEPPINK, DEEPSKYBLUE, DIMGRAY, DIMGREY,
  DODGERBLUE, FIREBRICK, FLORALWHITE, FORESTGREEN,
  FUCHSIA, GAINSBORO, GHOSTWHITE, GOLD,
  GOLDENROD, GRAY, GREEN, GREENYELLOW,
  GREY, HONEYDEW, HOTPINK, INDIANRED,
  INDIGO, IVORY, KHAKI, LAVENDER,
  LAVENDERBLUSH, LAWNGREEN, LEMONCHIFFON, LIGHTBLUE,
  LIGHTCORAL, LIGHTCYAN, LIGHTGOLDENRODYELLOW, LIGHTGRAY,
  LIGHTGREEN, LIGHTGREY, LIGHTPINK, LIGHTSALMON,
  LIGHTSEAGREEN, LIGHTSKYBLUE, LIGHTSLATEGRAY, LIGHTSLATEGREY,
  LIGHTSTEELBLUE, LIGHTYELLOW, LIME, LIMEGREEN,
  LINEN, MAGENTA, MAROON, MEDIUMAQUAMARINE,
  MEDIUMBLUE, MEDIUMORCHID, MEDIUMPURPLE, MEDIUMSEAGREEN,
  MEDIUMSLATEBLUE, MEDIUMSPRINGGREEN, MEDIUMTURQUOISE, MEDIUMVIOLETRED,
  MIDNIGHTBLUE, MINTCREAM, MISTYROSE, MOCCASIN,
  NAVAJOWHITE, NAVY, OLDLACE, OLIVE,
  OLIVEDRAB, ORANGE, ORANGERED, ORCHID,
  PALEGOLDENROD, PALEGREEN, PALEVIOLETRED, PAPAYAWHIP,
  PEACHPUFF, PERU, PINK, PLUM,
  POWDERBLUE, PURPLE, RED, ROSYBROWN,
  ROYALBLUE, SADDLEBROWN, SALMON, SANDYBROWN,
  SEAGREEN, SEASHELL, SIENNA, SILVER,
  SKYBLUE, SLATEBLUE, SLATEGRAY, SLATEGREY,
  SNOW, SPRINGGREEN, STEELBLUE, TAN,
  TEAL, THISTLE, TOMATO, TURQUOISE,
  VIOLET, WHEAT, WHITE, WHITESMOKE,
  YELLOW, YELLOWGREEN
}
 146 rgb colors More...
enum  ComparePolicy {
  CORRELATION = 0, BHATTACHARYYA, INTERSECTION, CHISQUARE,
  KL_DIVERGENCE
}
enum  HistogramPolicy { HUE = 0, HUE_AND_SATURATION }

Functions

void _buildGroupFromGraphMap (IntegerGraphMap graph_map, const int from_index, std::vector< int > &to_indices, std::set< int > &output_set)
void addDiagnosticBooleanStat (const std::string &string_prefix, const bool value, diagnostic_updater::DiagnosticStatusWrapper &stat)
void addDiagnosticErrorSummary (const std::string &string_prefix, jsk_topic_tools::VitalChecker::Ptr vital_checker, diagnostic_updater::DiagnosticStatusWrapper &stat)
void addDiagnosticInformation (const std::string &string_prefix, jsk_topic_tools::TimeAccumulator &accumulator, diagnostic_updater::DiagnosticStatusWrapper &stat)
std::vector< int > addIndices (const std::vector< int > &a, const std::vector< int > &b)
pcl::PointIndices::Ptr addIndices (const pcl::PointIndices &a, const pcl::PointIndices &b)
template<class T >
void addSet (std::set< T > &output, const std::set< T > &new_set)
Eigen::Affine3f affineFromYAMLNode (const YAML::Node &pose)
template<class T >
void appendVector (std::vector< T > &a, const std::vector< T > &b)
template<class PointT >
jsk_recognition_msgs::BoundingBox boundingBoxFromPointCloud (const pcl::PointCloud< PointT > &cloud)
cv::Rect boundingRectOfMaskImage (const cv::Mat &image)
 compute bounding rectangle of mask image.
void buildAllGroupsSetFromGraphMap (IntegerGraphMap graph_map, std::vector< std::set< int > > &output_sets)
void buildGroupFromGraphMap (IntegerGraphMap graph_map, const int from_index, std::vector< int > &to_indices, std::set< int > &output_set)
std_msgs::ColorRGBA colorCategory20 (int i)
cv::Scalar colorROSToCVBGR (const std_msgs::ColorRGBA &ros_color)
 Convert std_msgs::ColorRGBA to cv::Scalar in BGR order. It expects 0-1 values in std_msgs::ColorRGBA.
cv::Scalar colorROSToCVRGB (const std_msgs::ColorRGBA &ros_color)
 Convert std_msgs::ColorRGBA to cv::Scalar in RGB order. It expects 0-1 values in std_msgs::ColorRGBA.
bool compareHistogram (const std::vector< float > &input, const std::vector< float > &reference, const ComparePolicy policy, double &distance)
bool compareHistogramWithRangeBin (const jsk_recognition_msgs::HistogramWithRangeBin &left, const jsk_recognition_msgs::HistogramWithRangeBin &right)
 return true if left.count is larger than right.count.
void computeColorHistogram1d (const pcl::PointCloud< pcl::PointXYZHSV > &cloud, std::vector< float > &histogram, const int bin_size, const double white_threshold=0.1, const double black_threshold=0.1)
void computeColorHistogram2d (const pcl::PointCloud< pcl::PointXYZHSV > &cloud, std::vector< float > &histogram, const int bin_size_per_channel, const double white_threshold=0.1, const double black_threshold=0.1)
cv::MatND computeHistogram (const cv::Mat &input_image, int bin_size, float min_value, float max_value, const cv::Mat &mask_image)
 simple wrapper for cv::calcHist.
void convertEigenAffine3 (const Eigen::Affine3d &from, Eigen::Affine3f &to)
void convertEigenAffine3 (const Eigen::Affine3f &from, Eigen::Affine3d &to)
template<class FromT , class ToT >
void convertMatrix4 (const FromT &from, ToT &to)
std::vector< Plane::PtrconvertToPlanes (std::vector< pcl::ModelCoefficients::Ptr >)
template<class PointT >
std::vector< typename
pcl::PointCloud< PointT >::Ptr > 
convertToPointCloudArray (const typename pcl::PointCloud< PointT >::Ptr &cloud, const std::vector< pcl::PointIndices::Ptr > &indices)
template<class T >
pcl::PointCloud< pcl::PointXYZ >
::Ptr 
convertToXYZCloud (const pcl::PointCloud< T > &cloud)
template<class PointT >
ConvexPolygon::Ptr convexFromCoefficientsAndInliers (const typename pcl::PointCloud< PointT >::Ptr cloud, const pcl::PointIndices::Ptr inliers, const pcl::ModelCoefficients::Ptr coefficients)
template<typename PointT >
void cropPointCloud (const typename pcl::PointCloud< PointT >::Ptr &cloud, const jsk_recognition_msgs::BoundingBox &bbox_msg, std::vector< int > *indices, bool extract_removed_indices=false)
 Crop point cloud with jsk_recognition_msgs/BoundingBox.
std::vector
< jsk_recognition_msgs::HistogramWithRangeBin > 
cvMatNDToHistogramWithRangeBinArray (const cv::MatND &cv_hist, float min_value, float max_value)
 convert cv::MatND to jsk_recognition_msgs::HistogramimageWithRangeBin array
void drawHistogramWithRangeBin (cv::Mat &image, const jsk_recognition_msgs::HistogramWithRangeBin &bin, float min_width_value, float max_width_value, float max_height_value, cv::Scalar color)
 draw bin to cv::Mat
int getHistogramBin (const double &val, const int &step, const double &min, const double &max)
cv::Vec3d getRGBColor (const int color)
 get rgb color with enum.
bool hasField (const std::string &field_name, const sensor_msgs::PointCloud2 &msg)
 check if sensor_msgs/PointCloud2 message has the specified field.
cv::MatND HistogramWithRangeBinArrayTocvMatND (const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &histogram)
 convert jsk_recognition_msgs::HistogramimageWithRangeBin array to cv::MatND
void HSV2HLS (const pcl::PointXYZHSV &hsv, PointXYZHLS &hls)
bool isBGR (const std::string &encoding)
 Check encodings.
bool isBGRA (const std::string &encoding)
bool isRGB (const std::string &encoding)
bool isRGBA (const std::string &encoding)
bool isSameFrameId (const std::string &a, const std::string &b)
 Return true if a and b are the same frame_id.
bool isSameFrameId (const std_msgs::Header &a, const std_msgs::Header &b)
 Return true if a and b have the same frame_id.
template<class T1 , class T2 >
bool isSameFrameId (const T1 &a, const T2 &b)
 Return true if a and b have the same frame_id.
bool isValidPoint (const pcl::PointXYZ &p)
template<class PointT >
bool isValidPoint (const PointT &p)
void labelToRGB (const cv::Mat src, cv::Mat &dst)
 convert label image to rgb one.
tf::StampedTransform lookupTransformWithDuration (tf::TransformListener *listener, const std::string &to_frame, const std::string &from_frame, const ros::Time &stamp, ros::Duration duration)
template<class PointT >
void markerMsgToPointCloud (const visualization_msgs::Marker &input_marker, int sample_nums, pcl::PointCloud< PointT > &output_cloud)
void normalizeHistogram (std::vector< float > &histogram)
std::ostream & operator<< (std::ostream &os, const Segment &seg)
std::ostream & operator<< (std::ostream &os, const PolyLine &pl)
template<class PointT >
Vertices pointCloudToVertices (const pcl::PointCloud< PointT > &cloud)
 Compute Vertices from PointCloud.
template<class FromT , class ToT >
void pointFromVectorToVector (const FromT &from, ToT &to)
template<class FromT , class ToT >
void pointFromVectorToXYZ (const FromT &p, ToT &msg)
template<class FromT , class ToT >
void pointFromXYZToVector (const FromT &msg, ToT &p)
template<class FromT , class ToT >
void pointFromXYZToXYZ (const FromT &from, ToT &to)
std::vector< cv::Pointproject3DPointstoPixel (const image_geometry::PinholeCameraModel &model, const Vertices &vertices)
 Project array of 3d point represented in Eigen::Vector3f to 2d point using model.
cv::Point project3DPointToPixel (const image_geometry::PinholeCameraModel &model, const Eigen::Vector3f &p)
 Project 3d point represented in Eigen::Vector3f to 2d point using model.
void publishPointIndices (ros::Publisher &pub, const pcl::PointIndices &indices, const std_msgs::Header &header)
 Convert pcl::PointIndices to pcl_msgs::PointIndices and publish it with overriding header.
double randomGaussian (double mean, double var, boost::mt19937 &gen)
 Return a random value according to gaussian distribution. If variance is zero, it just returns mean.
double randomUniform (double min, double max, boost::mt19937 &gen)
 Return a random value according to uniform distribution.
void rangeImageToCvMat (const pcl::RangeImage &range_image, cv::Mat &mat)
 Convert pcl::RangeImage to cv::Mat. Distance is normalized to 0-1 and colorized.
void rotateHistogram1d (const std::vector< float > &input, std::vector< float > &output, const double degree)
void rotateHistogram2d (const std::vector< float > &input, std::vector< float > &output, const double degree)
Eigen::Quaternionf rotFrom3Axis (const Eigen::Vector3f &ex, const Eigen::Vector3f &ey, const Eigen::Vector3f &ez)
void sortHistogramWithRangeBinArray (std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &bins)
 sort std::vector<jsk_recognition_msgs::HistogramWithRangeBin>. largest value will be at the first element.
std::vector< int > subIndices (const std::vector< int > &a, const std::vector< int > &b)
pcl::PointIndices::Ptr subIndices (const pcl::PointIndices &a, const pcl::PointIndices &b)
std::vector
< jsk_recognition_msgs::HistogramWithRangeBin > 
topNHistogramWithRangeBins (const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &bins, double top_n_rate)
 extract top-N histograms. bins should be sorted. top_n_rate should be 0-1.
template<class PointT >
pcl::PointCloud< PointT >::Ptr verticesToPointCloud (const Vertices &v)
 Compute PointCloud from Vertices.

Variables

 BagOfFeatures = feature.BagOfFeatures
 bounding_box_msg_to_aabb = conversations.bounding_box_msg_to_aabb
 bounding_rect_of_mask = mask.bounding_rect_of_mask
 centerize = visualize.centerize
 colorize_cluster_indices = visualize.colorize_cluster_indices
 decompose_descriptors_with_label = feature.decompose_descriptors_with_label
 descent_closing = mask.descent_closing
 get_overlap_of_aabb = geometry.get_overlap_of_aabb
 get_tile_image = visualize.get_tile_image
boost::mutex global_chull_mutex
 rects_msg_to_ndarray = conversations.rects_msg_to_ndarray

Detailed Description

This file defines several utilities for pcl <--> ros bridging.


Typedef Documentation

typedef std::map<int, std::vector<int> > jsk_recognition_utils::IntegerGraphMap

Definition at line 161 of file pcl_util.h.

typedef Eigen::Vector3f jsk_recognition_utils::Point

Definition at line 45 of file types.h.

typedef boost::tuple<size_t, size_t> jsk_recognition_utils::PointIndexPair

Definition at line 50 of file types.h.

Definition at line 49 of file types.h.

typedef Eigen::Vector3f jsk_recognition_utils::Vertex

Definition at line 46 of file types.h.

typedef std::vector<Eigen::Vector3f, Eigen::aligned_allocator<Eigen::Vector3f> > jsk_recognition_utils::Vertices

Definition at line 48 of file types.h.


Enumeration Type Documentation

146 rgb colors

Enumerator:
ALICEBLUE 
ANTIQUEWHITE 
AQUA 
AQUAMARINE 
AZURE 
BEIGE 
BISQUE 
BLACK 
BLANCHEDALMOND 
BLUE 
BLUEVIOLET 
BROWN 
BURLYWOOD 
CADETBLUE 
CHARTREUSE 
CHOCOLATE 
CORAL 
CORNFLOWERBLUE 
CORNSILK 
CRIMSON 
CYAN 
DARKBLUE 
DARKCYAN 
DARKGOLDENROD 
DARKGRAY 
DARKGREEN 
DARKGREY 
DARKKHAKI 
DARKMAGENTA 
DARKOLIVEGREEN 
DARKORANGE 
DARKORCHID 
DARKRED 
DARKSALMON 
DARKSEAGREEN 
DARKSLATEBLUE 
DARKSLATEGRAY 
DARKSLATEGREY 
DARKTURQUOISE 
DARKVIOLET 
DEEPPINK 
DEEPSKYBLUE 
DIMGRAY 
DIMGREY 
DODGERBLUE 
FIREBRICK 
FLORALWHITE 
FORESTGREEN 
FUCHSIA 
GAINSBORO 
GHOSTWHITE 
GOLD 
GOLDENROD 
GRAY 
GREEN 
GREENYELLOW 
GREY 
HONEYDEW 
HOTPINK 
INDIANRED 
INDIGO 
IVORY 
KHAKI 
LAVENDER 
LAVENDERBLUSH 
LAWNGREEN 
LEMONCHIFFON 
LIGHTBLUE 
LIGHTCORAL 
LIGHTCYAN 
LIGHTGOLDENRODYELLOW 
LIGHTGRAY 
LIGHTGREEN 
LIGHTGREY 
LIGHTPINK 
LIGHTSALMON 
LIGHTSEAGREEN 
LIGHTSKYBLUE 
LIGHTSLATEGRAY 
LIGHTSLATEGREY 
LIGHTSTEELBLUE 
LIGHTYELLOW 
LIME 
LIMEGREEN 
LINEN 
MAGENTA 
MAROON 
MEDIUMAQUAMARINE 
MEDIUMBLUE 
MEDIUMORCHID 
MEDIUMPURPLE 
MEDIUMSEAGREEN 
MEDIUMSLATEBLUE 
MEDIUMSPRINGGREEN 
MEDIUMTURQUOISE 
MEDIUMVIOLETRED 
MIDNIGHTBLUE 
MINTCREAM 
MISTYROSE 
MOCCASIN 
NAVAJOWHITE 
NAVY 
OLDLACE 
OLIVE 
OLIVEDRAB 
ORANGE 
ORANGERED 
ORCHID 
PALEGOLDENROD 
PALEGREEN 
PALEVIOLETRED 
PAPAYAWHIP 
PEACHPUFF 
PERU 
PINK 
PLUM 
POWDERBLUE 
PURPLE 
RED 
ROSYBROWN 
ROYALBLUE 
SADDLEBROWN 
SALMON 
SANDYBROWN 
SEAGREEN 
SEASHELL 
SIENNA 
SILVER 
SKYBLUE 
SLATEBLUE 
SLATEGRAY 
SLATEGREY 
SNOW 
SPRINGGREEN 
STEELBLUE 
TAN 
TEAL 
THISTLE 
TOMATO 
TURQUOISE 
VIOLET 
WHEAT 
WHITE 
WHITESMOKE 
YELLOW 
YELLOWGREEN 

Definition at line 50 of file rgb_colors.h.

Enumerator:
CORRELATION 
BHATTACHARYYA 
INTERSECTION 
CHISQUARE 
KL_DIVERGENCE 

Definition at line 55 of file color_histogram.h.

Enumerator:
HUE 
HUE_AND_SATURATION 

Definition at line 50 of file color_histogram.h.


Function Documentation

void jsk_recognition_utils::_buildGroupFromGraphMap ( IntegerGraphMap  graph_map,
const int  from_index,
std::vector< int > &  to_indices,
std::set< int > &  output_set 
)

Definition at line 164 of file pcl_util.cpp.

void jsk_recognition_utils::addDiagnosticBooleanStat ( const std::string &  string_prefix,
const bool  value,
diagnostic_updater::DiagnosticStatusWrapper stat 
)

Definition at line 229 of file pcl_util.cpp.

Definition at line 218 of file pcl_util.cpp.

Definition at line 204 of file pcl_util.cpp.

std::vector< int > jsk_recognition_utils::addIndices ( const std::vector< int > &  a,
const std::vector< int > &  b 
)

Definition at line 62 of file pcl_util.cpp.

pcl::PointIndices::Ptr jsk_recognition_utils::addIndices ( const pcl::PointIndices &  a,
const pcl::PointIndices &  b 
)

Definition at line 72 of file pcl_util.cpp.

template<class T >
void jsk_recognition_utils::addSet ( std::set< T > &  output,
const std::set< T > &  new_set 
)

Definition at line 184 of file pcl_util.h.

Eigen::Affine3f jsk_recognition_utils::affineFromYAMLNode ( const YAML::Node &  pose)

Definition at line 45 of file pcl_util.cpp.

template<class T >
void jsk_recognition_utils::appendVector ( std::vector< T > &  a,
const std::vector< T > &  b 
)

Definition at line 113 of file pcl_util.h.

template<class PointT >
jsk_recognition_msgs::BoundingBox jsk_recognition_utils::boundingBoxFromPointCloud ( const pcl::PointCloud< PointT > &  cloud)

Definition at line 138 of file geo_util.h.

cv::Rect jsk_recognition_utils::boundingRectOfMaskImage ( const cv::Mat &  image)

compute bounding rectangle of mask image.

Definition at line 164 of file cv_utils.cpp.

void jsk_recognition_utils::buildAllGroupsSetFromGraphMap ( IntegerGraphMap  graph_map,
std::vector< std::set< int > > &  output_sets 
)

Definition at line 184 of file pcl_util.cpp.

void jsk_recognition_utils::buildGroupFromGraphMap ( IntegerGraphMap  graph_map,
const int  from_index,
std::vector< int > &  to_indices,
std::set< int > &  output_set 
)

Definition at line 133 of file pcl_util.cpp.

std_msgs::ColorRGBA jsk_recognition_utils::colorCategory20 ( int  i)
cv::Scalar jsk_recognition_utils::colorROSToCVBGR ( const std_msgs::ColorRGBA &  ros_color) [inline]

Convert std_msgs::ColorRGBA to cv::Scalar in BGR order. It expects 0-1 values in std_msgs::ColorRGBA.

Definition at line 60 of file color_utils.h.

cv::Scalar jsk_recognition_utils::colorROSToCVRGB ( const std_msgs::ColorRGBA &  ros_color) [inline]

Convert std_msgs::ColorRGBA to cv::Scalar in RGB order. It expects 0-1 values in std_msgs::ColorRGBA.

Definition at line 48 of file color_utils.h.

bool jsk_recognition_utils::compareHistogram ( const std::vector< float > &  input,
const std::vector< float > &  reference,
const ComparePolicy  policy,
double &  distance 
) [inline]

Definition at line 197 of file color_histogram.h.

bool jsk_recognition_utils::compareHistogramWithRangeBin ( const jsk_recognition_msgs::HistogramWithRangeBin &  left,
const jsk_recognition_msgs::HistogramWithRangeBin &  right 
)

return true if left.count is larger than right.count.

Definition at line 88 of file cv_utils.cpp.

void jsk_recognition_utils::computeColorHistogram1d ( const pcl::PointCloud< pcl::PointXYZHSV > &  cloud,
std::vector< float > &  histogram,
const int  bin_size,
const double  white_threshold = 0.1,
const double  black_threshold = 0.1 
) [inline]

Definition at line 101 of file color_histogram.h.

void jsk_recognition_utils::computeColorHistogram2d ( const pcl::PointCloud< pcl::PointXYZHSV > &  cloud,
std::vector< float > &  histogram,
const int  bin_size_per_channel,
const double  white_threshold = 0.1,
const double  black_threshold = 0.1 
) [inline]

Definition at line 128 of file color_histogram.h.

cv::MatND jsk_recognition_utils::computeHistogram ( const cv::Mat &  input_image,
int  bin_size,
float  min_value,
float  max_value,
const cv::Mat &  mask_image 
)

simple wrapper for cv::calcHist.

cv::MatND is a class to represent histogram in OpenCV 2.x. computeHistogram create 1-dimension cv::MatND.

Definition at line 44 of file cv_utils.cpp.

void jsk_recognition_utils::convertEigenAffine3 ( const Eigen::Affine3d &  from,
Eigen::Affine3f &  to 
)

Definition at line 71 of file pcl_conversion_util.cpp.

void jsk_recognition_utils::convertEigenAffine3 ( const Eigen::Affine3f &  from,
Eigen::Affine3d &  to 
)

Definition at line 80 of file pcl_conversion_util.cpp.

template<class FromT , class ToT >
void jsk_recognition_utils::convertMatrix4 ( const FromT &  from,
ToT &  to 
)

Definition at line 101 of file pcl_conversion_util.h.

std::vector< Plane::Ptr > jsk_recognition_utils::convertToPlanes ( std::vector< pcl::ModelCoefficients::Ptr >  coefficients)

Definition at line 76 of file polygon.cpp.

template<class PointT >
std::vector<typename pcl::PointCloud<PointT>::Ptr> jsk_recognition_utils::convertToPointCloudArray ( const typename pcl::PointCloud< PointT >::Ptr &  cloud,
const std::vector< pcl::PointIndices::Ptr > &  indices 
)

Definition at line 80 of file pcl_util.h.

template<class T >
pcl::PointCloud<pcl::PointXYZ>::Ptr jsk_recognition_utils::convertToXYZCloud ( const pcl::PointCloud< T > &  cloud)

Definition at line 98 of file pcl_util.h.

template<class PointT >
ConvexPolygon::Ptr jsk_recognition_utils::convexFromCoefficientsAndInliers ( const typename pcl::PointCloud< PointT >::Ptr  cloud,
const pcl::PointIndices::Ptr  inliers,
const pcl::ModelCoefficients::Ptr  coefficients 
)

Definition at line 91 of file convex_polygon.h.

template<typename PointT >
void jsk_recognition_utils::cropPointCloud ( const typename pcl::PointCloud< PointT >::Ptr &  cloud,
const jsk_recognition_msgs::BoundingBox &  bbox_msg,
std::vector< int > *  indices,
bool  extract_removed_indices = false 
)

Crop point cloud with jsk_recognition_msgs/BoundingBox.

Definition at line 101 of file pcl_ros_util.h.

std::vector< jsk_recognition_msgs::HistogramWithRangeBin > jsk_recognition_utils::cvMatNDToHistogramWithRangeBinArray ( const cv::MatND &  cv_hist,
float  min_value,
float  max_value 
)

convert cv::MatND to jsk_recognition_msgs::HistogramimageWithRangeBin array

Definition at line 60 of file cv_utils.cpp.

void jsk_recognition_utils::drawHistogramWithRangeBin ( cv::Mat &  image,
const jsk_recognition_msgs::HistogramWithRangeBin &  bin,
float  min_width_value,
float  max_width_value,
float  max_height_value,
cv::Scalar  color 
)

draw bin to cv::Mat

Definition at line 124 of file cv_utils.cpp.

int jsk_recognition_utils::getHistogramBin ( const double &  val,
const int &  step,
const double &  min,
const double &  max 
) [inline]

Definition at line 79 of file color_histogram.h.

cv::Vec3d jsk_recognition_utils::getRGBColor ( const int  color)

get rgb color with enum.

Definition at line 43 of file rgb_colors.cpp.

bool jsk_recognition_utils::hasField ( const std::string &  field_name,
const sensor_msgs::PointCloud2 &  msg 
)

check if sensor_msgs/PointCloud2 message has the specified field.

Definition at line 76 of file pcl_ros_util.cpp.

cv::MatND jsk_recognition_utils::HistogramWithRangeBinArrayTocvMatND ( const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &  histogram)

convert jsk_recognition_msgs::HistogramimageWithRangeBin array to cv::MatND

Definition at line 77 of file cv_utils.cpp.

void jsk_recognition_utils::HSV2HLS ( const pcl::PointXYZHSV &  hsv,
PointXYZHLS &  hls 
) [inline]

Definition at line 69 of file color_histogram.h.

bool jsk_recognition_utils::isBGR ( const std::string &  encoding)

Check encodings.

Definition at line 184 of file cv_utils.cpp.

bool jsk_recognition_utils::isBGRA ( const std::string &  encoding)

Definition at line 194 of file cv_utils.cpp.

bool jsk_recognition_utils::isRGB ( const std::string &  encoding)

Definition at line 189 of file cv_utils.cpp.

bool jsk_recognition_utils::isRGBA ( const std::string &  encoding)

Definition at line 199 of file cv_utils.cpp.

bool jsk_recognition_utils::isSameFrameId ( const std::string &  a,
const std::string &  b 
)

Return true if a and b are the same frame_id.

Definition at line 51 of file pcl_ros_util.cpp.

Return true if a and b have the same frame_id.

Definition at line 71 of file pcl_ros_util.cpp.

template<class T1 , class T2 >
bool jsk_recognition_utils::isSameFrameId ( const T1 &  a,
const T2 &  b 
)

Return true if a and b have the same frame_id.

Definition at line 84 of file pcl_ros_util.h.

bool jsk_recognition_utils::isValidPoint ( const pcl::PointXYZ &  p) [inline]

Definition at line 195 of file pcl_conversion_util.h.

template<class PointT >
bool jsk_recognition_utils::isValidPoint ( const PointT &  p) [inline]

Definition at line 201 of file pcl_conversion_util.h.

void jsk_recognition_utils::labelToRGB ( const cv::Mat  src,
cv::Mat &  dst 
)

convert label image to rgb one.

Definition at line 147 of file cv_utils.cpp.

tf::StampedTransform jsk_recognition_utils::lookupTransformWithDuration ( tf::TransformListener listener,
const std::string &  to_frame,
const std::string &  from_frame,
const ros::Time stamp,
ros::Duration  duration 
)

Definition at line 60 of file tf_listener_singleton.cpp.

template<class PointT >
void jsk_recognition_utils::markerMsgToPointCloud ( const visualization_msgs::Marker &  input_marker,
int  sample_nums,
pcl::PointCloud< PointT > &  output_cloud 
)

Definition at line 117 of file pcl_conversion_util.h.

void jsk_recognition_utils::normalizeHistogram ( std::vector< float > &  histogram) [inline]

Definition at line 89 of file color_histogram.h.

std::ostream& jsk_recognition_utils::operator<< ( std::ostream &  os,
const Segment &  seg 
)

Definition at line 102 of file segment.cpp.

std::ostream& jsk_recognition_utils::operator<< ( std::ostream &  os,
const PolyLine &  pl 
)

Definition at line 166 of file polyline.cpp.

template<class PointT >
Vertices jsk_recognition_utils::pointCloudToVertices ( const pcl::PointCloud< PointT > &  cloud)

Compute Vertices from PointCloud.

Definition at line 122 of file geo_util.h.

template<class FromT , class ToT >
void jsk_recognition_utils::pointFromVectorToVector ( const FromT &  from,
ToT &  to 
)

Definition at line 94 of file pcl_conversion_util.h.

template<class FromT , class ToT >
void jsk_recognition_utils::pointFromVectorToXYZ ( const FromT &  p,
ToT &  msg 
)

Definition at line 80 of file pcl_conversion_util.h.

template<class FromT , class ToT >
void jsk_recognition_utils::pointFromXYZToVector ( const FromT &  msg,
ToT &  p 
)

Definition at line 73 of file pcl_conversion_util.h.

template<class FromT , class ToT >
void jsk_recognition_utils::pointFromXYZToXYZ ( const FromT &  from,
ToT &  to 
)

Definition at line 87 of file pcl_conversion_util.h.

std::vector< cv::Point > jsk_recognition_utils::project3DPointstoPixel ( const image_geometry::PinholeCameraModel model,
const Vertices &  vertices 
)

Project array of 3d point represented in Eigen::Vector3f to 2d point using model.

Definition at line 41 of file sensor_model_utils.cpp.

cv::Point jsk_recognition_utils::project3DPointToPixel ( const image_geometry::PinholeCameraModel model,
const Eigen::Vector3f &  p 
) [inline]

Project 3d point represented in Eigen::Vector3f to 2d point using model.

Definition at line 51 of file sensor_model_utils.h.

void jsk_recognition_utils::publishPointIndices ( ros::Publisher pub,
const pcl::PointIndices &  indices,
const std_msgs::Header header 
)

Convert pcl::PointIndices to pcl_msgs::PointIndices and publish it with overriding header.

Definition at line 41 of file pcl_ros_util.cpp.

double jsk_recognition_utils::randomGaussian ( double  mean,
double  var,
boost::mt19937 &  gen 
)

Return a random value according to gaussian distribution. If variance is zero, it just returns mean.

Definition at line 41 of file random_util.cpp.

double jsk_recognition_utils::randomUniform ( double  min,
double  max,
boost::mt19937 &  gen 
)

Return a random value according to uniform distribution.

Definition at line 55 of file random_util.cpp.

void jsk_recognition_utils::rangeImageToCvMat ( const pcl::RangeImage &  range_image,
cv::Mat &  mat 
)

Convert pcl::RangeImage to cv::Mat. Distance is normalized to 0-1 and colorized.

Parameters:
range_imageinstance of pcl::RangeImage
matinstance of cv::Mat, converted cv::Mat is set into this argument.

Definition at line 42 of file pcl_conversion_util.cpp.

void jsk_recognition_utils::rotateHistogram1d ( const std::vector< float > &  input,
std::vector< float > &  output,
const double  degree 
) [inline]

Definition at line 157 of file color_histogram.h.

void jsk_recognition_utils::rotateHistogram2d ( const std::vector< float > &  input,
std::vector< float > &  output,
const double  degree 
) [inline]

Definition at line 176 of file color_histogram.h.

Eigen::Quaternionf jsk_recognition_utils::rotFrom3Axis ( const Eigen::Vector3f &  ex,
const Eigen::Vector3f &  ey,
const Eigen::Vector3f &  ez 
)

Definition at line 55 of file geo_util.cpp.

void jsk_recognition_utils::sortHistogramWithRangeBinArray ( std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &  bins)

sort std::vector<jsk_recognition_msgs::HistogramWithRangeBin>. largest value will be at the first element.

Definition at line 94 of file cv_utils.cpp.

std::vector< int > jsk_recognition_utils::subIndices ( const std::vector< int > &  a,
const std::vector< int > &  b 
)

Definition at line 81 of file pcl_util.cpp.

pcl::PointIndices::Ptr jsk_recognition_utils::subIndices ( const pcl::PointIndices &  a,
const pcl::PointIndices &  b 
)

Definition at line 94 of file pcl_util.cpp.

std::vector< jsk_recognition_msgs::HistogramWithRangeBin > jsk_recognition_utils::topNHistogramWithRangeBins ( const std::vector< jsk_recognition_msgs::HistogramWithRangeBin > &  bins,
double  top_n_rate 
)

extract top-N histograms. bins should be sorted. top_n_rate should be 0-1.

Definition at line 100 of file cv_utils.cpp.

template<class PointT >
pcl::PointCloud<PointT>::Ptr jsk_recognition_utils::verticesToPointCloud ( const Vertices &  v)

Compute PointCloud from Vertices.

Definition at line 101 of file geo_util.h.


Variable Documentation

Definition at line 13 of file __init__.py.

Definition at line 10 of file __init__.py.

Definition at line 16 of file __init__.py.

Definition at line 19 of file __init__.py.

Definition at line 20 of file __init__.py.

Definition at line 14 of file __init__.py.

Definition at line 17 of file __init__.py.

Definition at line 23 of file __init__.py.

Definition at line 21 of file __init__.py.

Definition at line 43 of file pcl_util.cpp.

Definition at line 11 of file __init__.py.



jsk_recognition_utils
Author(s):
autogenerated on Sun Oct 8 2017 02:42:48