摄像头测试代码
在main.c文件中img_processing();函数里pts_left和pts_right两个数组储存边线坐标
This commit is contained in:
15
app/gl_common.c
Normal file
15
app/gl_common.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "zf_common_headfile.h"
|
||||
#include "gl_headfile.h"
|
||||
|
||||
|
||||
sint32 limit(sint32 x, sint32 low, sint32 up)
|
||||
{
|
||||
return x > up ? up : x < low ? low : x;
|
||||
}
|
||||
int clip(int x, int low, int up) {
|
||||
return x > up ? up : x < low ? low : x;
|
||||
}
|
||||
|
||||
float fclip(float x, float low, float up) {
|
||||
return x > up ? up : x < low ? low : x;
|
||||
}
|
||||
Reference in New Issue
Block a user