69 m_oSize(null.m_oSize), m_iChannels(null.m_iChannels),
70 m_eFormat(null.m_eFormat), m_oROI(null.m_oROI){}
75 m_oSize(params.m_oSize),m_iChannels(params.m_iChannels),
76 m_eFormat(params.m_eFormat),m_oROI(params.m_oROI){}
93 { setup(size,fmt,channels,
roi); }
100 int roiX=0,
int roiY=0,
int roiWidth = 0,
int roiHeight = 0);
106 ImgParams(
int width,
int height,
int channels,
107 int roiX=0,
int roiY=0,
int roiWidth = 0,
int roiHeight = 0);
116 int roiX=0,
int roiY=0,
int roiWidth=0,
int roiHeight=0);
119 bool isNull()
const {
return (*
this)==
null; }
125 bool operator==(
const ImgParams &other)
const;
131 void setFormat(
format fmt);
134 void setChannels(
int channels);
180 bool hasFullROI()
const {
return m_oROI.getSize() == m_oSize;}
199 offset=getROIOffset(); size = getROISize();
230 int getDim()
const {
return getSize().getDim(); }
int getROIDim() const
returns the count of ROI pixels ( ROI_width*ROI_height )
Definition: ImgParams.h:233
void getROI(utils::Point &offset, utils::Size &size) const
copies the roi parameters into the given structs offset and size
Definition: ImgParams.h:198
undocument this line if you encounter any issues!
Definition: Any.h:37
int getROIWidth() const
returns the ROI width of the object
Definition: ImgParams.h:218
const utils::Size getROISize() const
returns the objects ROI size
Definition: ImgParams.h:206
int getROIYOffset() const
returns the ROI Y-Offset of the object
Definition: ImgParams.h:227
ImgParams()
creates a null ImgParams object
Definition: ImgParams.h:68
ImgParams(const utils::Size &size, int channels, format fmt, const utils::Rect &roi=utils::Rect::null)
creates an ImgParams object with all given parameters
Definition: ImgParams.h:92
ICLCore_API std::istream & operator>>(std::istream &s, format &f)
puts a string representation of format into the given stream
ICLCore_API std::ostream & operator<<(std::ostream &s, const format &f)
puts a string representation of format into the given stream
int getDim() const
returns the count of image pixels (width*height)
Definition: ImgParams.h:230
int getPixelOffset() const
returns ROI-dependent pixel offset, to address the upper left ROI pixel
Definition: ImgParams.h:215
int getChannels() const
returns the objects channel count
Definition: ImgParams.h:189
ICLQt_API ImgROI roi(ImgQ &r)
creates a ROI-struct from an image
const utils::Rect & getROI() const
returns the objects ROI rect
Definition: ImgParams.h:195
ImgParams(const utils::Size &size, int channels, const utils::Rect &roi=utils::Rect::null)
creates an ImgParams object with specified size, channels, roi and formatMatrix
Definition: ImgParams.h:80
ImgParams(const ImgParams ¶ms)
copy constructor
Definition: ImgParams.h:74
static const Rect null
null Rect is w=0, h=0, x=0, y=0
Definition: Rect.h:99
bool isNull() const
checks wether the object instance is null, i.e. all elements are zero
Definition: ImgParams.h:119
void setROI(const utils::Rect &roi)
sets the image ROI to the given rectangle
Definition: ImgParams.h:155
int getROIXOffset() const
returns the ROI X-Offset of the object
Definition: ImgParams.h:224
The ImgParams class stores all image parameters .
Definition: ImgParams.h:58
const utils::Size & getSize() const
returns the objects size
Definition: ImgParams.h:186
utils::Size m_oSize
image size
Definition: ImgParams.h:277
format
determines the color-format, that is associated with the images channels
Definition: Types.h:70
format getFormat() const
returns the object format
Definition: ImgParams.h:192
Size class of the ICL.
Definition: Size.h:61
int getROIHeight() const
returns the ROI height of the object
Definition: ImgParams.h:221
int m_iChannels
image channel count
Definition: ImgParams.h:280
int getWidth() const
returns the objects image width
Definition: ImgParams.h:209
const utils::Point getROIOffset() const
returns the objects ROI offset
Definition: ImgParams.h:203
utils::Rect m_oROI
image roi
Definition: ImgParams.h:286
bool hasFullROI() const
returns ROISize == ImageSize
Definition: ImgParams.h:180
void setFullROI()
sets the ROI to 0,0,image-width,image-height
Definition: ImgParams.h:183
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
static const Point null
null Point is x=0, y=0
Definition: Point.h:61
int getHeight() const
return the objects image height
Definition: ImgParams.h:212
bool operator!=(const ImgParams &other) const
returns !(*this==other)
Definition: ImgParams.h:122
format m_eFormat
image format (formatRGB, formatMatrix, ...)
Definition: ImgParams.h:283
Rectangle class of the ICL used e.g. for the Images ROI-rect.
Definition: Rect.h:95
#define ICLCore_API
Definition: CompatMacros.h:174