Image Interpolation with Contour Stencils
|
Contour stencil windowed interpolation. More...
#include "basic.h"
Go to the source code of this file.
Data Structures | |
struct | cwparams |
struct of interpolation parameters More... | |
Functions | |
int32_t * | PreCWInterp (cwparams Param) |
Precomputations before windowed interpolation CWInterp . More... | |
int | CWInterp (uint32_t *Output, const uint32_t *Input, int InputWidth, int InputHeight, const int32_t *Psi, cwparams Param) |
Contour stencil windowed interpolation. More... | |
int | CWInterpEx (uint32_t *Output, int OutputWidth, int OutputHeight, const uint32_t *Input, int InputWidth, int InputHeight, const int32_t *Psi, cwparams Param) |
Contour stencil windowed interpolation for arbitrary scale factors. More... | |
int | DisplayContours (uint32_t *Output, int OutputWidth, int OutputHeight, uint32_t *Input, int InputWidth, int InputHeight, cwparams Param) |
Display the estimated contour orientations. More... | |
Contour stencil windowed interpolation.
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 cwinterp.h.
int CWInterp | ( | uint32_t * | Output, |
const uint32_t * | Input, | ||
int | InputWidth, | ||
int | InputHeight, | ||
const int32_t * | Psi, | ||
cwparams | Param | ||
) |
Contour stencil windowed interpolation.
Output | pointer to memory for holding the interpolated image |
Input | the input image |
InputWidth,InputHeight | input image dimensions |
Psi | samples computed by PreCWInterp |
Param | cwparams struct of interpolation parameters |
Definition at line 847 of file cwinterp.c.
int CWInterpEx | ( | uint32_t * | Output, |
int | OutputWidth, | ||
int | OutputHeight, | ||
const uint32_t * | Input, | ||
int | InputWidth, | ||
int | InputHeight, | ||
const int32_t * | Psi, | ||
cwparams | Param | ||
) |
Contour stencil windowed interpolation for arbitrary scale factors.
Output | pointer to memory for holding the interpolated image |
OutputWidth,OutputHeight | output image dimensions |
Input | the input image |
InputWidth,InputHeight | input image dimensions |
Psi | samples computed by PreCWInterp |
Param | cwparams struct of interpolation parameters |
Definition at line 1270 of file cwinterp.c.
int DisplayContours | ( | uint32_t * | Output, |
int | OutputWidth, | ||
int | OutputHeight, | ||
uint32_t * | Input, | ||
int | InputWidth, | ||
int | InputHeight, | ||
cwparams | Param | ||
) |
Display the estimated contour orientations.
Definition at line 1391 of file cwinterp.c.
int32_t* PreCWInterp | ( | cwparams | Param | ) |
Precomputations before windowed interpolation CWInterp
.
Param | cwparams struct of interpolation parameters |
PreCWInterp
precomputes samples of the functions,
The routine allocates memory to store the samples and returns a pointer to this memory. It is the responsibility of the caller to call free
on this pointer when done to release the memory.
A non-null pointer indicates success. On failure, the returned pointer is null.
Definition at line 319 of file cwinterp.c.