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 . | |
int | CWInterp (uint32_t *Output, const uint32_t *Input, int InputWidth, int InputHeight, const int32_t *Psi, cwparams Param) |
Contour stencil windowed interpolation. | |
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. | |
int | DisplayContours (uint32_t *Output, int OutputWidth, int OutputHeight, uint32_t *Input, int InputWidth, int InputHeight, cwparams Param) |
Display the estimated contour orientations. |
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 851 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 1274 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 1395 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 323 of file cwinterp.c.