MISR Toolkit  1.5.1
Functions
MtkUpsampleMask.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 MtkUpsampleMask (const MTKt_DataBuffer *Source_mask, int Size_factor, MTKt_DataBuffer *Result_mask)
 Upsample a mask by nearest neighbor sampling. More...
 

Function Documentation

◆ MtkUpsampleMask()

MTKt_status MtkUpsampleMask ( const MTKt_DataBuffer Source_mask,
int  Size_factor,
MTKt_DataBuffer Result_mask 
)

Upsample a mask by nearest neighbor sampling.

Returns
MTK_SUCCESS if successful.
Example:
In this example we upsample source_mask by a factor of size_factor. The output is result_mask.
status = MtkUpsampleMask(&source_mask, size_factor, &result_mask);
Note
Parameters
[in]Source_maskSource mask. (uint8)
[in]Size_factorNumber of pixels to expand along each dimension.
[out]Result_maskUpsampled result. (uint8)

Definition at line 36 of file MtkUpsampleMask.c.


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