請問二值化之後~如何顯示黑白點數... |
答題得分者是:istillloving
|
luandrew930
一般會員 發表:5 回覆:3 積分:1 註冊:2009-06-11 發送簡訊給我 |
[code cpp] void __fastcall TForm1::Button2Click(TObject *Sender) { int x,y,nB=0,nW=1; for(y=1;y<=Image1->Height;y ) { for(x=1;x<=Image1->Picture->Width;x ) { TCColor c=Image1->Canvas->Pixels[x][y]; if((int)c.Green < 128) { Image1->Canvas->Pixels[x][y]=TCColor(0, 0, 0).Color; nB ; 12-15行有無錯誤? LabeledEdit_Black->Text = IntToStr(nB); nW ; LabeledEdit_White->Text = IntToStr(nW); } else Image1->Canvas->Pixels[x][y]=TCColor(255, 255, 255).Color; } } } [/code] 請問彩色圖像二值化之後 怎麼顯示黑點數、黑點中心位置 相反顯示白點數、白點中心位置 如何用BCB寫? 要拉什麼元件? 不好意思...我是超級新手 = =" 請大家多見諒 編輯記錄
luandrew930 重新編輯於 2009-06-15 16:41:28, 註解 無‧
luandrew930 重新編輯於 2009-06-15 21:36:04, 註解 無‧ luandrew930 重新編輯於 2009-06-15 21:36:52, 註解 無‧ |
鳳綾
一般會員 發表:0 回覆:1 積分:0 註冊:2009-06-18 發送簡訊給我 |
|
istillloving
高階會員 發表:33 回覆:182 積分:183 註冊:2008-10-09 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |