发布网友 发布时间:2024-10-23 03:51
共1个回答
热心网友 时间:2024-11-07 06:48
bool process(unsigned char **A, unsigned char **B )
{
int width = 128, height = 128, i = 0, j = 0;
unsigned char a = 120, minVal = 10, maxVal = 220;
for( ; i < height; i ++ )
for( ; j < width; j ++ )
{
B[i][j] = A[i][j] > a ? maxVal : minVal;
}
return true;
}
热心网友 时间:2024-11-07 06:45
bool process(unsigned char **A, unsigned char **B )
{
int width = 128, height = 128, i = 0, j = 0;
unsigned char a = 120, minVal = 10, maxVal = 220;
for( ; i < height; i ++ )
for( ; j < width; j ++ )
{
B[i][j] = A[i][j] > a ? maxVal : minVal;
}
return true;
}