Path: blob/master/modules/core/misc/python/shadow_umat.hpp
16339 views
#error This is a shadow header file, which is not intended for processing by any compiler. \1Only bindings parser should handle this file.23namespace cv4{56class CV_EXPORTS_W UMat7{8public:9//! default constructor10CV_WRAP UMat(UMatUsageFlags usageFlags = USAGE_DEFAULT);11//! constructs 2D matrix of the specified size and type12// (_type is CV_8UC1, CV_64FC3, CV_32SC(12) etc.)13CV_WRAP UMat(int rows, int cols, int type, UMatUsageFlags usageFlags = USAGE_DEFAULT);14CV_WRAP UMat(Size size, int type, UMatUsageFlags usageFlags = USAGE_DEFAULT);15//! constucts 2D matrix and fills it with the specified value _s.16CV_WRAP UMat(int rows, int cols, int type, const Scalar& s, UMatUsageFlags usageFlags = USAGE_DEFAULT);17CV_WRAP UMat(Size size, int type, const Scalar& s, UMatUsageFlags usageFlags = USAGE_DEFAULT);1819//! Mat is mappable to UMat20CV_WRAP_MAPPABLE(Ptr<Mat>);2122//! returns the OpenCL queue used by OpenCV UMat23CV_WRAP_PHANTOM(static void* queue());2425//! returns the OpenCL context used by OpenCV UMat26CV_WRAP_PHANTOM(static void* context());2728//! copy constructor29CV_WRAP UMat(const UMat& m);3031//! creates a matrix header for a part of the bigger matrix32CV_WRAP UMat(const UMat& m, const Range& rowRange, const Range& colRange = Range::all());33CV_WRAP UMat(const UMat& m, const Rect& roi);34CV_WRAP UMat(const UMat& m, const std::vector<Range>& ranges);3536//CV_WRAP_AS(get) Mat getMat(int flags CV_WRAP_DEFAULT(ACCESS_RW)) const;37//! returns a numpy matrix38CV_WRAP_PHANTOM(Mat get() const);3940//! returns true iff the matrix data is continuous41// (i.e. when there are no gaps between successive rows).42// similar to CV_IS_MAT_CONT(cvmat->type)43CV_WRAP bool isContinuous() const;4445//! returns true if the matrix is a submatrix of another matrix46CV_WRAP bool isSubmatrix() const;4748/*! Returns the OpenCL buffer handle on which UMat operates on.49The UMat instance should be kept alive during the use of the handle to prevent the buffer to be50returned to the OpenCV buffer pool.51*/52CV_WRAP void* handle(AccessFlag accessFlags) const;5354// offset of the submatrix (or 0)55CV_PROP_RW size_t offset;56};5758} // namespace cv596061