
#include <Image/Dims.H>
We guarantee that the width and height are always non-negative, though not necessarily strictly positive. The default Dims are the 0-by-0 dimensions. Dims is strictly a const class; the width/height can only be set at construction.
Definition at line 51 of file Dims.H.
Public Member Functions | |
| Dims () throw () | |
| Default construct with width and height == 0. | |
| Dims (int width, int height) throw () | |
| Construct from a given width + height, which must be non-negative. | |
| Dims (const Dims &other) throw () | |
| Copy construct. | |
| int | w () const throw () |
| Returns the width, will always be non-negative. | |
| int | h () const throw () |
| Returns the height, will always be non-negative. | |
| int | sz () const throw () |
| Returns the size of the 2-D area specified by the dimensions. | |
| int | max () const throw () |
| Returns the larger of the width and height. | |
| int | min () const throw () |
| Returns the smaller of the width and height. | |
| bool | isEmpty () const throw () |
| Query whether the 2-D array is empty. | |
| bool | isNonEmpty () const throw () |
| Query whether the 2-D array is non-empty. | |
| bool | operator== (const Dims &x) const throw () |
| See if two Dims are the same. | |
| bool | operator!= (const Dims &x) const throw () |
| See if two Dims are different. | |
|
|
Default construct with width and height == 0.
Definition at line 181 of file Dims.H. Referenced by RGB24_to_RGB32(), RGB24_to_RGB555(), RGB24_to_RGB565(), YUV24_to_UYVYx(), YUV24_to_YUV410P(), YUV24_to_YUV411(), YUV24_to_YUV411P(), YUV24_to_YUV420P(), YUV24_to_YUV422P(), YUV24_to_YUV444(), YUV24_to_YUV444P(), and YUV24_to_YUYV(). |
|
||||||||||||
|
Construct from a given width + height, which must be non-negative.
|
|
|
Copy construct.
|
|
|
|
Query whether the 2-D array is empty. (empty means that at least one of the width or height is 0). Definition at line 218 of file Dims.H. References sz(). Referenced by SwpeScorer::accum(), Point2D< T >::clampToDims(), convertAVFrameToRGB(), MbariResultViewer::displayImage(), doResizeFrame(), doResizeImage(), ResizeSpec::fromString(), ChannelBase::getInputDims(), RetinaSpaceVariant::getOutput(), RetinaStd::getOutput(), MrawvDecoder::MrawvDecoder(), XMLInput::readFrame(), InputMbariFrameSeries::readRGB(), QtImageFrame::Impl::scaledDims(), ChannelBase::setInputDims(), warp3D(), XWindow::XWindow(), yuv411p_to_VideoFrame(), yuv420p_to_VideoFrame(), and yuv422p_to_VideoFrame(). |
|
|
Query whether the 2-D array is non-empty. (i.e. both width and height are positive, non-zero). Definition at line 222 of file Dims.H. References sz(). Referenced by dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::boxDownSizeClean(), doResizeImage(), downSizeClean(), SpectralResidualChannel::getOutput(), SimulationViewerStd::getTraj(), SimulationViewerNerdCam::getTraj(), ChannelBase::hasInput(), VideoFrame::initialized(), Layout< byte >::initialized(), IntegerInput::initialized(), myDownSize(), SpatialMetrics::paramChanged(), EnvSimulationViewer::paramChanged(), InputFrameSeries::peekFrameSpec(), TrainingSet::scaledInputDims(), VisualBufferStd::start1(), EyeSFile::start2(), and QtImageFrame::Impl::updateSize(). |
|
|
Returns the larger of the width and height.
Definition at line 210 of file Dims.H. Referenced by centerSurround(), SpectralResidualChannel::getOutput(), and intgCenterSurround(). |
|
|
Returns the smaller of the width and height.
|
|
|
See if two Dims are different.
|
|
|
See if two Dims are the same.
|
|
|
1.4.4