Commit e01f0488 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

minor

parent 00be2cf1
...@@ -268,20 +268,25 @@ namespace cv { namespace gpu ...@@ -268,20 +268,25 @@ namespace cv { namespace gpu
GpuMat mapDevice(); GpuMat mapDevice();
void unmapDevice(); void unmapDevice();
int rows() const; inline int rows() const { return rows_; }
int cols() const; inline int cols() const { return cols_; }
Size size() const; inline Size size() const { return Size(cols_, rows_); }
bool empty() const; inline bool empty() const { return rows_ == 0 || cols_ == 0; }
int type() const; inline int type() const { return type_; }
int depth() const; inline int depth() const { return CV_MAT_DEPTH(type_); }
int channels() const; inline int channels() const { return CV_MAT_CN(type_); }
int elemSize() const; inline int elemSize() const { return CV_ELEM_SIZE(type_); }
int elemSize1() const; inline int elemSize1() const { return CV_ELEM_SIZE1(type_); }
Usage usage() const; inline Usage usage() const { return usage_; }
private: private:
int rows_;
int cols_;
int type_;
Usage usage_;
class Impl; class Impl;
Ptr<Impl> impl_; Ptr<Impl> impl_;
}; };
...@@ -314,18 +319,22 @@ namespace cv { namespace gpu ...@@ -314,18 +319,22 @@ namespace cv { namespace gpu
void bind() const; void bind() const;
void unbind() const; void unbind() const;
int rows() const; inline int rows() const { return rows_; }
int cols() const; inline int cols() const { return cols_; }
Size size() const; inline Size size() const { return Size(cols_, rows_); }
bool empty() const; inline bool empty() const { return rows_ == 0 || cols_ == 0; }
int type() const; inline int type() const { return type_; }
int depth() const; inline int depth() const { return CV_MAT_DEPTH(type_); }
int channels() const; inline int channels() const { return CV_MAT_CN(type_); }
int elemSize() const; inline int elemSize() const { return CV_ELEM_SIZE(type_); }
int elemSize1() const; inline int elemSize1() const { return CV_ELEM_SIZE1(type_); }
private: private:
int rows_;
int cols_;
int type_;
class Impl; class Impl;
Ptr<Impl> impl_; Ptr<Impl> impl_;
}; };
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment