Go to the documentation of this file.
40 cvtColor2Wrap(bp::object obj_in,
const std::string & encoding_in,
const std::string & encoding_out) {
50 return bp::object(boost::python::handle<>(
pyopencv_from(mat)));
55 const std::string & encoding_in,
56 const std::string & encoding_out,
57 bool do_dynamic_scaling =
false,
58 double min_image_value = 0.0,
59 double max_image_value = 0.0) {
74 return bp::object(boost::python::handle<>(
pyopencv_from(mat)));
84 return CV_MAT_DEPTH(i);
98 cvtColorForDisplayWrap_overloads(
99 boost::python::args(
"source",
"encoding_in",
"encoding_out",
"do_dynamic_scaling",
100 "min_image_value",
"max_image_value"),
101 "Convert image to display with specified encodings.\n\n"
103 " - source (numpy.ndarray): input image\n"
104 " - encoding_in (str): input image encoding\n"
105 " - encoding_out (str): encoding to which the image conveted\n"
106 " - do_dynamic_scaling (bool): flag to do dynamic scaling with min/max value\n"
107 " - min_image_value (float): minimum pixel value for dynamic scaling\n"
108 " - max_image_value (float): maximum pixel value for dynamic scaling\n"
bp::object cvtColor2Wrap(bp::object obj_in, const std::string &encoding_in, const std::string &encoding_out)
bp::object cvtColorForDisplayWrap(bp::object obj_in, const std::string &encoding_in, const std::string &encoding_out, bool do_dynamic_scaling=false, double min_image_value=0.0, double max_image_value=0.0)
int convert_to_CvMat2(const PyObject *o, cv::Mat &m)
BOOST_PYTHON_MODULE(cv_bridge_boost)
int CV_MAT_DEPTHWrap(int i)
CvImageConstPtr cvtColorForDisplay(const CvImageConstPtr &source, const std::string &encoding=std::string(), const CvtColorForDisplayOptions options=CvtColorForDisplayOptions())
Converts an immutable sensor_msgs::Image message to another CvImage for display purposes,...
Image message class that is interoperable with sensor_msgs/Image but uses a more convenient cv::Mat r...
int getCvType(const std::string &encoding)
Get the OpenCV type enum corresponding to the encoding.
PyObject * pyopencv_from(const Mat &m)
CvImagePtr cvtColor(const CvImageConstPtr &source, const std::string &encoding)
Convert a CvImage to another encoding using the same rules as toCvCopy.
cv_bridge
Author(s): Patrick Mihelich, James Bowman
autogenerated on Wed Aug 21 2024 02:46:59