version 3.3

VRS::ImageBlend Class Reference

Blends an image into another image. More...

#include <vrs/image/imageblend.h>

Inheritance diagram for VRS::ImageBlend:

VRS::ImageManipulator VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 ImageBlend (Image *referenceImage, double blendFactor=0.5)
void setBlendFactor (double blendF)
double getBlendFactor () const
 Set/get the blend factor.
void setReferenceImage (Image *image)
ImagegetReferenceImage () const
 Set/get the other image.
virtual bool operatesInPlace () const
virtual Imagemanipulate (Image *source, Image *target)
 VRS_TYPEINFO (ImageBlend, ImageManipulator)


Detailed Description

Blends an image into another image.

Constructor & Destructor Documentation

VRS::ImageBlend::ImageBlend ( Image referenceImage,
double  blendFactor = 0.5 
)

For each pixel-component p, the blended value is computed as blendFactor*p + (1.0-blendFactor)*other->p. Both images must have the same width, height, and no of layers.


Member Function Documentation

void VRS::ImageBlend::setBlendFactor ( double  blendF  ) 

double VRS::ImageBlend::getBlendFactor (  )  const

Set/get the blend factor.

void VRS::ImageBlend::setReferenceImage ( Image image  ) 

Image* VRS::ImageBlend::getReferenceImage (  )  const

Set/get the other image.

virtual bool VRS::ImageBlend::operatesInPlace (  )  const [virtual]

Returns whether the image operation can be performed for a given image in place.

Reimplemented from VRS::ImageManipulator.

virtual Image* VRS::ImageBlend::manipulate ( Image source,
Image target 
) [virtual]

See `ImageManipulator'. Blends the source image and the reference image, and stores the result in the target image.

Implements VRS::ImageManipulator.

VRS::ImageBlend::VRS_TYPEINFO ( ImageBlend  ,
ImageManipulator   
)


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

Generated on Fri May 24 06:00:22 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact