Description

Creates a new FFT data set whose size is a multiple or a fraction of the original.

Return Type

A McImage object.  

A new complex FFT data IMcImage.

Syntax

object.ScaleFFT (Ratio, [vFFTImage], [Flags])

The ScaleFFT Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McFFT.
RatioRequired. A Long value.

Scaling ratio.Positive number: scale up.Negative number: scale down.

vFFTImageOptional. A Variant value.

Optional input FFT data IMcImage.

FlagsOptional. A mcImageCreateFlags enumeration, as described in settings.

Image creation flags

Settings

The settings for Flags are:

ConstantValueDescription
 mcicfDefault0
 mcicfContiguous1

If set, frames are allocated contiguously, and you cannot add to the FrameCount at a later time.

 mcicfNoInit2

Default is to initialize to 0 (black), this flag suppresses initialization.

 mcicfNoAddToCollection4

If set, the image is created, but not added to the collection (see Notes).

 mcicfNotVisible8

If set, the image is created, possibly added to collection (see above), but not made visible.

 mcipfNoImportProperties8388608

Suppress ImportProperties for functions creating an image from another.

Remarks

Image scaling using sinusoidal interpolation can be achieved by first obtaining the Fourier transform of the image, padding or clipping the Fourier data, and inverse transforming the data back into an image. For example, a 256 x 256 FFT data set will be made into a 512 x 512 set by padding it with zeros all around. Performing an inverse Fourier transform on the new set will produce an image that is twice the size of the original image. The sinusoidal interpolation used in the oversampling is of higher quality than a simple linear interpolation.