DiscreteFourierTransformation example for C++ Builder
/* This example loads a bitmap and applies DFT function. */
void __fastcall TForm1::Button1Click(TObject *Sender)
{
/* Load the bitmap, keeping the bits per pixel of the file */
LEADImage1->Load("image1.cmp", 0, 1, 1 );
/*Allocate FT buffer*/
LEADImage1->InitFourierTransformationData();
/* Apply DFT*/
LEADImage1->DiscreteFourierTransformation ( 0, 0, LEADImage1->BitmapWidth / 4, LEADImage1->BitmapHeight / 2, DFT_DFT + DFT_GRAY + DFT_RANGE + DFT_INSIDE_X + DFT_OUTSIDE_Y );
/* Free FT buffer */
LEADImage1-> FreeFourierTransformationData( );
}