Files
QDAC-firmware/app/gl_common.c
Glz ce31d900ee 摄像头测试代码
在main.c文件中img_processing();函数里pts_left和pts_right两个数组储存边线坐标
2023-12-17 16:11:35 +08:00

16 lines
330 B
C

#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;
}