Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
vigra_ext::ROIImage< Image, Mask > Class Template Reference

brief description. More...

#include <ROIImage.h>

Inheritance diagram for vigra_ext::ROIImage< Image, Mask >:
Inheritance graph

Public Types

typedef Image::value_type image_value_type
 
typedef Image::traverser image_traverser
 
typedef Image::const_traverser image_const_traverser
 
typedef Image::Accessor ImageAccessor
 
typedef Image::ConstAccessor ImageConstAccessor
 
typedef Mask::value_type mask_value_type
 
typedef Mask::traverser mask_traverser
 
typedef Mask::const_traverser mask_const_traverser
 
typedef Mask::Accessor MaskAccessor
 
typedef Mask::ConstAccessor MaskConstAccessor
 

Public Member Functions

 ROIImage ()
 ctor. More...
 
virtual ~ROIImage ()
 dtor. More...
 
void resize (const vigra::Rect2D &rect)
 resize the image More...
 
image_traverser upperLeft ()
 returns an traverser to the upper left of the image, this is usually outside of the rectangle. More...
 
image_const_traverser upperLeft () const
 
image_traverser lowerRight ()
 
image_const_traverser lowerRight () const
 
ImageAccessor accessor ()
 return the accessor of this image More...
 
ImageConstAccessor accessor () const
 
mask_traverser maskUpperLeft ()
 returns an traverser to the upper left of the image, this is usually outside of the rectangle. More...
 
mask_const_traverser maskUpperLeft () const
 
mask_traverser maskLowerRight ()
 
mask_const_traverser maskLowerRight () const
 
MaskAccessor maskAccessor ()
 return the accessor of the alpha channel More...
 
MaskConstAccessor maskAccessor () const
 
vigra::Rect2D & boundingBox ()
 
image_value_type operator() (int x, int y)
 
image_value_type operator[] (vigra::Diff2D const &pos)
 
mask_value_type getMask (int x, int y)
 
mask_value_type getMask (const vigra::Diff2D &pos)
 

Public Attributes

Image m_image
 remapped image More...
 
Mask m_mask
 corresponding alpha channel More...
 

Protected Attributes

vigra::Rect2D m_region
 bounding rectangle of the image More...
 

Detailed Description

template<class Image, class Mask>
class vigra_ext::ROIImage< Image, Mask >

brief description.

. This image will only hold a partial image, but look like a much bigger one. Iterators haven't been written for it yet, but maybe that will follow.

It should support most operations that other images support The alpha channel will be in a separate image, and can be obtained with separate functions.

Definition at line 85 of file ROIImage.h.

Member Typedef Documentation

template<class Image, class Mask>
typedef Image::const_traverser vigra_ext::ROIImage< Image, Mask >::image_const_traverser

Definition at line 95 of file ROIImage.h.

template<class Image, class Mask>
typedef Image::traverser vigra_ext::ROIImage< Image, Mask >::image_traverser

Definition at line 94 of file ROIImage.h.

template<class Image, class Mask>
typedef Image::value_type vigra_ext::ROIImage< Image, Mask >::image_value_type

Definition at line 93 of file ROIImage.h.

template<class Image, class Mask>
typedef Image::Accessor vigra_ext::ROIImage< Image, Mask >::ImageAccessor

Definition at line 96 of file ROIImage.h.

template<class Image, class Mask>
typedef Image::ConstAccessor vigra_ext::ROIImage< Image, Mask >::ImageConstAccessor

Definition at line 97 of file ROIImage.h.

template<class Image, class Mask>
typedef Mask::const_traverser vigra_ext::ROIImage< Image, Mask >::mask_const_traverser

Definition at line 101 of file ROIImage.h.

template<class Image, class Mask>
typedef Mask::traverser vigra_ext::ROIImage< Image, Mask >::mask_traverser

Definition at line 100 of file ROIImage.h.

template<class Image, class Mask>
typedef Mask::value_type vigra_ext::ROIImage< Image, Mask >::mask_value_type

Definition at line 99 of file ROIImage.h.

template<class Image, class Mask>
typedef Mask::Accessor vigra_ext::ROIImage< Image, Mask >::MaskAccessor

Definition at line 102 of file ROIImage.h.

template<class Image, class Mask>
typedef Mask::ConstAccessor vigra_ext::ROIImage< Image, Mask >::MaskConstAccessor

Definition at line 103 of file ROIImage.h.

Constructor & Destructor Documentation

template<class Image, class Mask>
vigra_ext::ROIImage< Image, Mask >::ROIImage ( )
inline

ctor.

Definition at line 107 of file ROIImage.h.

template<class Image, class Mask>
virtual vigra_ext::ROIImage< Image, Mask >::~ROIImage ( )
inlinevirtual

dtor.

Definition at line 112 of file ROIImage.h.

Member Function Documentation

