Image Quality Assessment (IQA) 1.1.2
A fast, accurate, and reliable C library for measuring image quality.
Functions
source/decimate.c File Reference
#include "decimate.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

int _iqa_decimate (float *img, int w, int h, int factor, const struct _kernel *k, float *result, int *rw, int *rh)
 Downsamples (decimates) an image.

Function Documentation

int _iqa_decimate ( float *  img,
int  w,
int  h,
int  factor,
const struct _kernel k,
float *  result,
int *  rw,
int *  rh 
)

Downsamples (decimates) an image.

Parameters:
imgImage to modify
wImage width
hImage height
factorDecimation factor
kThe kernel to apply (e.g. low-pass filter). Can be 0.
resultBuffer to hold the resulting image (w/factor*h/factor). If 0, the result will be written to the original image buffer.
rwOptional. The width of the resulting image will be stored here.
rhOptional. The height of the resulting image will be stored here.
Returns:
0 on success.

Definition at line 37 of file decimate.c.

 All Data Structures Files Functions Variables Typedefs Defines


Copyright (c) 2011 by Tom Distler