DLImageResize Class Reference

The DLImageResize class computes a rescaled representation of an input image based on the specified factor and return a crisp rescaled image in grayscale format using the Lanczos filter. More...

#include <DLImageResize.h>

List of all members.

Public Member Functions

 DLImageResize ()
virtual ~DLImageResize ()
DLImage dlCreateResizedImage (const DLImage &srcImage, double rescale_ratio, double fwidth=3.0)


Detailed Description

The DLImageResize class computes a rescaled representation of an input image based on the specified factor and return a crisp rescaled image in grayscale format using the Lanczos filter.

The algorithm works best for native grayscale images since it makes use of grayscale information. Binary and color images are converted to grayscale images first before processing. It well preserves fine details on the image, especially on edges and contours.

Definition at line 24 of file DLImageResize.h.


Constructor & Destructor Documentation

DLImageResize::DLImageResize (  )  [inline]

Default DLImageResize Constructor

Definition at line 31 of file DLImageResize.h.

virtual DLImageResize::~DLImageResize (  )  [inline, virtual]

Default DLImageResize Destructor

Definition at line 36 of file DLImageResize.h.


Member Function Documentation

DLImage DLImageResize::dlCreateResizedImage ( const DLImage &  srcImage,
double  rescale_ratio,
double  fwidth = 3.0 
)

Image rescaling function that creates a crisp resized grayscale image using Lanczos filter of given support size

Parameters:
srcImage input DLImage
rescale_ratio rescale factor (should be larger than 1 if you want to shrink an image) in double
fwidth filter width (the default support size is choosen as 3) in double
Returns:
the rescale image as DLImage


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

DLImageResize Library is an add-on module of DOCLIB. DOCLIB is being developed under contract by a collaboration between:

The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007