图像尺寸改变
元素测试完成,图像改为80,140
This commit is contained in:
@@ -12,12 +12,15 @@ const int32_t direction_frontright[4][2] ={{1, -1},{1, 1},{-1, 1},{-1, -1}};
|
||||
|
||||
void SearchLineAdaptive_Left(uint8_t img_gray[], int32_t block_size, int32_t down_value, int32_t h, int32_t w, int32_t pts[][2], int32_t* line_num)
|
||||
{
|
||||
int half = block_size / 2;
|
||||
int step = 0, dir = 0, turn = 0;
|
||||
const int32_t half = block_size / 2;
|
||||
int step = 0;
|
||||
int dir = 0;
|
||||
int turn = 0;
|
||||
printf("shuzhi: %d\r\n", half);
|
||||
while (step < *line_num && half < w && w < IMAGE_W - half -1 && half < h && h < IMAGE_H - half -1 && turn < 4) {
|
||||
int local_thres = 0;
|
||||
for (int dh = -half; dh <= half; dh++) {
|
||||
for (int dw = -half; dw <= half; dw++) {
|
||||
for (int dh = -1 * half; dh <= half; dh++) {
|
||||
for (int dw = -1 * half; dw <= half; dw++) {
|
||||
local_thres += GET_PIX_1C(img_gray, h + dh, w + dw);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user