SetResampleParams


The SetResampleParams function sets default parameters for resampling images. The resampling parameters are saved to the system Registry and re-loaded when you start Mira.

Syntax

bSuccess = SetResampleParams( ResampleParams )

where

    ResampleParams is a table of parameters that control resampling.

    bSuccess is an optional success flag. On success, this method returns true. Otherwise, false is returned.

  

Resampling parameters are used for determining to fractional array positions. This method updates the parameters used by functions and methods that involve resampling the pixel values to a new grid. If you want to change the resampling parameters for a function, call SetResampleParams before using the relevant function, such as Interp, Rotate and others. The parameters to be passed must be stored in a ResampleParams table.

Related Topics

CImage class

ResampleParams table