Unit1.h
资源名称:ORC.rar [点击查看]
上传用户:gdszzsp
上传日期:2022-04-20
资源大小:1026k
文件大小:3k
源码类别:
图片显示
开发平台:
C++ Builder
- //---------------------------------------------------------------------------
- #ifndef Unit1H
- #define Unit1H
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <Dialogs.hpp>
- #include <ExtCtrls.hpp>
- #include <ExtDlgs.hpp>
- #include <Menus.hpp>
- //---------------------------------------------------------------------------
- class TForm1 : public TForm
- {
- __published: // IDE-managed Components
- TMainMenu *MainMenu1;
- TMenuItem *open1;
- TMenuItem *Load1;
- TMenuItem *Save1;
- TMenuItem *N1;
- TMenuItem *Exit1;
- TMenuItem *fuction1;
- TMenuItem *Gray1;
- TImage *OriginImage;
- TOpenPictureDialog *OpenPictureDialog1;
- TSavePictureDialog *SavePictureDialog1;
- TImage *InputImage;
- TMenuItem *sSobel1;
- TMenuItem *MIDfilter1;
- TMenuItem *threshold1;
- TMenuItem *OTSU1;
- TEdit *Edit1;
- TMenuItem *N51;
- TLabel *Label1;
- TLabel *Label2;
- TLabel *Label3;
- TMenuItem *Clear1;
- TMenuItem *Position1;
- TMenuItem *Expansion1;
- TMenuItem *Erison1;
- TImage *number;
- TLabel *Label4;
- TEdit *Edit2;
- TButton *Button1;
- TMemo *Memo1;
- TLabel *Label5;
- TEdit *Edit3;
- TLabel *Label6;
- TBevel *Bevel2;
- TBevel *Bevel3;
- TMenuItem *Rotate1;
- TBevel *Bevel1;
- TButton *Button2;
- void __fastcall Load1Click(TObject *Sender);
- void __fastcall Save1Click(TObject *Sender);
- void __fastcall Exit1Click(TObject *Sender);
- void __fastcall sSobel1Click(TObject *Sender);
- void __fastcall MIDfilter1Click(TObject *Sender);
- void __fastcall Gray1Click(TObject *Sender);
- void __fastcall fuction1Click(TObject *Sender);
- void __fastcall OTSU1Click(TObject *Sender);
- void __fastcall N51Click(TObject *Sender);
- void __fastcall Clear1Click(TObject *Sender);
- void __fastcall Position1Click(TObject *Sender);
- void __fastcall Expansion1Click(TObject *Sender);
- void __fastcall Erison1Click(TObject *Sender);
- void __fastcall Button1Click(TObject *Sender);
- void __fastcall Rotate1Click(TObject *Sender);
- void __fastcall Button2Click(TObject *Sender);
- private: // User declarations
- public: // User declarations
- __fastcall TForm1(TComponent* Owner);
- int __fastcall OtsuAlgorithm(Graphics::TBitmap *pRefBitmap);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TForm1 *Form1;
- //---------------------------------------------------------------------------
- #endif