-
Notifications
You must be signed in to change notification settings - Fork 0
/
UFrmAlgoritmos.h
86 lines (85 loc) · 2.73 KB
/
UFrmAlgoritmos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//---------------------------------------------------------------------------
#ifndef UFrmAlgoritmosH
#define UFrmAlgoritmosH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Dialogs.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.ExtDlgs.hpp>
#include <VCLTee.Chart.hpp>
#include <VCLTee.Series.hpp>
#include <VCLTee.TeEngine.hpp>
#include <VCLTee.TeeProcs.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.ToolWin.hpp>
//---------------------------------------------------------------------------
class TFrmAlgoritmos : public TForm
{
__published: // IDE-managed Components
TOpenPictureDialog *pdgAbrirImagem;
TChart *grfOriginal;
TChart *grfModificado;
TBarSeries *Series2;
TBarSeries *Series1;
TPanel *pnlImgOriginal;
TImage *imgOriginal;
TPanel *pnlImgModificado;
TImage *imgAlteracao;
TPanel *pnlControles;
TButton *btnCarregarImagem;
TPanel *pnlSegmentacao;
TPanel *pnlInfo;
TLabel *lblAltura;
TEdit *edtAltura;
TEdit *edtLargura;
TLabel *lblLargura;
TLabel *lblTotalPixels;
TEdit *edtTotalPixels;
TEdit *edtPixelsProcessados;
TLabel *lblPixelsProcessados;
TLabel *lblTituloSegmentacao;
TLabel *lblLimiar;
TEdit *edtLimiar;
TButton *btnBinarizacao;
TLabel *lblCanais;
TEdit *edtCanal;
TButton *btnQuantizacao;
TButton *btnEqualizacao;
TPanel *pnlPassaBaixa;
TLabel *lblTituloPassaBaixa;
TButton *btnMedia;
TButton *btnMediana;
TButton *btnModa;
TLabel *lblTituloEstatisticas;
TPanel *pnlPassaAlta;
TLabel *lblTituloPassaAlta;
TButton *btnSobel;
TButton *btnRoberts;
TButton *btnLaplaciano;
TButton *btnPrewittOnClick;
void __fastcall EvCarregarImagemOnClick(TObject *Sender);
void __fastcall EvBinarizacaoClick(TObject *Sender);
void __fastcall gerarHistogramaOriginal();
void __fastcall gerarHistogramaAlterado();
void __fastcall EvQuantizacaoOnClick(TObject *Sender);
void __fastcall EvEqualizacaoOnClick(TObject *Sender);
void __fastcall EvMediaOnClick(TObject *Sender);
void __fastcall EvMedianaOnClick(TObject *Sender);
void __fastcall EvModaOnClick(TObject *Sender);
void __fastcall EvSobelOnClick(TObject *Sender);
void __fastcall EvRobertsOnClick(TObject *Sender);
void __fastcall EvLaplacianoOnClick(TObject *Sender);
void __fastcall EvPrewittOnClick(TObject *Sender);
void __fastcall EvOnClose(TObject *Sender, TCloseAction &Action);
private: // User declarations
String caminhoArquivo;
public: // User declarations
__fastcall TFrmAlgoritmos(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmAlgoritmos *FrmAlgoritmos;
//---------------------------------------------------------------------------
#endif