mirror of
https://github.com/Laex/Delphi-OpenCV.git
synced 2024-11-16 08:15:52 +01:00
81de80c682
[*] Modified TocvCamera [*] Modified TocvView [+] Added TocvImageOperation (TovcImageOperationSmooth - not working properly) Signed-off-by: Laex <laex@bk.ru>
51 lines
1.0 KiB
ObjectPascal
51 lines
1.0 KiB
ObjectPascal
unit uMainForm;
|
|
|
|
interface
|
|
|
|
uses
|
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uOCVTypes, uOCVImageOperation,
|
|
uOCVCamera, uOCVView, Vcl.StdCtrls;
|
|
|
|
type
|
|
TMainForm = class(TForm)
|
|
lbl1: TLabel;
|
|
cbb1: TComboBox;
|
|
chk1: TCheckBox;
|
|
ocvw1: TocvView;
|
|
ocvcmr1: TocvCamera;
|
|
ocvmgprtn1: TocvImageOperation;
|
|
procedure FormCreate(Sender: TObject);
|
|
procedure cbb1Change(Sender: TObject);
|
|
procedure chk1Click(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
MainForm: TMainForm;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure TMainForm.cbb1Change(Sender: TObject);
|
|
begin
|
|
ocvmgprtn1.ImageOperation := TcvImageOperation(cbb1.ItemIndex);
|
|
end;
|
|
|
|
procedure TMainForm.chk1Click(Sender: TObject);
|
|
begin
|
|
ocvcmr1.Enabled := chk1.Checked;
|
|
end;
|
|
|
|
procedure TMainForm.FormCreate(Sender: TObject);
|
|
begin
|
|
cbb1.ItemIndex := Integer(ocvmgprtn1.ImageOperation);
|
|
chk1.Checked := ocvcmr1.Enabled;
|
|
end;
|
|
|
|
end.
|