MISR Toolkit  1.5.1
Functions
MtkResampleCubicConvolution.c File Reference
#include "MisrReProject.h"
#include "MisrUtil.h"
#include <stdlib.h>
#include <math.h>

Go to the source code of this file.

Functions

float kernel (float d, float a)
 
MTKt_status MtkResampleCubicConvolution (const MTKt_DataBuffer *Source, const MTKt_DataBuffer *Source_mask, const MTKt_DataBuffer *Line, const MTKt_DataBuffer *Sample, float A, MTKt_DataBuffer *Resampled, MTKt_DataBuffer *Resampled_mask)
 Resample source data at the given coordinates using interpolation by cubic convolution. More...
 

Function Documentation

◆ kernel()

float kernel ( float  d,
float  a 
)

Definition at line 22 of file MtkResampleCubicConvolution.c.

◆ MtkResampleCubicConvolution()

MTKt_status MtkResampleCubicConvolution ( const MTKt_DataBuffer Source,
const MTKt_DataBuffer Source_mask,
const MTKt_DataBuffer Line,
const MTKt_DataBuffer Sample,
float  A,
MTKt_DataBuffer Resampled,
MTKt_DataBuffer Resampled_mask 
)

Resample source data at the given coordinates using interpolation by cubic convolution.

Convolution kernel used in this module is described in [1]

Returns
MTK_SUCCESS if successful.
Example:
In this example we resample source with source_mask and coordinates in line and sample using cubic convolution. Resampled output is in resampled and resampled_mask.
status = MtkResampleCubicConvolution(&source, &source_mask, &line, &sample, a, &resampled, &resampled_mask);
Note

References:

[1] Keys, "Cubic Convolution Interpolation for Digital Image Processing", IEEE Transactions on Acoustics, Speech, and Signal Processing, Vol. ASSP-29, NO. 6, December 1981.

Parameters
[in]SourceSource data. (float)
[in]Source_maskValid mask for source data. (uint8)
[in]LineLine coordinates. (float)
[in]SampleSample coordinates. (float)
[in]AConvolution parameter (-1.0 <= A <= 0.0)
[out]ResampledResampled data. (float)
[out]Resampled_maskValid mask for resampled data

Definition at line 51 of file MtkResampleCubicConvolution.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53