L_AllocFTArray

#include "l_bitmap.h"

L_LTIMGCOR_API L_INT L_AllocFTArray(pBitmap, ppFTArray, uStructSize)

pBITMAPHANDLE pBitmap;

/* pointer to the bitmap handle */

pFTARRAY *ppFTArray;

/* pointer to pointer to FTARRAY structure */

L_UINT uStructSize;

/* the size of the FTARRAY structure */

Allocates a FTARRAY structure large enough to hold Fourier Transform coefficients for pBitmap. The structures uWidth and uHeight values are the same as the bitmaps width and height.

Parameter

Description

pBitmap

Pointer to the bitmap handle that references the bitmap.

ppFTArray

Pointer to a pointer to a FTARRAY structure. The function will allocate a FTARRAY structure large enough to contain the Fourier transform coefficients for the bitmap. The address of this structure will be stored into *ppFTData. When the array is no longer needed, the user should free this structure by calling the L_FreeFTArray function.

uStructSize

The size of the structure. Should be sizeof(FTARRAY).

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this function.

The amount allocated depends on the width and height of the image indicated in the bitmap handle

This function is used only when you are dealing with Fourier Transform functions.

When you are finished, you should free the allocated array by calling the L_FreeFTArray function.

This function supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This function does not support 32-bit grayscale images. It returns the error code ERROR_GRAY32_UNSUPPORTED if a 32-bit grayscale image is passed to this function.

Required DLLs and Libraries

LTIMGCOR

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Windows 2000 / XP/Vista.

See Also

Functions:

L_AverageFilterBitmap, L_MedianFilterBitmap, L_AddBitmapNoise, L_IntensityDetectBitmap, L_SpatialFilterBitmap, L_BinaryFilterBitmap, L_MaxFilterBitmap, L_MinFilterBitmap, L_AddShadowBitmap, L_ChangeHueSatIntBitmap, L_ColorReplaceBitmap, L_ColorThresholdBitmap, L_DFTBitmap, L_DirectionEdgeStatisticalBitmap, L_FFTBitmap, L_FreeFTArray, L_FrqFilterBitmap, L_FrqFilterMaskBitmap, L_FTDisplayBitmap, L_GetBitmapStatisticsInfo, L_GetFeretsDiameter, L_GetObjectInfo, L_GetRgnContourPoints, L_GetRgnPerimeterLength, L_MathFunctionBitmap, L_RevEffectBitmap, L_SegmentBitmap, L_SubtractBackgroundBitmap, L_UserFilterBitmap, L_FragmentBitmap, L_HighPassFilterBitmap, L_UnsharpMaskBitmap

Topics:

Raster Image Functions: Fourier Transform

 

Removing Noise

Example

For an example, refer to L_DFTBitmap.