图像处理在农业领域中的应用十分普遍,但要做到对图像实时处理的同时降低用户的使用成本是该领域的难题。该文以棉花图像处理系统为例,提出一种基于图像处理系统模块化设计方法,首先划分图像处理系统功能模块,基于Petri网模型构建顶层控制器;然后将Petri网模型图转换为VHDL语言文件,并在QuartusII环境中进行仿真验证;最后以底层模块中的图像分割模块为例,说明系统的并行性。这种基于Petri网的全局异步的设计方法,可以降低图像处理系统设计与调试的难度和对时序的要求。
Image processing systems have been widely used in agricultural applications, but it is hard to realize the real-time processing of image and make low cost that can be accepted by users, therefore, it is necessary to reduce the costs of design and production. A modular design method of cotton image processing system based on Petri nets was proposed. Firstly, the image processing system was divided into functional modules, the top-level controller was modeled based on Petri nets; then the graphical model was transferred to the VHDL and the VHDL program was simulated and synthesized in the QuartusⅡ software; Finally the image segmentation module was designed to introduce the parallel of the system. This design method of global asynchronous local synchronous (GALS) based on Petri nets can reduce the difficulty of design and debugging of image processing system, and decrease the timing requirement of the system.