Linear Methods for Image Interpolation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Enumerations | Functions | Variables
imcoarsen.c File Reference

Image coarsening utility program. More...

#include <math.h>
#include <string.h>
#include <ctype.h>
#include "imageio.h"
Include dependency graph for imcoarsen.c:

Go to the source code of this file.

Data Structures

struct  image
 struct representing an image More...
 
struct  programparams
 struct of program parameters More...
 

Macros

#define VERBOSE   0
 
#define NUMSTDS   4
 Approximate Gaussian with this number of standard deviations. More...
 

Enumerations

enum  boundaryhandling {
  BOUNDARY_CONSTANT = 0, BOUNDARY_HSYMMETRIC = 1, BOUNDARY_WSYMMETRIC = 2, BOUNDARY_PERIODIC = 3,
  BOUNDARY_CONSTANT = 0, BOUNDARY_HSYMMETRIC = 1, BOUNDARY_WSYMMETRIC = 2
}
 

Functions

int ParseParams (programparams *Param, int argc, char *argv[])
 
int Coarsen (image v, image u, programparams Param)
 
void PrintHelpMessage ()
 Print program usage help message. More...
 
int main (int argc, char *argv[])
 
float Sqr (float x)
 

Variables

int(* ExtensionMethod [4])(int, int)
 

Detailed Description

Image coarsening utility program.

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.gmail.nosp@m..com

This file implements the imcoarsen program, a command line tool for coarsening an image by Gaussain smoothing followed by downsampling. See the routine PrintHelpMessage for usage details.

Copyright (c) 2010-2011, Pascal Getreuer All rights reserved.

This program is free software: you can use, modify and/or redistribute it under the terms of the simplified BSD License. You should have received a copy of this license along this program. If not, see http://www.opensource.org/licenses/bsd-license.html.

Definition in file imcoarsen.c.

Macro Definition Documentation

#define NUMSTDS   4

Approximate Gaussian with this number of standard deviations.

Definition at line 29 of file imcoarsen.c.

#define VERBOSE   0

Definition at line 26 of file imcoarsen.c.

Enumeration Type Documentation

Enumerator
BOUNDARY_CONSTANT 
BOUNDARY_HSYMMETRIC 
BOUNDARY_WSYMMETRIC 
BOUNDARY_PERIODIC 
BOUNDARY_CONSTANT 
BOUNDARY_HSYMMETRIC 
BOUNDARY_WSYMMETRIC 

Definition at line 43 of file imcoarsen.c.

Function Documentation

int Coarsen ( image  v,
image  u,
programparams  Param 
)

Definition at line 240 of file imcoarsen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 100 of file imcoarsen.c.

Here is the call graph for this function:

static int ParseParams ( programparams Param,
int  argc,
char *  argv[] 
)

Definition at line 376 of file imcoarsen.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void PrintHelpMessage ( )

Print program usage help message.

Definition at line 75 of file imcoarsen.c.

Here is the caller graph for this function:

float Sqr ( float  x)

Definition at line 154 of file imcoarsen.c.

Here is the caller graph for this function:

Variable Documentation

int(* ExtensionMethod[4])(int, int)
Initial value:
=
{ConstExtension, HSymExtension, WSymExtension, PerExtension}

Definition at line 236 of file imcoarsen.c.