设为首页 |  加入收藏
首页首页 期刊简介 消息通知 编委会 电子期刊 投稿须知 广告合作 联系我们
基于DirectDraw双缓冲的实时动态成像技术

Real-time dynamic imaging based on double buffer drawing with DirectDraw

作者: 殷银锁  张仁诚  王东辉 
单位:                                 沈阳军区总医院医学工程科(沈阳110015)            
关键词:                               多媒体定时器;多线程;DirectDraw;双缓冲;实时动态成像              
分类号:
出版年·卷·期(页码):2014·33·4(379-382)
摘要:

目的 应用程序基于特定的成像算法将硬件电路采集到的电信号计算成一系列二维静态图像,研究如何将静态图像序列转换成实时动态显示视频。方法 采用具有毫秒级精度的多媒体定时器产生时钟信号触发图像序列间的切换,利用多线程优化程序设计节省总的成像时间,基于DirectDraw双缓冲技术实现图像的快速显示。结果 基于以上软件技术将数据传输、图像计算和图像显示环节有效地结合,实现静态图像序列到实时动态成像的转换。结果显示视频帧速率达到预定的每秒25帧,图像序列间的切换显示所需要的时间远小于1ms。结论 基于多媒体定时器、多线程和DirectDraw双缓冲技术,可将静态图像序列以特定的帧速率显示出来,从而实现静态图像到动态视频的转换。

Objective The application translated the electric signals collected by the hardware into a series of two-dimensional still images based on a specific imaging algorithm. Our research focused on how these still images could be transformed into a real-time dynamic video. Methods The multimedia timer was used to generate a clock signal to trigger the switching among the still image sequence. The multithreads were adopted to shorten the total period of imaging. The DirectDraw and double buffer were used to display the images rapidly. Results The data transmission, image calculation and image display were integrated together effectively based on these software techniques. The still image sequences were transformed into the real-time dynamic imaging. The results showed that the frame rate reached 25 frames per second and the time taken for switching images was far more less than 1 millisecond. Conclusions With the multimedia timer, the multithreads, the DirectDraw and double buffer, the still images could be displayed at a certain frame rate so that these still images could be transformed into a dynamic video.

参考文献:

[1]Wang Yao,Ostermann Joern,Zhang Yaquin. Digital Video Processing and Communication[M].NJ:Prentice Hall,2001:24-115.
[2]Microsoft Corporation. Platform SDK. Windows Multimedia: Using Multimedia Timers[M]. San Francisco: MSDN, 2002.
[3]陆斌, 齐强.DirectDraw技术在模拟跟踪系统中的应用[J]. 微机发展, 2003,13 (12): 79-81.
Lu Bin, Qi Qiang. The application in tracking simulation system based on DirectDraw[J]. Microcomputer Development, 2003, 13 (12):79-81.
[4]周健,钱进. 用DirectDraw实现对B超图像的重建[J]. 苏州大学学报:自然科学版, 2002, 18(2): 30-34.
Zhou Jian, Qian Jin. Reconstruction of ultrasound B mode images with DirectDraw technique[J]. Journal of Suzhou University: Natural Science, 2002, 18(2): 30-34.
[5]Microsoft Corporation. Display and Print Devices. Windows DDK:DirectDraw Architecture [M]. San Fracisco: MSDN, 2002.
 

服务与反馈:
文章下载】【加入收藏
提示:您还未登录,请登录!点此登录
 
友情链接  
地址:北京安定门外安贞医院内北京生物医学工程编辑部
电话:010-64456508  传真:010-64456661
电子邮箱:llbl910219@126.com