Image Interpolation with Geometric Contour Stencils
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Functions
sinterpcli.c File Reference

Contour stencil interpolation command line program. More...

#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "imageio.h"
#include "sinterp.h"
Include dependency graph for sinterpcli.c:

Go to the source code of this file.

Data Structures

struct  programparams
 struct of program parameters More...
 

Functions

double LinearPatch (ATTRIBUTE_UNUSED double x, double y, ATTRIBUTE_UNUSED const void *Param)
 Distance function for a line-shaped stencil. More...
 
int DrawLineStencil (pen *Pen, ATTRIBUTE_UNUSED const void *Param)
 Drawing commands to draw a line-shaped stencil. More...
 
double Corner (double x, double y, ATTRIBUTE_UNUSED const void *Param)
 Distance function for a corner stencil. More...
 
int DrawCornerStencil (pen *Pen, ATTRIBUTE_UNUSED const void *Param)
 Drawing commands to draw a corner stencil. More...
 
double TJunction (double x, double y, ATTRIBUTE_UNUSED const void *Param)
 Distance function for a T-junction stencil. More...
 
double CurveDist (double x, double y, const void *Param)
 Distance function for a T-junction stencil. More...
 
int DrawCurveStencil (pen *Pen, const void *Param)
 Drawing commands to draw a parabola stencil. More...
 
int Interpolate (programparams Param, const sset *StencilSet)
 Perform contour stencil image interpolation. More...
 
int ShowContours (programparams Param, const sset *StencilSet)
 Show contours estimated by contour stencils. More...
 
int main (int argc, char *argv[])
 

Detailed Description

Contour stencil interpolation command line program.

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

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 sinterpcli.c.

Function Documentation

double Corner ( double  x,
double  y,
ATTRIBUTE_UNUSED const void *  Param 
)

Distance function for a corner stencil.

Definition at line 140 of file sinterpcli.c.

double CurveDist ( double  x,
double  y,
const void *  Param 
)

Distance function for a T-junction stencil.

Definition at line 161 of file sinterpcli.c.

int DrawCornerStencil ( pen Pen,
ATTRIBUTE_UNUSED const void *  Param 
)

Drawing commands to draw a corner stencil.

Definition at line 146 of file sinterpcli.c.

int DrawCurveStencil ( pen Pen,
const void *  Param 
)

Drawing commands to draw a parabola stencil.

Definition at line 186 of file sinterpcli.c.

int DrawLineStencil ( pen Pen,
ATTRIBUTE_UNUSED const void *  Param 
)

Drawing commands to draw a line-shaped stencil.

Definition at line 133 of file sinterpcli.c.

int Interpolate ( programparams  Param,
const sset StencilSet 
)

Perform contour stencil image interpolation.

Parameters
Paramprogram parameters
StencilSetthe stencil set $\Sigma$
Returns
1 on success, 0 on failure

Definition at line 201 of file sinterpcli.c.

double LinearPatch ( ATTRIBUTE_UNUSED double  x,
double  y,
ATTRIBUTE_UNUSED const void *  Param 
)

Distance function for a line-shaped stencil.

Definition at line 126 of file sinterpcli.c.

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

Definition at line 422 of file sinterpcli.c.

int ShowContours ( programparams  Param,
const sset StencilSet 
)

Show contours estimated by contour stencils.

Parameters
Paramprogram parameters
StencilSetthe stencil set $\Sigma$
Returns
1 on success, 0 on failure

Definition at line 359 of file sinterpcli.c.

double TJunction ( double  x,
double  y,
ATTRIBUTE_UNUSED const void *  Param 
)

Distance function for a T-junction stencil.

Definition at line 153 of file sinterpcli.c.