[問題] 執行 出現錯誤視窗
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
DEV ++
問題(Question):
如標題
程式碼(Code):(請善用置底文網頁, 記得排版)
for(j=0;j<height;j++)
{
for(i=0;i<width;i++)
{
double rr=R[i][j]/(R[i][j]+G[i][j]+B[i][j]);
double gg=G[i][j]/(R[i][j]+G[i][j]+B[i][j]);
double W=((rr-0.33)*(rr-0.33))+((gg-0.33)*(gg-0.33));
double F1=(-0.13767*rr*rr)+(1.0743*rr)+0.1452;
double F2=(-0.776*rr*rr)+(0.561*rr)+0.1766;
if(gg<F1 && gg>F2 && W>-0.0004)
{
x[i][j]=255;
}
else
{
x[i][j]=0;
}
}
}
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.125.35.194
推
09/09 17:20, , 1F
09/09 17:20, 1F
→
09/09 17:23, , 2F
09/09 17:23, 2F
→
09/09 17:51, , 3F
09/09 17:51, 3F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章