Opencv 3.1 project on GR-PEACH board

Fork of gr-peach-opencv-project by the do

Embed: (wiki syntax)

« Back to documentation index

Connections with C++

Data Structures

struct  CvType
 class for automatic module/RTTI data registration/unregistration More...
class  Seq< _Tp >
class  SeqIterator< _Tp >

Functions

CV_EXPORTS Mat cvarrToMat (const CvArr *arr, bool copyData=false, bool allowND=true, int coiMode=0, AutoBuffer< double > *buf=0)
 converts array (CvMat or IplImage) to cv::Mat
CV_EXPORTS void extractImageCOI (const CvArr *arr, OutputArray coiimg, int coi=-1)
 extracts Channel of Interest from CvMat or IplImage and makes cv::Mat out of it.
CV_EXPORTS void insertImageCOI (InputArray coiimg, CvArr *arr, int coi=-1)
 inserts single-channel cv::Mat into a multi-channel CvMat or IplImage
 Seq ()
 the default constructor
 Seq (const CvSeq *seq)
 the constructor for wrapping CvSeq structure. The real element type in CvSeq should match _Tp.
 Seq (MemStorage &storage, int headerSize=sizeof(CvSeq))
 creates the empty sequence that resides in the specified storage
_Tp & operator[] (int idx)
 returns read-write reference to the specified element
const _Tp & operator[] (int idx) const
 returns read-only reference to the specified element
SeqIterator< _Tp > begin () const
 returns iterator pointing to the beginning of the sequence
SeqIterator< _Tp > end () const
 returns iterator pointing to the element following the last sequence element
size_t size () const
 returns the number of elements in the sequence
int type () const
 returns the type of sequence elements (CV_8UC1 ... CV_64FC(CV_CN_MAX) ...)
int depth () const
 returns the depth of sequence elements (CV_8U ... CV_64F)
int channels () const
 returns the number of channels in each sequence element
size_t elemSize () const
 returns the size of each sequence element
size_t index (const _Tp &elem) const
 returns index of the specified sequence element
void push_back (const _Tp &elem)
 appends the specified element to the end of the sequence
void push_front (const _Tp &elem)
 appends the specified element to the front of the sequence
void push_back (const _Tp *elems, size_t count)
 appends zero or more elements to the end of the sequence
void push_front (const _Tp *elems, size_t count)
 appends zero or more elements to the front of the sequence
_Tp & back ()
 returns reference to the last sequence element
const _Tp & back () const
 returns read-only reference to the last sequence element
_Tp & front ()
 returns reference to the first sequence element
const _Tp & front () const
 returns read-only reference to the first sequence element
bool empty () const
 returns true iff the sequence contains no elements
void clear ()
 removes all the elements from the sequence
void pop_back ()
 removes the last element from the sequence
void pop_front ()
 removes the first element from the sequence
void pop_back (_Tp *elems, size_t count)
 removes zero or more elements from the end of the sequence
void pop_front (_Tp *elems, size_t count)
 removes zero or more elements from the beginning of the sequence
void insert (int idx, const _Tp &elem)
 inserts the specified element to the specified position
void insert (int idx, const _Tp *elems, size_t count)
 inserts zero or more elements to the specified position
void remove (int idx)
 removes element at the specified position
void remove (const Range &r)
 removes the specified subsequence
void copyTo (std::vector< _Tp > &vec, const Range &range=Range::all()) const
 copies the whole sequence or the sequence slice to the specified vector
 operator std::vector< _Tp > () const
 returns the vector containing all the sequence elements
 SeqIterator ()
 the default constructor
 SeqIterator (const Seq< _Tp > &seq, bool seekEnd=false)
 the constructor setting the iterator to the beginning or to the end of the sequence
void seek (size_t pos)
 positions the iterator within the sequence
size_t tell () const
 reports the current iterator position
_Tp & operator* ()
 returns reference to the current sequence element
const _Tp & operator* () const
 returns read-only reference to the current sequence element
SeqIterator & operator++ ()
 moves iterator to the next sequence element
SeqIterator operator++ (int) const
 moves iterator to the next sequence element
SeqIterator & operator-- ()
 moves iterator to the previous sequence element
SeqIterator operator-- (int) const
 moves iterator to the previous sequence element
SeqIterator & operator+= (int)
 moves iterator forward by the specified offset (possibly negative)
SeqIterator & operator-= (int)
 moves iterator backward by the specified offset (possibly negative)

Function Documentation

_Tp & back (  ) [inherited]

returns reference to the last sequence element

Definition at line 2994 of file core_c.h.

const _Tp & back (  ) const [inherited]

returns read-only reference to the last sequence element

Definition at line 2997 of file core_c.h.

SeqIterator< _Tp > begin (  ) const [inherited]

returns iterator pointing to the beginning of the sequence

Definition at line 2958 of file core_c.h.

int channels (  ) const [inherited]

returns the number of channels in each sequence element

Definition at line 2973 of file core_c.h.

void clear (  ) [inherited]

removes all the elements from the sequence

Definition at line 3009 of file core_c.h.

void copyTo ( std::vector< _Tp > &  vec,
const Range range = Range::all() 
) const [inherited]

copies the whole sequence or the sequence slice to the specified vector

Definition at line 3039 of file core_c.h.

Mat cvarrToMat ( const CvArr arr,
bool  copyData = false,
bool  allowND = true,
int  coiMode = 0,
AutoBuffer< double > *  buf = 0 
)

converts array (CvMat or IplImage) to cv::Mat

Definition at line 856 of file matrix.cpp.

int depth (  ) const [inherited]

returns the depth of sequence elements (CV_8U ... CV_64F)

Definition at line 2970 of file core_c.h.

size_t elemSize (  ) const [inherited]

returns the size of each sequence element

Definition at line 2976 of file core_c.h.

bool empty (  ) const [inherited]

returns true iff the sequence contains no elements

Definition at line 3006 of file core_c.h.

SeqIterator< _Tp > end (  ) const [inherited]

returns iterator pointing to the element following the last sequence element

Definition at line 2961 of file core_c.h.

void extractImageCOI ( const CvArr arr,
OutputArray  coiimg,
int  coi = -1 
)

extracts Channel of Interest from CvMat or IplImage and makes cv::Mat out of it.

Definition at line 938 of file matrix.cpp.

_Tp & front (  ) [inherited]

returns reference to the first sequence element

Definition at line 3000 of file core_c.h.

const _Tp & front (  ) const [inherited]

returns read-only reference to the first sequence element

Definition at line 3003 of file core_c.h.

size_t index ( const _Tp &  elem ) const [inherited]

returns index of the specified sequence element

Definition at line 2979 of file core_c.h.

void insert ( int  idx,
const _Tp &  elem 
) [inherited]

inserts the specified element to the specified position

Definition at line 3024 of file core_c.h.

void insert ( int  idx,
const _Tp *  elems,
size_t  count 
) [inherited]

inserts zero or more elements to the specified position

Definition at line 3027 of file core_c.h.

void insertImageCOI ( InputArray  coiimg,
CvArr arr,
int  coi = -1 
)

inserts single-channel cv::Mat into a multi-channel CvMat or IplImage

Definition at line 953 of file matrix.cpp.

operator std::vector< _Tp > (  ) const [inherited]

returns the vector containing all the sequence elements

Definition at line 3047 of file core_c.h.

_Tp & operator* (  ) [inherited]

returns reference to the current sequence element

Definition at line 3072 of file core_c.h.

const _Tp & operator* (  ) const [inherited]

returns read-only reference to the current sequence element

Definition at line 3075 of file core_c.h.

SeqIterator< _Tp > & operator++ (  ) [inherited]

moves iterator to the next sequence element

