MCPcopy Create free account
hub / github.com/davisking/dlib / bind_image_classes4

Function bind_image_classes4

tools/python/src/image4.cpp:609–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607// ----------------------------------------------------------------------------------------
608
609void bind_image_classes4(py::module& m)
610{
611
612 const char* docs = "";
613
614 register_hough_transform(m);
615
616 m.def("transform_image", &py_transform_image<uint8_t>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
617 m.def("transform_image", &py_transform_image<uint16_t>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
618 m.def("transform_image", &py_transform_image<uint32_t>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
619 m.def("transform_image", &py_transform_image<uint64_t>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
620 m.def("transform_image", &py_transform_image<int8_t>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
621 m.def("transform_image", &py_transform_image<int16_t>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
622 m.def("transform_image", &py_transform_image<int32_t>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
623 m.def("transform_image", &py_transform_image<int64_t>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
624 m.def("transform_image", &py_transform_image<float>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
625 m.def("transform_image", &py_transform_image<double>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"));
626 m.def("transform_image", &py_transform_image<rgb_pixel>, py::arg("img"), py::arg("map_point"), py::arg("rows"), py::arg("columns"),
627"requires \n\
628 - rows > 0 \n\
629 - columns > 0 \n\
630ensures \n\
631 - Returns an image that is the given rows by columns in size and contains a \n\
632 transformed part of img. To do this, we interpret map_point as a mapping \n\
633 from pixels in the returned image to pixels in the input img. transform_image() \n\
634 uses this mapping and bilinear interpolation to fill the output image with an \n\
635 interpolated copy of img. \n\
636 - Any locations in the output image that map to pixels outside img are set to 0."
637 /*!
638 requires
639 - rows > 0
640 - columns > 0
641 ensures
642 - Returns an image that is the given rows by columns in size and contains a
643 transformed part of img. To do this, we interpret map_point as a mapping
644 from pixels in the returned image to pixels in the input img. transform_image()
645 uses this mapping and bilinear interpolation to fill the output image with an
646 interpolated copy of img.
647 - Any locations in the output image that map to pixels outside img are set to 0.
648 !*/
649 );
650
651 m.def("max_point", &py_max_point<uint8_t>, py::arg("img"));
652 m.def("max_point", &py_max_point<uint16_t>, py::arg("img"));
653 m.def("max_point", &py_max_point<uint32_t>, py::arg("img"));
654 m.def("max_point", &py_max_point<uint64_t>, py::arg("img"));
655 m.def("max_point", &py_max_point<int8_t>, py::arg("img"));
656 m.def("max_point", &py_max_point<int16_t>, py::arg("img"));
657 m.def("max_point", &py_max_point<int32_t>, py::arg("img"));
658 m.def("max_point", &py_max_point<int64_t>, py::arg("img"));
659 m.def("max_point", &py_max_point<float>, py::arg("img"));
660 m.def("max_point", &py_max_point<double>, py::arg("img"),
661"requires \n\
662 - m.size > 0 \n\
663ensures \n\
664 - returns the location of the maximum element of the array, that is, if the \n\
665 returned point is P then it will be the case that: img[P.y,P.x] == img.max()."
666 /*!

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls 2

register_hough_transformFunction · 0.85
argClass · 0.50

Tested by

no test coverage detected