Реферат: Алгоритмы выделения контуров
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
cpp файл:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "MainUnit.h"
#include "GraphicUnit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
AlgorithmBeatle(FromImage->Picture->Bitmap,
ToImage->Picture->Bitmap);
ToImage->Visible = false;
ToImage->Visible = true;
}
//---------------------------------------------------------------------------
Листинг 4. Модуль выделения контуров.