List of Routines By Functionality | MISR Toolkit: Main Page
-Abstract
MTK_RESAMPLE_CUBICCONVOLUTION Resample source data at the given coordinates using interpolation by cubic convolution.
-Copyright
Copyright (2013), California Institute of Technology.
U.S. Government sponsorship acknowledged.
-I/O
Given:
source Source data. (float)
source_mask Valid mask for source data. (uint8)
line Line coordinates. (float)
sample Sample coordinates. (float)
a Convolution parameter (-1.0 <= A <= 0.0)
the call:
status = MTK_RESAMPLE_CUBICCONVOLUTION( source, source_mask, line, sample, a, resampled, resampled_mask )
returns:
status 0 on success; otherwise failure
resampled Resampled data
resampled_mask Valid mask for resampled data
-Examples
;;
;; Set up input parameters
;;
source = RANDOMU(seed, 40, 60)
source_mask = byte(REPLICATE(1,40,60))
line = RANDOMU(seed, 40, 60) * 400
sample = RANDOMU(seed, 40, 60) * 600
a = -0.5
;;
;; The call
;;
status = MTK_RESAMPLE_CUBICCONVOLUTION( source, source_mask, line, sample, a, resampled, resampled_mask )
;;
;; Output...
;;
print, '================================================='
a = WHERE(resampled_mask EQ 1, mask_count)
print, mask_count
help, resampled, resampled_mask
IDL outputs:
=================================================
22
RESAMPLED FLOAT = Array[40, 60]
RESAMPLED_MASK BYTE = Array[40, 60]
-Particulars
None.
-Required Reading
For important details concerning this module's function, please refer to
the MTK routine MtkResampleCubicConvolution.c.
-Version
-IDL-MTK Version 1.2.4