1
#ifndef IMAGESOURCE_DOWNSAMPLE_H
2
#define IMAGESOURCE_DOWNSAMPLE_H
4
#include "imagesource.h"
6
class ImageSource_Downsample : public ImageSource
9
ImageSource_Downsample(ImageSource *source,int xres,int yres);
10
~ImageSource_Downsample();
11
ISDataType *GetRow(int row);
13
bool CalcCoefficients(int srcsize,int dstsize);
14
void DownsampleRow(ISDataType *src,int srcsize,int *dst,int dstsize,int rowfactor);
16
float newxres,newyres;