|
| | _OutputArray () |
| |
| template<typename _Tp > |
| | _OutputArray (_Tp *vec, int n) |
| |
| template<typename _Tp > |
| | _OutputArray (const _Tp *vec, int n) |
| |
| | _OutputArray (const cuda::GpuMat &d_mat) |
| |
| | _OutputArray (const cuda::GpuMatND &d_mat) |
| |
| | _OutputArray (const cuda::HostMem &cuda_mem) |
| |
| template<typename _Tp > |
| | _OutputArray (const cudev::GpuMat_< _Tp > &m) |
| |
| | _OutputArray (const Mat &m) |
| |
| template<typename _Tp > |
| | _OutputArray (const Mat_< _Tp > &m) |
| |
| template<typename _Tp , int m, int n> |
| | _OutputArray (const Matx< _Tp, m, n > &matx) |
| |
| | _OutputArray (const ogl::Buffer &buf) |
| |
| template<typename _Tp , std::size_t _Nm> |
| | _OutputArray (const std::array< _Tp, _Nm > &arr) |
| |
| template<std::size_t _Nm> |
| | _OutputArray (const std::array< Mat, _Nm > &arr) |
| |
| template<typename _Tp > |
| | _OutputArray (const std::vector< _Tp > &vec) |
| |
| | _OutputArray (const std::vector< cuda::GpuMat > &d_mat) |
| |
| | _OutputArray (const std::vector< Mat > &vec) |
| |
| template<typename _Tp > |
| | _OutputArray (const std::vector< Mat_< _Tp > > &vec) |
| |
| template<typename _Tp > |
| | _OutputArray (const std::vector< std::vector< _Tp > > &vec) |
| |
| | _OutputArray (const std::vector< UMat > &vec) |
| |
| | _OutputArray (const UMat &m) |
| |
| | _OutputArray (cuda::GpuMat &d_mat) |
| |
| | _OutputArray (cuda::GpuMatND &d_mat) |
| |
| | _OutputArray (cuda::HostMem &cuda_mem) |
| |
| template<typename _Tp > |
| | _OutputArray (cudev::GpuMat_< _Tp > &m) |
| |
| | _OutputArray (int _flags, void *_obj) |
| |
| | _OutputArray (Mat &m) |
| |
| template<typename _Tp > |
| | _OutputArray (Mat_< _Tp > &m) |
| |
| template<typename _Tp , int m, int n> |
| | _OutputArray (Matx< _Tp, m, n > &matx) |
| |
| | _OutputArray (ogl::Buffer &buf) |
| |
| template<typename _Tp , std::size_t _Nm> |
| | _OutputArray (std::array< _Tp, _Nm > &arr) |
| |
| template<std::size_t _Nm> |
| | _OutputArray (std::array< Mat, _Nm > &arr) |
| |
| template<typename _Tp > |
| | _OutputArray (std::vector< _Tp > &vec) |
| |
| | _OutputArray (std::vector< bool > &vec)=delete |
| |
| | _OutputArray (std::vector< cuda::GpuMat > &d_mat) |
| |
| | _OutputArray (std::vector< Mat > &vec) |
| |
| template<typename _Tp > |
| | _OutputArray (std::vector< Mat_< _Tp > > &vec) |
| |
| template<typename _Tp > |
| | _OutputArray (std::vector< std::vector< _Tp > > &vec) |
| |
| | _OutputArray (std::vector< std::vector< bool > > &)=delete |
| |
| | _OutputArray (std::vector< UMat > &vec) |
| |
| | _OutputArray (UMat &m) |
| |
| void | assign (const Mat &m) const |
| |
| void | assign (const std::vector< Mat > &v) const |
| |
| void | assign (const std::vector< UMat > &v) const |
| |
| void | assign (const UMat &u) const |
| |
| void | clear () const |
| |
| void | create (int dims, const int *size, int type, int i=-1, bool allowTransposed=false, _OutputArray::DepthMask fixedDepthMask=static_cast< _OutputArray::DepthMask >(0)) const |
| |
| void | create (int rows, int cols, int type, int i=-1, bool allowTransposed=false, _OutputArray::DepthMask fixedDepthMask=static_cast< _OutputArray::DepthMask >(0)) const |
| |
| void | create (Size sz, int type, int i=-1, bool allowTransposed=false, _OutputArray::DepthMask fixedDepthMask=static_cast< _OutputArray::DepthMask >(0)) const |
| |
| void | createSameSize (const _InputArray &arr, int mtype) const |
| |
| bool | fixedSize () const |
| |
| bool | fixedType () const |
| |
| cuda::GpuMatND & | getGpuMatNDRef () const |
| |
| cuda::GpuMat & | getGpuMatRef () const |
| |
| std::vector< cuda::GpuMat > & | getGpuMatVecRef () const |
| |
| cuda::HostMem & | getHostMemRef () const |
| |
| Mat & | getMatRef (int i=-1) const |
| |
| ogl::Buffer & | getOGlBufferRef () const |
| |
| UMat & | getUMatRef (int i=-1) const |
| |
| void | move (Mat &m) const |
| |
| void | move (UMat &u) const |
| |
| bool | needed () const |
| |
| Mat | reinterpret (int type) const |
| |
| void | release () const |
| |
| void | setTo (const _InputArray &value, const _InputArray &mask=_InputArray()) const |
| |
| | _InputArray () |
| |
| template<typename _Tp > |
| | _InputArray (const _Tp *vec, int n) |
| |
| | _InputArray (const cuda::GpuMat &d_mat) |
| |
| | _InputArray (const cuda::GpuMatND &d_mat) |
| |
| | _InputArray (const cuda::HostMem &cuda_mem) |
| |
| template<typename _Tp > |
| | _InputArray (const cudev::GpuMat_< _Tp > &m) |
| |
| | _InputArray (const double &val) |
| |
| | _InputArray (const Mat &m) |
| |
| template<typename _Tp > |
| | _InputArray (const Mat_< _Tp > &m) |
| |
| | _InputArray (const MatExpr &expr) |
| |
| template<typename _Tp , int m, int n> |
| | _InputArray (const Matx< _Tp, m, n > &matx) |
| |
| | _InputArray (const ogl::Buffer &buf) |
| |
| template<typename _Tp , std::size_t _Nm> |
| | _InputArray (const std::array< _Tp, _Nm > &arr) |
| |
| template<std::size_t _Nm> |
| | _InputArray (const std::array< Mat, _Nm > &arr) |
| |
| template<typename _Tp > |
| | _InputArray (const std::vector< _Tp > &vec) |
| |
| | _InputArray (const std::vector< bool > &vec) |
| |
| | _InputArray (const std::vector< cuda::GpuMat > &d_mat_array) |
| |
| | _InputArray (const std::vector< Mat > &vec) |
| |
| template<typename _Tp > |
| | _InputArray (const std::vector< Mat_< _Tp > > &vec) |
| |
| template<typename _Tp > |
| | _InputArray (const std::vector< std::vector< _Tp > > &vec) |
| |
| | _InputArray (const std::vector< std::vector< bool > > &)=delete |
| |
| | _InputArray (const std::vector< UMat > &umv) |
| |
| | _InputArray (const UMat &um) |
| |
| | _InputArray (int _flags, void *_obj) |
| |
| | ~_InputArray () |
| |
| int | channels (int i=-1) const |
| |
| int | cols (int i=-1) const |
| |
| void | copyTo (const _OutputArray &arr) const |
| |
| void | copyTo (const _OutputArray &arr, const _InputArray &mask) const |
| |
| int | depth (int i=-1) const |
| |
| int | dims (int i=-1) const |
| |
| bool | empty () const |
| |
| bool | empty (int i) const |
| |
| int | getFlags () const |
| |
| cuda::GpuMat | getGpuMat () const |
| |
| cuda::GpuMatND | getGpuMatND () const |
| |
| void | getGpuMatVector (std::vector< cuda::GpuMat > &gpumv) const |
| |
| Mat | getMat (int idx=-1) const |
| |
| Mat | getMat_ (int idx=-1) const |
| |
| void | getMatVector (std::vector< Mat > &mv) const |
| |
| void * | getObj () const |
| |
| ogl::Buffer | getOGlBuffer () const |
| |
| Size | getSz () const |
| |
| UMat | getUMat (int idx=-1) const |
| |
| void | getUMatVector (std::vector< UMat > &umv) const |
| |
| bool | isContinuous (int i=-1) const |
| |
| bool | isGpuMat () const |
| |
| bool | isGpuMatND () const |
| |
| bool | isGpuMatVector () const |
| |
| bool | isMat () const |
| |
| bool | isMatVector () const |
| |
| bool | isMatx () const |
| |
| bool | isSubmatrix (int i=-1) const |
| |
| bool | isUMat () const |
| |
| bool | isUMatVector () const |
| |
| bool | isVector () const |
| |
| _InputArray::KindFlag | kind () const |
| |
| size_t | offset (int i=-1) const |
| |
| int | rows (int i=-1) const |
| |
| bool | sameSize (const _InputArray &arr) const |
| |
| Size | size (int i=-1) const |
| |
| int | sizend (int *sz, int i=-1) const |
| |
| size_t | step (int i=-1) const |
| |
| size_t | total (int i=-1) const |
| |
| int | type (int i=-1) const |
| |
この型はInputArrayと非常によく似ているが、入出力および出力の関数引数に使われる点が異なる。
InputArrayと同様に、OpenCVのユーザーはOutputArrayを気にする必要はなく、単に Mat や vector<T> などを関数に渡せばよい。InputArray と同じ制限、すなわち OutputArrayのインスタンスを明示的に生成しないこと がここでも当てはまる。
関数を多態的にしたい(つまり出力引数として異なる配列を受け取れるようにしたい)場合も、それほど難しくない。上記のサンプルを参考にしてほしい。_OutputArray::create() は _OutputArray::getMat() の前に呼び出す必要がある点に注意する。こうすることで、出力配列が適切に確保されることが保証される。
省略可能な出力引数。特定の出力配列を計算して返してもらう必要がない場合は、省略可能な入力配列の場合と同じように cv::noArray() を渡す。実装レベルでは、特定の出力配列を計算する必要があるかどうかを確認するために _OutputArray::needed() を使う。
Python/Java/... の自動ラッパー生成器を補助するために使われる、OutputArrayのいくつかの同義語がある:
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition mat.hpp:302
InputOutputArray InputOutputArrayOfArrays
Definition mat.hpp:459
OutputArray OutputArrayOfArrays
Definition mat.hpp:457
const _InputOutputArray & InputOutputArray
Definition mat.hpp:458