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

Go to the source code of this file.

Functions

MTKt_status MtkDownsample (const MTKt_DataBuffer *Source, const MTKt_DataBuffer *Source_mask, int Size_factor, MTKt_DataBuffer *Result, MTKt_DataBuffer *Result_mask)
 Downsample data by averaging pixels. More...
 

Function Documentation

◆ MtkDownsample()

MTKt_status MtkDownsample ( const MTKt_DataBuffer Source,
const MTKt_DataBuffer Source_mask,
int  Size_factor,
MTKt_DataBuffer Result,
MTKt_DataBuffer Result_mask 
)

Downsample data by averaging pixels.

Returns
MTK_SUCCESS if successful.
Example:
In this example we downsample source with source_mask by size_factor. The result is stored in result with result_mask.
status = MtkDownsample(&source, &source_mask, size_factor, &result, &result_mask);
Note
Parameters
[in]SourceSource data. (float)
[in]Source_maskValid mask for source data. (uint8)
[in]Size_factorNumber of pixels to aggregate along each dimension.
[out]ResultDownsampled result. (float)
[out]Result_maskValid mask for result. (uint8)

Definition at line 36 of file MtkDownsample.c.


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