摄像头测试代码
在main.c文件中img_processing();函数里pts_left和pts_right两个数组储存边线坐标
This commit is contained in:
15
app/gl_handle_img.h
Normal file
15
app/gl_handle_img.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef HANDLE_IMG
|
||||
#define HANDLE_IMG
|
||||
|
||||
|
||||
|
||||
void SearchStartPoint_Left(uint8 img_gray[], sint32* h_start, sint32* w_start, uint8 threshold);
|
||||
void GetLinesFilter(float32 pts_in[][2], sint32 pts_in_count, float32 pts_out[][2], sint32 kernelsize);
|
||||
void GetLinesResample(float32 pts_in[][2], sint32 num1, float32 pts_out[][2], sint32* num2, float32 dist);
|
||||
void local_angle_points(float pts_in[][2], int num, float angle_out[], int dist);
|
||||
void nms_angle(float angle_in[], int num, float angle_out[], int kernel);
|
||||
void GetMidLine_Left(float32 pts_left[][2], sint32 pts_left_count, float32 mid_left[][2], sint32 approx_num, float32 dist);
|
||||
void GetMidLine_Right(float32 pts_right[][2], sint32 pts_right_count, float32 mid_right[][2], sint32 approx_num, float32 dist);
|
||||
int is_curve(float32 angle[], int n, float32 threshold) ;
|
||||
|
||||
#endif /* COMMON_H_ */
|
||||
Reference in New Issue
Block a user