//--------------------------------------------------------------------------- #ifndef PolaczoneH #define PolaczoneH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TImage *Image1; TImage *Image2; TOpenDialog *OpenDialog1; TSaveDialog *SaveDialog1; TButton *Wczytaj; TButton *PoliczFFT; TButton *Zamknij; TLabel *Label1; TEdit *Edit1; TLabel *Label2; TStatusBar *StatusBar1; TButton *Metoda1; TButton *Metoda2; TEdit *Edit2; TMemo *Memo1; void __fastcall WczytajClick(TObject *Sender); void __fastcall ZamknijClick(TObject *Sender); void __fastcall PoliczFFTClick(TObject *Sender); void __fastcall Metoda1Click(TObject *Sender); void __fastcall Metoda2Click(TObject *Sender); private: // User declarations public: // User declarations __fastcall TForm1(TComponent* Owner); matrix* __fastcall MatrixFromDib(Graphics::TBitmap *bmp); void __fastcall Fft2(double data[], int nx, int ny, int isign); void __fastcall FillDibWithMatrix(Graphics::TBitmap* Dib,int DispMode,double gain,matrix* M); HPALETTE __fastcall GrayPalette(); void __fastcall SortMatrix(matrix* Matrix); matrix* __fastcall PowerSpectrum(matrix* Matrix1); double __fastcall Poziomica (double s, double data[], int mx, int my); double __fastcall ZnajdzBeta1 (matrix* Matrix, int mx, int my); double __fastcall ZnajdzBeta2 (matrix* Matrix, int mx, int my); double __fastcall Maksimum (matrix* Matrix2); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif