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.

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
 

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

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
 

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

Definition at line 93 of file ROIImage.h.

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 >.

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
 

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

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
 

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

Definition at line 99 of file ROIImage.h.

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 >.

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  )  [inline, virtual]
 

dtor.

Definition at line 112 of file ROIImage.h.


Member Function Documentation

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>
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::ROIImage< RemapImage, AlphaImage >::accessor(), vigra_ext::destImage(), vigra_ext::destImageRange(), vigra_ext::ROIImage< RemapImage, AlphaImage >::maskAccessor(), vigra_ext::srcImage(), and vigra_ext::srcImageRange().

template<class Image, class Mask>
vigra::Rect2D& vigra_ext::ROIImage< Image, Mask >::boundingBox  )  [inline]
 

Definition at line 238 of file ROIImage.h.

Referenced by vigra_ext::blend(), and vigra_ext::MultiLayerImage< Image, Mask >::boundingBox().

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>
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::blend(), vigra_ext::MultiLayerImage< Image, Mask >::getCut(), vigra_ext::reduceROIImages(), and HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch().

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>
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>
MaskConstAccessor vigra_ext::ROIImage< Image, Mask >::maskAccessor  )  const [inline]
 

Definition at line 233 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>
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 >::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 >::maskUpperLeft  )  const [inline]
 

Definition at line 201 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>
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]
 

Definition at line 248 of file ROIImage.h.

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.

Referenced by HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped().

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

Definition at line 147 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::blend(), vigra_ext::destImage(), vigra_ext::destImageRange(), vigra_ext::ROIImage< RemapImage, AlphaImage >::maskLowerRight(), vigra_ext::ROIImage< RemapImage, AlphaImage >::maskUpperLeft(), vigra_ext::srcImage(), and vigra_ext::srcImageRange().


Member Data Documentation

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

remapped image

Definition at line 273 of file ROIImage.h.

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

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

corresponding alpha channel

Definition at line 274 of file ROIImage.h.

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

bounding rectangle of the image

Definition at line 277 of file ROIImage.h.


The documentation for this class was generated from the following file:
Generated on Tue Sep 2 01:25:59 2014 for Hugintrunk by  doxygen 1.3.9.1