| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/image/imageblend.h>

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) |
| Image * | getReferenceImage () const |
| Set/get the other image. | |
| virtual bool | operatesInPlace () const |
| virtual Image * | manipulate (Image *source, Image *target) |
| VRS_TYPEINFO (ImageBlend, ImageManipulator) | |
| 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.
| 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.
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 | ||||
| ) |