insert a watermark image onto an image More...
#include <lti_watermarkFilter.h>
Public Member Functions | |
LT_STATUS | initialize (LTIImageStage *srcImage, LTIImageStage *watermarkImage, LTIPosition position, lt_uint32 edgePadding) |
initializer | |
virtual lt_uint32 | getModifications (const LTIScene &scene) const |
get the modification bitfield for this image | |
Static Public Member Functions | |
static LTIWatermarkFilter * | create (void) |
Protected Member Functions | |
LTIWatermarkFilter (void) | |
virtual | ~LTIWatermarkFilter (void) |
LT_STATUS | decodeBegin (const LTIPixel &pixelProps, const LTIScene &fullScene) |
start strip-based read | |
LT_STATUS | decodeStrip (LTISceneBuffer &stripBuffer, const LTIScene &stripScene) |
read a strip from the image | |
LT_STATUS | decodeEnd (void) |
finish strip-based read |
Inserts a watermark image onto the current image stage.
Definition at line 29 of file lti_watermarkFilter.h.
LTIWatermarkFilter::LTIWatermarkFilter | ( | void | ) | [protected] |
virtual LTIWatermarkFilter::~LTIWatermarkFilter | ( | void | ) | [protected, virtual] |
static LTIWatermarkFilter* LTIWatermarkFilter::create | ( | void | ) | [static] |
LT_STATUS LTIWatermarkFilter::decodeBegin | ( | const LTIPixel & | pixelProps, | |
const LTIScene & | fullScene | |||
) | [protected, virtual] |
This function is called by readBegin() to start the actual class-specific work for decoding a scene.
Derived classes must implement this function.
This function should never be called directly.
pixelProps | the band selection | |
fullScene | the full scene to be read |
Reimplemented from LTIImageFilter.
LT_STATUS LTIWatermarkFilter::decodeEnd | ( | void | ) | [protected, virtual] |
This function is called by readEnd() to complete the actual class-specific work for decoding a scene.
Derived classes must implement this function.
This function should never be called directly.
Reimplemented from LTIImageFilter.
LT_STATUS LTIWatermarkFilter::decodeStrip | ( | LTISceneBuffer & | stripBuffer, | |
const LTIScene & | stripScene | |||
) | [protected, virtual] |
This function is called by readStrip() to implement the actual class-specific work for decoding a strip of the scene.
Derived classes must implement this function.
This function should never be called directly.
stripBuffer | the buffer to read the pixels into | |
stripScene | the scene for this strip being decoded |
Reimplemented from LTIImageFilter.
This function returns a bitfield describing what kinds of modifications have been made to the image during and since its initial encoding.
scene | the area pertaining to this request |
Reimplemented from LTIImageFilter.
LT_STATUS LTIWatermarkFilter::initialize | ( | LTIImageStage * | srcImage, | |
LTIImageStage * | watermarkImage, | |||
LTIPosition | position, | |||
lt_uint32 | edgePadding | |||
) |
Creates an image stage with the watermarkImage overlaid over the srcImage at the position specified.
The edgePadding argument is used to specify the distance (in pixels) between the watermark and the edge of the base image specified by the position argument. (This argument is ignored if LTI_POSITION_CENTER is used.)
srcImage | the base image | |
watermarkImage | the watermark to be overlaid | |
position | where to insert the watermark | |
edgePadding | distance (in pixels) between the watermark and the base image |
LizardTech |