DLImageResize.h

Go to the documentation of this file.
00001 #ifndef _DLIMAGERESIZE_H_
00002 #define _DLIMAGERESIZE_H_
00003 
00004 #include "DLImage.h"
00005 #include "DLConst.h"
00006 #include "DLTypes.h"
00007 
00008 #include <math.h>
00009 #include <stdio.h>
00010 #include <malloc.h>
00011 
00012 using namespace std;
00013 
00024 class DLImageResize
00025 {
00026 public:
00027 
00031         DLImageResize() {};
00032 
00036         virtual ~DLImageResize() {};
00037 
00045         DLImage dlCreateResizedImage(const DLImage & srcImage, double rescale_ratio, double fwidth=3.0);
00046 
00047 private:
00048 
00057         void dlGetImageColumn(DL_BYTE *column, DL_BYTE *imageData, int x, int imageWidth, int imageHeight);
00058 
00067         void dlGetImageRow(DL_BYTE *row, DL_BYTE *imageData, int y, int imageWidth, int imageHeight);
00068 
00069         
00070 };//end class
00071 
00072 #endif //_DLIMAGERESIZE_H_

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