>>92
なんでやねん!

int is_grass(int r, int g, int b){
return ((100<=r && r<=140) && (140<=g && g<=170) && (70<=b && b<=100));
}

void BMPtoGrassBin(
unsigned char dest[Y_SIZE][X_SIZE],
const unsigned char src[Y_SIZE][X_SIZE][3] )
{
int y, x;
for (y=0; y<(int)biHeight; y++)
for (x=0; x<(int)biWidth; x++) {
dest[y][x]=is_grass(src[y][x][0], src[y][x][1], src[y][x][2])?HIGH:LOW;
}
}