MISR Toolkit  1.5.1
Functions
MtkResampleNearestNeighbor.c File Reference
#include "MisrReProject.h"
#include "MisrError.h"
#include "MisrUtil.h"
#include <string.h>
#include <math.h>

Go to the source code of this file.

Functions

MTKt_status MtkResampleNearestNeighbor (MTKt_DataBuffer srcbuf, MTKt_DataBuffer linebuf, MTKt_DataBuffer samplebuf, MTKt_DataBuffer *resampbuf)
 Perform nearest neighbor resampling. More...
 

Function Documentation

◆ MtkResampleNearestNeighbor()

MTKt_status MtkResampleNearestNeighbor ( MTKt_DataBuffer  srcbuf,
MTKt_DataBuffer  linebuf,
MTKt_DataBuffer  samplebuf,
MTKt_DataBuffer resampbuf 
)

Perform nearest neighbor resampling.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we resample the srcbuf using nearest neighbor resampling based on linebuf and samplebuf. The result is resampbuf.
status = MtkResampleNearestNeighbor(srcbuf, linebuf, samplebuf, &resampbuf);
Note
The caller is responsible for using MtkDataBufferFree() to free the memory used by resampbuf.
Parameters
[in]srcbufSource data buffer
[in]linebufLine data buffer
[in]samplebufSample data buffer
[out]resampbufResampled data buffer

Definition at line 38 of file MtkResampleNearestNeighbor.c.


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