这是低通滤波的程式码...->开图->转灰阶->低通一次!
转灰阶ok! 但低通时就发生错误↓
一直出现scan line index out of range...
不知是否可指导一下哪儿有错= ="
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
const int RED = 2;
const int GREEN = 1;
const int BLUE = 0;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ScrollBar1Change(TObject *Sender)
{
;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Edit1Change(TObject *Sender)
{
;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if(OpenPictureDialog1->Execute())
{
..
访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容