|  | 
|  | ImageT (size_t width, size_t height, size_t channelCount=1, size_t alphaChannelCount=0) | 
|  | 
|  | ImageT (const ImageT< T > &image) | 
|  | 
| const T & | at (size_t i) const | 
|  | 
| T & | at (size_t i) | 
|  | 
| const T & | at (size_t i, size_t j) const | 
|  | 
| T & | at (size_t i, size_t j) | 
|  | 
| virtual const ImageConf & | getConf () const | 
|  | 
| void | setConf (const ImageConf &conf) | 
|  | 
| virtual void | setGeometry (size_t width, size_t height, size_t imageChannels=1, size_t alphaChannels=0) | 
|  | Resizes the image, keeps the current type. 
 | 
|  | 
| void | setGeometry (const AreaGeometry &g, size_t imageChannels=1, size_t alphaChannels=0) | 
|  | Resizes the image, keeps the current type. 
 | 
|  | 
| void | setGeometry (const AreaGeometry &areaGeom, const ChannelGeometry &channelGeom) | 
|  | 
| void | setGeometry (const Geometry &g) | 
|  | Resizes the image, keeps the current type. 
 | 
|  | 
| void | resetGeometry () | 
|  | Collapses the image to undetectValue size, releasing memory. 
 | 
|  | 
| void | setChannelCount (size_t ni, size_t na=0) | 
|  | 
| void | setAlphaChannelCount (size_t k) | 
|  | 
| virtual void | initialize (const std::type_info &t, const Geometry &g) | 
|  | Sets the type and allocates a data buffer. 
 | 
|  | 
| virtual void | initialize (const std::type_info &t, size_t width, size_t height, size_t imageChannels=1, size_t alphaChannels=0) | 
|  | Sets the type and allocates a data buffer. 
 | 
|  | 
| virtual bool | suggestType (const std::type_info &t) override | 
|  | Change type. This overrides the behavior of ImageFrame::suggestType(). 
 | 
|  | 
| virtual bool | requireGeometry (const Geometry &geometry) override | 
|  | Change geometry. This overrides the behavior of ImageFrame::requireGeometry(). 
 | 
|  | 
|  | MultiChannel (const MultiChannel &img) | 
|  | 
| Channel & | getChannel (size_t i) | 
|  | 
| const Channel & | getChannel (size_t i) const | 
|  | 
| Channel & | getAlphaChannel (size_t i=0) | 
|  | 
| const Channel & | getAlphaChannel (size_t i=0) const | 
|  | 
| const std::vector< ChannelView > & | getChannelVector () const | 
|  | 
|  | ImageFrame (const ImageFrame &src) | 
|  | 
| void | setPhysicalRange (const Range< double > &range, bool rescale=false) | 
|  | Sets the supported range for physical values and optionally adjusts the scaling for maximal resolution. 
 | 
|  | 
| void | setPhysicalRange (double min, double max, bool rescale=false) | 
|  | Sets the supported range for physical values and optionally adjusts the scaling for maximal resolution. 
 | 
|  | 
| const iterator & | begin () | 
|  | Returns iterator pointing to the first image element. 
 | 
|  | 
| const iterator & | end () | 
|  | Returns the iterator pointing to the element after the last element of the image buffer. 
 | 
|  | 
| const const_iterator & | begin () const | 
|  | Returns iterator pointing to the first image element. 
 | 
|  | 
| const const_iterator & | end () const | 
|  | Returns the iterator pointing to the element after the last element of the image buffer. 
 | 
|  | 
| size_t | address (size_t i) const | 
|  | Computes the index location from image coordinates. Does not involve bit resolution. 
 | 
|  | 
| size_t | address (size_t i, size_t j) const | 
|  | Computes the index location from image coordinates. Does not involve bit resolution. 
 | 
|  | 
| size_t | address (size_t i, size_t j, size_t k) const | 
|  | Computes the index location from image coordinates. Does not involve bit resolution. 
 | 
|  | 
| const void * | getBuffer () const | 
|  | Returns the pointer to the start of the image array. 
 | 
|  | 
| void * | getBuffer () | 
|  | Returns the pointer to the start of the image array. 
 | 
|  | 
| template<class T > | 
| void | put (size_t i, T x) | 
|  | Sets the intensity in location itox. See \address.
 | 
|  | 
| template<class T > | 
| void | put (size_t i, size_t j, T x) | 
|  | Sets the intensity at location i,j tox. See address().
 | 
