检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《中国图象图形学报》2016年第3期297-302,共6页Journal of Image and Graphics
基 金:国家自然科学基金项目(61302191);浙江省教育厅科研项目(Y201224542)~~
摘 要:目的在调试C/C++图像处理程序时,如何以可视化的形式观察被调试程序中的图像变量,对于调试过程尤为关键。目前尚未有跨多操作系统平台的图像可视化调试器可供使用,该款开源跨平台的图像可视化调试器的设计与实现弥补了此领域的不足。方法利用GDB(GNU debugger)调试器的Python接口,将被调试程序中的图像变量对应的内存字节序列转化成Python下的2维数组,并采用Matplotlib库加以显示,整个图像显示线程独立于GDB的文本字符交互主线程。结果在Windows、Linux、Mac系统中分别进行实验,均可实现图像变量的显示、缩放、平移、像素数值查看、保存等多种功能,并使得GDB的命令行保持非阻塞模式运行。结论开源跨平台的图像可视化调试器的设计,满足了不同操作系统平台下图像程序的开发调试需求,弥补了当前GDB调试图像程序功能的不足,提高了图像处理程序的开发和调试效率。Objective In the process of debugging a C/C + + image-processing program, the debugger must have the ability to visualize the in-memory image data. Given that no study has yet to present an image debugger visualizer that can work in multiple-operation systems, an open-source, cross-platform image debugger visualizer design is proposed to fill the research gap. Method We utilize the Python interface of the GDB debugger, translate the byte array fetched from'the debugged pro- gram to a Python two-dimensional array object, and visualize the array by using the Matplotlib library. The visualization process is executed in a worker thread, along with the traditional GDB text-based interface. Experiments are performed on Windows, Linux, and Mac Systems. Result Results show that the debugger has various features, such as zooming, panning the image, showing the pixel value of the specified position of the image, saving the image, and keeping the GDB text com- mand line interface in a state where it can work interactively. Conclusion The debugger design meets the requirements of developing and debugging an image program in different operating system platforms, thus compensating for the deficiencies of the GDB debugger in terms of image debugging ability, and significantly improving the efficiency of development and debugging.
分 类 号:TP391[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:13.58.11.68