Unit1.~h
上传用户:gdszzsp
上传日期:2022-04-20
资源大小:1026k
文件大小:3k
源码类别:

图片显示

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <Dialogs.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <ExtDlgs.hpp>
  12. #include <Menus.hpp>
  13. //---------------------------------------------------------------------------
  14. class TForm1 : public TForm
  15. {
  16. __published: // IDE-managed Components
  17.         TMainMenu *MainMenu1;
  18.         TMenuItem *open1;
  19.         TMenuItem *Load1;
  20.         TMenuItem *Save1;
  21.         TMenuItem *N1;
  22.         TMenuItem *Exit1;
  23.         TMenuItem *fuction1;
  24.         TMenuItem *Gray1;
  25.         TImage *OriginImage;
  26.         TOpenPictureDialog *OpenPictureDialog1;
  27.         TSavePictureDialog *SavePictureDialog1;
  28.         TImage *InputImage;
  29.         TMenuItem *sSobel1;
  30.         TMenuItem *MIDfilter1;
  31.         TMenuItem *threshold1;
  32.         TMenuItem *OTSU1;
  33.         TEdit *Edit1;
  34.         TMenuItem *N51;
  35.         TLabel *Label1;
  36.         TLabel *Label2;
  37.         TLabel *Label3;
  38.         TMenuItem *Clear1;
  39.         TMenuItem *Position1;
  40.         TMenuItem *Expansion1;
  41.         TMenuItem *Erison1;
  42.         TImage *number;
  43.         TLabel *Label4;
  44.         TEdit *Edit2;
  45.         TButton *Button1;
  46.         TMemo *Memo1;
  47.         TLabel *Label5;
  48.         TEdit *Edit3;
  49.         TLabel *Label6;
  50.         TBevel *Bevel2;
  51.         TBevel *Bevel3;
  52.         TMenuItem *Rotate1;
  53.         TBevel *Bevel1;
  54.         TButton *Button2;
  55.         void __fastcall Load1Click(TObject *Sender);
  56.         void __fastcall Save1Click(TObject *Sender);
  57.         void __fastcall Exit1Click(TObject *Sender);
  58.         void __fastcall sSobel1Click(TObject *Sender);
  59.         void __fastcall MIDfilter1Click(TObject *Sender);
  60.         void __fastcall Gray1Click(TObject *Sender);
  61.         void __fastcall fuction1Click(TObject *Sender);
  62.         void __fastcall OTSU1Click(TObject *Sender);
  63.         void __fastcall N51Click(TObject *Sender);
  64.         void __fastcall Clear1Click(TObject *Sender);
  65.         void __fastcall Position1Click(TObject *Sender);
  66.         void __fastcall Expansion1Click(TObject *Sender);
  67.         void __fastcall Erison1Click(TObject *Sender);
  68.         void __fastcall Button1Click(TObject *Sender);
  69.         void __fastcall Rotate1Click(TObject *Sender);
  70.         void __fastcall Button2Click(TObject *Sender);
  71. private: // User declarations
  72. public: // User declarations
  73.         __fastcall TForm1(TComponent* Owner);
  74.           int __fastcall OtsuAlgorithm(Graphics::TBitmap *pRefBitmap);
  75. };
  76. //---------------------------------------------------------------------------
  77. extern PACKAGE TForm1 *Form1;
  78. //---------------------------------------------------------------------------
  79. #endif