這是低通濾波的程式碼...->開圖->轉灰階->低通一次!
轉灰階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 可以看到全部內容