|  | 
| template<class T > | 
| void | put (size_t i, size_t j, size_t k, T x) | 
|  | Sets the intensity at location i,j,k tox.
 | 
|  | 
| template<class T , class P > | 
| void | put (const Point2D< P > &p, T x) | 
|  | Gets the intensity at location p=(i,j) .
 | 
|  | 
| void | putScaled (size_t i, size_t j, double x) | 
|  | Put intensity using original physical value. 
 | 
|  | 
| template<class T > | 
| T | get (size_t i) const | 
|  | Gets the intensity at location i. See address().
 | 
|  | 
| template<class T > | 
| T | get (size_t i, size_t j) const | 
|  | Gets the intensity at location i,j .
 | 
|  | 
| template<class T > | 
| T | get (size_t i, size_t j, size_t k) const | 
|  | Gets the intensity at location i,j,k .
 | 
|  | 
| double | getScaled (size_t i, size_t j) const | 
|  | Get intensity in original physical scale. 
 | 
|  | 
| template<class T , class P > | 
| T | get (const Point2D< P > &p) const | 
|  | Gets the intensity at location p=(i,j) .
 | 
|  | 
| template<class T , class P > | 
| void | putPixel (const Point2D< P > &p, const std::vector< T > &pixel) const | 
|  | 
| template<class T , class P > | 
| void | getPixel (const Point2D< P > &p, std::vector< T > &pixel) const | 
|  | 
| void | clear () | 
|  | Sets the intensities to zero. Does not change image geometry. See resetGeometry(). 
 | 
|  | 
| template<class T > | 
| void | fill (T x) | 
|  | Sets the intensities to given value. Does not change image geometry. 
 | 
|  | 
| void | copyData (const ImageFrame &src) | 
|  | Copies data. Does not change encoding, geometry, or coordinate policy. 
 | 
|  | 
| bool | hasOverlap (const ImageFrame &image) const | 
|  | Checks if images have a common memory segment. 
 | 
|  | 
| bool | hasSameSegment (const ImageFrame &image) const | 
|  | Return true, if both frames have same type and are using the same data segment. 
 | 
|  | 
| virtual const FlexVariableMap & | getProperties () const | 
|  | 
| void | setName (const std::string &s) | 
|  | 
| const std::string & | getName () const | 
|  | 
| void | toStream (std::ostream &ostr=std::cout) const | 
|  | Prints images geometry, buffer size and type information. 
 | 
|  | 
|  | ImageLike (const ImageLike &image) | 
|  | 
| const std::type_info & | getType () const | 
|  | Get the storage type. 
 | 
|  | 
| bool | typeIsSet () const | 
|  | 
| virtual const Geometry & | getGeometry () const | 
|  | 
| size_t | getWidth () const | 
|  | 
| size_t | getHeight () const | 
|  | 
| size_t | getArea () const | 
|  | 
| size_t | getChannelCount () const | 
|  | 
| const size_t | getImageChannelCount () const | 
|  | 
| const size_t | getAlphaChannelCount () const | 
|  | 
| bool | hasAlphaChannel () const | 
|  | 
| size_t | getVolume () const | 
|  | 
| bool | isEmpty () const | 
|  | 
|  | operator bool () const | 
|  | Return true, if image has width and height. 
 | 
|  | 
| const CoordinatePolicy & | getCoordinatePolicy () const | 
|  | Coord policy. 
 | 
|  | 
| CoordinatePolicy & | getCoordinatePolicy () | 
|  | Coord policy. 
 | 
|  | 
| template<class T > | 
| void | setCoordinatePolicy (const T &policy) | 
|  | 
| void | setCoordinatePolicy (EdgePolicy::index_t xUnderFlowPolicy, EdgePolicy::index_t yUnderFlowPolicy, EdgePolicy::index_t xOverFlowPolicy, EdgePolicy::index_t yOverFlowPolicy) | 
|  | 
| virtual const drain::ValueScaling & | getScaling () const | 
|  | 
| virtual drain::ValueScaling & | getScaling () | 
|  | 
| virtual void | setScaling (const drain::ValueScaling &scaling) | 
|  | 
| virtual void | setScaling (double scale, double offset) | 
|  | 
| template<class T > | 
| drain::typeLimiter< T >::value_t | getLimiter () const | 
|  | 
template<class T = unsigned char>
class drain::image::ImageT< T >
A template class for images with static storage type. 
- See also
- Image