template<class Image, class Mask>
ImageAccessor vigra_ext::ROIImage< Image, Mask >::accessor ( )
inline

return the accessor of this image

Definition at line 174 of file ROIImage.h.

Referenced by vigra_ext::destImage(), vigra_ext::destImageRange(), vigra_ext::srcImage(), and vigra_ext::srcImageRange().

template<class Image, class Mask>
ImageConstAccessor vigra_ext::ROIImage< Image, Mask >::accessor ( ) const
inline

Definition at line 179 of file ROIImage.h.

template<class Image, class Mask>
vigra::Rect2D& vigra_ext::ROIImage< Image, Mask >::boundingBox ( )
inline
template<class Image, class Mask>
mask_value_type vigra_ext::ROIImage< Image, Mask >::getMask ( int  x,
int  y 
)
inline

Definition at line 258 of file ROIImage.h.

Referenced by vigra_ext::ROIImage< RemapImage, AlphaImage >::getMask().

template<class Image, class Mask>
mask_value_type vigra_ext::ROIImage< Image, Mask >::getMask ( const vigra::Diff2D &  pos)
inline

Definition at line 263 of file ROIImage.h.

template<class Image, class Mask>
image_traverser vigra_ext::ROIImage< Image, Mask >::lowerRight ( )
inline

Definition at line 156 of file ROIImage.h.

Referenced by vigra_ext::destImageRange(), and vigra_ext::srcImageRange().

template<class Image, class Mask>
image_const_traverser vigra_ext::ROIImage< Image, Mask >::lowerRight ( ) const
inline

Definition at line 165 of file ROIImage.h.

template<class Image, class Mask>
MaskAccessor vigra_ext::ROIImage< Image, Mask >::maskAccessor ( )
inline

return the accessor of the alpha channel

Definition at line 228 of file ROIImage.h.

Referenced by vigra_ext::destMask(), vigra_ext::destMaskRange(), vigra_ext::srcMask(), and vigra_ext::srcMaskRange().

template<class Image, class Mask>
MaskConstAccessor vigra_ext::ROIImage< Image, Mask >::maskAccessor ( ) const
inline

Definition at line 233 of file ROIImage.h.

template<class Image, class Mask>
mask_traverser vigra_ext::ROIImage< Image, Mask >::maskLowerRight ( )
inline

Definition at line 210 of file ROIImage.h.

Referenced by vigra_ext::destMaskRange(), and vigra_ext::srcMaskRange().

template<class Image, class Mask>
mask_const_traverser vigra_ext::ROIImage< Image, Mask >::maskLowerRight ( ) const
inline

Definition at line 219 of file ROIImage.h.

template<class Image, class Mask>
mask_traverser vigra_ext::ROIImage< Image, Mask >::maskUpperLeft ( )
inline

returns an traverser to the upper left of the image, this is usually outside of the rectangle.

The traverser must not be dereferenced there. It is only valid inside the Rect.

Definition at line 192 of file ROIImage.h.

Referenced by vigra_ext::destMask(), vigra_ext::destMaskRange(), vigra_ext::srcMask(), and vigra_ext::srcMaskRange().

template<class Image, class Mask>
mask_const_traverser vigra_ext::ROIImage< Image, Mask >::maskUpperLeft ( ) const
inline

Definition at line 201 of file ROIImage.h.

template<class Image, class Mask>
image_value_type vigra_ext::ROIImage< Image, Mask >::operator() ( int  x,
int  y 
)
inline

Definition at line 243 of file ROIImage.h.

template<class Image, class Mask>
image_value_type vigra_ext::ROIImage< Image, Mask >::operator[] ( vigra::Diff2D const &  pos)
inline
template<class Image, class Mask>
void vigra_ext::ROIImage< Image, Mask >::resize ( const vigra::Rect2D &  rect)
inline

resize the image

erases the current image content.

Definition at line 119 of file ROIImage.h.

template<class Image, class Mask>
image_traverser vigra_ext::ROIImage< Image, Mask >::upperLeft ( )
inline

returns an traverser to the upper left of the image, this is usually outside of the rectangle.

The traverser must not be dereferenced there. It is only valid inside the Rect.

Definition at line 138 of file ROIImage.h.

Referenced by vigra_ext::destImage(), vigra_ext::destImageRange(), vigra_ext::srcImage(), and vigra_ext::srcImageRange().

template<class Image, class Mask>
image_const_traverser vigra_ext::ROIImage< Image, Mask >::upperLeft ( ) const
inline

Definition at line 147 of file ROIImage.h.

Member Data Documentation

template<class Image, class Mask>
Image vigra_ext::ROIImage< Image, Mask >::m_image
template<class Image, class Mask>
Mask vigra_ext::ROIImage< Image, Mask >::m_mask
template<class Image, class Mask>
vigra::Rect2D vigra_ext::ROIImage< Image, Mask >::m_region
protected

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