[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

vigra_ext::ROIImage< Image, Mask > Class Template Reference

brief description.. More...

#include <ROIImage.h>

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

Inheritance graph
[legend]
List of all members.

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.
virtual ~ROIImage ()
 dtor.
void resize (const vigra::Rect2D &rect)
 resize the image
image_traverser upperLeft ()
 returns an traverser to the upper left of the image, this is usually outside of the rectangle.
image_const_traverser upperLeft () const
image_traverser lowerRight ()
image_const_traverser lowerRight () const
ImageAccessor accessor ()
 return the accessor of this image
ImageConstAccessor accessor () const
mask_traverser maskUpperLeft ()
 returns an traverser to the upper left of the image, this is usually outside of the rectangle.
mask_const_traverser maskUpperLeft () const
mask_traverser maskLowerRight ()
mask_const_traverser maskLowerRight () const
MaskAccessor maskAccessor ()
 return the accessor of the alpha channel
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
Mask m_mask
 corresponding alpha channel

Protected Attributes

vigra::Rect2D m_region
 bounding rectangle of the image

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.


Member Typedef Documentation

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

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

Reimplemented in HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >, and HuginBase::Nona::RemappedPanoImage< ImageType, AlphaType >.

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

Reimplemented in HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >, and HuginBase::Nona::RemappedPanoImage< ImageType, AlphaType >.

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

Reimplemented in HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >, and HuginBase::Nona::RemappedPanoImage< ImageType, AlphaType >.

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

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

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

Reimplemented in HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >, and HuginBase::Nona::RemappedPanoImage< ImageType, AlphaType >.

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

Reimplemented in HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >, and HuginBase::Nona::RemappedPanoImage< ImageType, AlphaType >.

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

Reimplemented in HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >, and HuginBase::Nona::RemappedPanoImage< ImageType, AlphaType >.

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


Constructor & Destructor Documentation

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

ctor.

template<class Image, class Mask>
virtual vigra_ext::ROIImage< Image, Mask >::~ROIImage  )  [inline, virtual]
 

dtor.


Member Function Documentation

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

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

return the accessor of this image

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 const vigra::Diff2D &  pos  )  [inline]
 

template<class Image, class Mask>
mask_value_type vigra_ext::ROIImage< Image, Mask >::getMask int  x,
int  y
[inline]
 

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

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

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

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

return the accessor of the alpha channel

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

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

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

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.

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

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.

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

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.


Member Data Documentation

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

remapped image

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

corresponding alpha channel

template<class Image, class Mask>
vigra::Rect2D vigra_ext::ROIImage< Image, Mask >::m_region [protected]
 

bounding rectangle of the image


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

Generated on Mon Sep 20 01:01:37 2010 for Hugintrunk by doxygen 1.3.9.1