stromx  0.8.0
Classes | Functions | Variables
stromx::cvsupport Namespace Reference

Image utility types and functions More...

Classes

class  AdjustRgbChannels
 Adjusts the relative values of the channels in an RGB image. More...
 
class  Buffer
 Manages an array or reusable image buffers. More...
 
class  Clip
 Clips an image to a rectangular region. More...
 
class  ConstImage
 Outputs a configurable constant image. More...
 
class  ConvertPixelType
 Converts the pixel type of image. More...
 
class  DummyCamera
 Simulates a camera input. More...
 
class  Flicker
 Applies a random coefficent to the brightness of the image. More...
 
class  Image
 Image with support for reading and writing. More...
 
class  Matrix
 Matrix implementation based on OpenCV matrices. More...
 
class  ReadDirectory
 Applies a random coefficent to the brightness of the image. More...
 

Functions

cv::Mat getOpenCvMat (const runtime::Image &image)
 
cv::Mat getOpenCvMat (const runtime::Matrix &matrix, const unsigned int numChannels)
 
cv::RotatedRect getOpenCvRotatedRect (const runtime::Matrix &matrix)
 
std::vector< cv::Mat > getOpenCvMatVector (const runtime::List &list)
 
runtime::Image::PixelType computeOutPixelType (const int outDdepth, const runtime::Image::PixelType inPixelType)
 
void checkEnumValue (const stromx::runtime::Enum &value, const stromx::runtime::EnumParameter *param, const stromx::runtime::OperatorInfo &op)
 
void checkMatrixValue (const stromx::runtime::Matrix &value, const stromx::runtime::Input *desc, const stromx::runtime::OperatorInfo &op)
 
void checkMatrixValue (const stromx::runtime::Matrix &value, const stromx::runtime::MatrixParameter *param, const stromx::runtime::OperatorInfo &op)
 
template<class T >
void checkNumericValue (const T &value, const runtime::NumericParameter< T > *param, const stromx::runtime::OperatorInfo &op)
 

Variables

std::locale locale
 

Detailed Description

Image utility types and functions

Function Documentation

§ checkEnumValue()

STROMX_CVSUPPORT_API void stromx::cvsupport::checkEnumValue ( const stromx::runtime::Enum value,
const stromx::runtime::EnumParameter param,
const stromx::runtime::OperatorInfo op 
)

Checks if value is one of the valid values defined by param. by param.

Exceptions
WrongParameterValueIf this is not the case.

§ checkMatrixValue() [1/2]

STROMX_CVSUPPORT_API void stromx::cvsupport::checkMatrixValue ( const stromx::runtime::Matrix value,
const stromx::runtime::Input desc,
const stromx::runtime::OperatorInfo op 
)

Checks if the size of value conforms with the dimensions defined by desc.

Exceptions
InputErrorIf this is not the case.

§ checkMatrixValue() [2/2]

STROMX_CVSUPPORT_API void stromx::cvsupport::checkMatrixValue ( const stromx::runtime::Matrix value,
const stromx::runtime::MatrixParameter param,
const stromx::runtime::OperatorInfo op 
)

Checks if the size of value conforms with the dimensions defined by param.

Exceptions
WrongParameterValueIf this is not the case.

§ checkNumericValue()

template<class T >
void stromx::cvsupport::checkNumericValue ( const T &  value,
const runtime::NumericParameter< T > *  param,
const stromx::runtime::OperatorInfo op 
)

Checks if value is within the limits (minimum, maximum) defined by param.

Exceptions
WrongParameterValueIf this is not the case.

§ computeOutPixelType()

STROMX_CVSUPPORT_API runtime::Image::PixelType stromx::cvsupport::computeOutPixelType ( const int  outDdepth,
const runtime::Image::PixelType  inPixelType 
)

Computes the stromx pixel type of the input type inPixelType after conversion to the OpenCV depth outDdepth.

§ getOpenCvMat() [1/2]

STROMX_CVSUPPORT_API cv::Mat stromx::cvsupport::getOpenCvMat ( const runtime::Image image)

Returns an OpenCV matrix header for image.

§ getOpenCvMat() [2/2]

STROMX_CVSUPPORT_API cv::Mat stromx::cvsupport::getOpenCvMat ( const runtime::Matrix matrix,
const unsigned int  numChannels = 1 
)

Returns an OpenCV matrix header for matrix.

§ getOpenCvMatVector()

STROMX_CVSUPPORT_API std::vector< cv::Mat > stromx::cvsupport::getOpenCvMatVector ( const runtime::List list)

Converts a stromx list of matrices to a vector of OpenCV matrices.

Exceptions
BadCastIf one of the values in list can not be casted to a matrix.

§ getOpenCvRotatedRect()

STROMX_CVSUPPORT_API cv::RotatedRect stromx::cvsupport::getOpenCvRotatedRect ( const runtime::Matrix matrix)

Creates an OpenCV rotated rectangle from matrix.