Definition at line 3078 of file core_c.h.

SeqIterator< _Tp > operator++ ( int   ) const [inherited]

moves iterator to the next sequence element

Definition at line 3086 of file core_c.h.

SeqIterator< _Tp > & operator+= ( int  delta ) [inherited]

moves iterator forward by the specified offset (possibly negative)

Definition at line 3108 of file core_c.h.

SeqIterator< _Tp > & operator-- (  ) [inherited]

moves iterator to the previous sequence element

Definition at line 3093 of file core_c.h.

SeqIterator< _Tp > operator-- ( int   ) const [inherited]

moves iterator to the previous sequence element

Definition at line 3101 of file core_c.h.

SeqIterator< _Tp > & operator-= ( int  delta ) [inherited]

moves iterator backward by the specified offset (possibly negative)

Definition at line 3120 of file core_c.h.

_Tp & operator[] ( int  idx ) [inherited]

returns read-write reference to the specified element

Definition at line 2952 of file core_c.h.

const _Tp & operator[] ( int  idx ) const [inherited]

returns read-only reference to the specified element

Definition at line 2955 of file core_c.h.

void pop_back (  ) [inherited]

removes the last element from the sequence

Definition at line 3012 of file core_c.h.

void pop_back ( _Tp *  elems,
size_t  count 
) [inherited]

removes zero or more elements from the end of the sequence

Definition at line 3018 of file core_c.h.

void pop_front (  ) [inherited]

removes the first element from the sequence

Definition at line 3015 of file core_c.h.

void pop_front ( _Tp *  elems,
size_t  count 
) [inherited]

removes zero or more elements from the beginning of the sequence

Definition at line 3021 of file core_c.h.

void push_back ( const _Tp *  elems,
size_t  count 
) [inherited]

appends zero or more elements to the end of the sequence

Definition at line 2988 of file core_c.h.

void push_back ( const _Tp &  elem ) [inherited]

appends the specified element to the end of the sequence

Definition at line 2982 of file core_c.h.

void push_front ( const _Tp &  elem ) [inherited]

appends the specified element to the front of the sequence

Definition at line 2985 of file core_c.h.

void push_front ( const _Tp *  elems,
size_t  count 
) [inherited]

appends zero or more elements to the front of the sequence

Definition at line 2991 of file core_c.h.

void remove ( const Range r ) [inherited]

removes the specified subsequence

Definition at line 3036 of file core_c.h.

void remove ( int  idx ) [inherited]

removes element at the specified position

Definition at line 3033 of file core_c.h.

void seek ( size_t  pos ) [inherited]

positions the iterator within the sequence

Definition at line 3063 of file core_c.h.

Seq (  ) [inherited]

the default constructor

Definition at line 2939 of file core_c.h.

Seq ( MemStorage storage,
int  headerSize = sizeof(CvSeq< _Tp >) 
) [inherited]

creates the empty sequence that resides in the specified storage

Definition at line 2945 of file core_c.h.

Seq ( const CvSeq< _Tp > *  seq ) [inherited]

the constructor for wrapping CvSeq structure. The real element type in CvSeq should match _Tp.

Definition at line 2940 of file core_c.h.

SeqIterator (  ) [inherited]

the default constructor

Definition at line 3054 of file core_c.h.

SeqIterator ( const Seq< _Tp > &  seq,
bool  seekEnd = false 
) [inherited]

the constructor setting the iterator to the beginning or to the end of the sequence

Definition at line 3057 of file core_c.h.

size_t size (  ) const [inherited]

returns the number of elements in the sequence

Definition at line 2964 of file core_c.h.

size_t tell (  ) const [inherited]

reports the current iterator position

Definition at line 3069 of file core_c.h.

int type (  ) const [inherited]

returns the type of sequence elements (CV_8UC1 ... CV_64FC(CV_CN_MAX) ...)

Definition at line 2967 of file core_c.h.