58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
//---------------------------------------------------------------------------
|
|
|
|
#ifndef UFrmPrincipalH
|
|
#define UFrmPrincipalH
|
|
//---------------------------------------------------------------------------
|
|
#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>
|
|
//---------------------------------------------------------------------------
|
|
class TFrmPrincipal : public TForm
|
|
{
|
|
__published: // IDE-managed Components
|
|
TButton *btnCarregarImagem;
|
|
TButton *btnBinarizacao;
|
|
TOpenPictureDialog *pdgAbrirImagem;
|
|
TImage *imgOriginal;
|
|
TImage *imgAlteracao;
|
|
TPanel *Panel1;
|
|
TLabel *Label1;
|
|
TEdit *edtLimiar;
|
|
TLabel *Label2;
|
|
TEdit *edtTotalPixels;
|
|
TLabel *Label3;
|
|
TEdit *edtLargura;
|
|
TLabel *Label4;
|
|
TEdit *edtAltura;
|
|
TChart *grfOriginal;
|
|
TChart *grfModificado;
|
|
TBarSeries *Series2;
|
|
TButton *btnQuantizacao;
|
|
TBarSeries *Series1;
|
|
TLabel *Label5;
|
|
TEdit *edtCanal;
|
|
TLabel *Label6;
|
|
TEdit *edtPixelsProcessados;
|
|
void __fastcall EvCarregarImagemOnClick(TObject *Sender);
|
|
void __fastcall btnBinarizacaoClick(TObject *Sender);
|
|
void __fastcall gerarHistogramaOriginal();
|
|
void __fastcall gerarHistogramaAlterado();
|
|
void __fastcall _EvQuantizacaoOnClick(TObject *Sender);
|
|
private: // User declarations
|
|
String caminhoArquivo;
|
|
public: // User declarations
|
|
__fastcall TFrmPrincipal(TComponent* Owner);
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
extern PACKAGE TFrmPrincipal *FrmPrincipal;
|
|
//---------------------------------------------------------------------------
|
|
#endif
|