板上测试
更新于 2015.05.14
硬件要求
工程约束文件仅仅支持Zybo,同时摄像头使用了Ov7670,请自行准备。
软件要求
工程建立于Vivado 2014.4.
测试框架

测试框架
测试流程
- 下载F-I-L中所有的模块
- 打开Vivado
- 在控制台输入中Cd到你的项目路径,比如: cd B:/Complex_Mind/FPGA-Imaging-Library/PLv1.0/TestOnBoard/Geometry
- 在控制台中输入:source bulid.tcl
- 导出Hardware
- 运行SDK
- 在SDK中建立一个新的应用
- 将ForBuild/Main.c中的代码复制到你的Main.c中
- 更改配置并且运行
例子
点操作

点操作Board

原始图像和灰度图像,上侧为原始图像,下侧为灰度图像

阈值化,上侧为一般全局阈值化,阈值为150,下侧为等高线阈值化,阈值为130和170

对比度变换,上侧系数为1.8,下侧系数为0.3

亮度变换,上侧系数为50,下侧系数为-50

色彩反转
局部滤波器

局部滤波器Board

原始图像和灰度图像,上侧为原始图像,下侧为灰度图像

均值滤波器

排序滤波器,上侧为中值滤波器,中间为最大值滤波器,下侧为最小值滤波器

局部阈值化,上侧的前置滤波器为均值滤波器,下侧为中值滤波器

腐蚀膨胀,上侧为腐蚀,源为中值滤波后的局部阈值化图像,模板为000011010,下侧为膨胀,源为均值滤波后的局部阈值化图像,模板为000011011
几何变换

几何变换Board

原始图像和灰度图像,上侧为原始图像,下侧为灰度图像

裁剪,上边界为40,下边界为240,左边界为0,右边界为200

平移,上侧横向偏移100,纵向100,下侧横向偏移-100,纵向-100

镜像,上侧为横向,中间为纵向,下侧为全部

缩放,上侧横向比例为1.3,纵向为0.6,下侧横向为0.6,纵向为1.3

错切,上侧横向比例为0.5,纵向为0.5,下侧横向为-1.671,纵向为0.539

旋转,上侧角度为90度,下侧角度为225度