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.
|