MIRA
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Size< T, 2 > Class Template Reference

Specialization for 2D with special members width() and height(). More...

#include <geometry/Size.h>

Inheritance diagram for Size< T, 2 >:
Inheritance graph
[legend]

Public Types

typedef Eigen::Matrix< T, 2, 1 > BaseType
 
typedef Point< T, 2 > PointType
 
typedef class Eigen::Map< Matrix, Aligned > AlignedMapType
 
typedef class Eigen::Map< Matrix, Unaligned > UnalignedMapType
 

Public Member Functions

const Base & base () const
 
Base & base ()
 
const Scalar & coeff (int index) const
 
const Scalar & coeff (int row, int col) const
 
Scalar & coeffRef (int index)
 
Scalar & coeffRef (int row, int col)
 
int cols () const
 
Scalar * data ()
 
const Scalar * data () const
 
PacketScalar packet (int index) const
 
PacketScalar packet (int row, int col) const
 
void resize (int size)
 
void resize (int rows, int cols)
 
int rows () const
 
MatrixsetConstant (int rows, int cols, const Scalar &value)
 
MatrixsetConstant (int size, const Scalar &value)
 
MatrixsetIdentity (int rows, int cols)
 
MatrixsetOnes (int rows, int cols)
 
MatrixsetOnes (int size)
 
MatrixsetRandom (int rows, int cols)
 
MatrixsetRandom (int size)
 
MatrixsetZero (int rows, int cols)
 
MatrixsetZero (int size)
 
int stride (void) const
 
void swap (const MatrixBase< OtherDerived > &other)
 
void writePacket (int index, const PacketScalar &x)
 
void writePacket (int row, int col, const PacketScalar &x)
 
Constructors
 Size ()
 the default constructor More...
 
template<typename MatrixDerived >
 Size (const Eigen::MatrixBase< MatrixDerived > &matrix)
 a constructor to initialize width and height with a Eigen-matrix of correct dimension More...
 
 Size (T width, T height)
 a constructor with width and height for the 2D case More...
 
 Size (const cv::Size_< T > size)
 a copy constructor More...
 
Generic operations
width () const
 return the width More...
 
height () const
 return the height More...
 
T & width ()
 return the width More...
 
T & height ()
 return the height More...
 
template<typename Reflector >
void reflect (Reflector &reflector)
 
Implicit conversion operators
 operator PointType () const
 converts to mira Point More...
 
 operator cv::Size_< T > () const
 converts to open cv size More...
 
Sizeoperator= (const cv::Size_< T > &other)
 converts from cv size More...
 

Static Public Member Functions

static UnalignedMapType Map (Scalar *data, int rows, int cols)
 
static const UnalignedMapType Map (const Scalar *data, int rows, int cols)
 
static UnalignedMapType Map (Scalar *data, int size)
 
static const UnalignedMapType Map (const Scalar *data, int size)
 
static UnalignedMapType Map (Scalar *data)
 
static const UnalignedMapType Map (const Scalar *data)
 
static AlignedMapType MapAligned (Scalar *data, int rows, int cols)
 
static const AlignedMapType MapAligned (const Scalar *data, int rows, int cols)
 
static AlignedMapType MapAligned (Scalar *data, int size)
 
static const AlignedMapType MapAligned (const Scalar *data, int size)
 
static AlignedMapType MapAligned (Scalar *data)
 
static const AlignedMapType MapAligned (const Scalar *data)
 

Protected Attributes

ei_matrix_storage< Scalar, MaxSizeAtCompileTime, RowsAtCompileTime, ColsAtCompileTime, Options > m_storage
 

Detailed Description

template<typename T>
class mira::Size< T, 2 >

Specialization for 2D with special members width() and height().

Member Typedef Documentation

◆ BaseType

typedef Eigen::Matrix<T,2,1> BaseType

◆ PointType

typedef Point<T,2> PointType

Constructor & Destructor Documentation

◆ Size() [1/4]

Size ( )
inline

the default constructor

◆ Size() [2/4]

Size ( const Eigen::MatrixBase< MatrixDerived > &  matrix)
inline

a constructor to initialize width and height with a Eigen-matrix of correct dimension

◆ Size() [3/4]

Size ( width,
height 
)
inline

a constructor with width and height for the 2D case

◆ Size() [4/4]

Size ( const cv::Size_< T >  size)
inlineexplicit

a copy constructor

Member Function Documentation

◆ width() [1/2]

T width ( ) const
inline

return the width

◆ height() [1/2]

T height ( ) const
inline

return the height

◆ width() [2/2]

T& width ( )
inline

return the width

◆ height() [2/2]

T& height ( )
inline

return the height

◆ reflect()

void reflect ( Reflector &  reflector)
inline

◆ operator PointType()

operator PointType ( ) const
inline

converts to mira Point

◆ operator cv::Size_< T >()

operator cv::Size_< T > ( ) const
inline

converts to open cv size

◆ operator=()

Size& operator= ( const cv::Size_< T > &  other)
inline

converts from cv size


The documentation for this class was generated from the following file: