Software design of a digital holographic microscope based on MFC, multi-document and multi-thread
jialin zhang,chao zuo,jiasong sun,shijie feng,liguang zhang,yao fan,yan hu,fucheng kong,qian chen,yuzheng zhang,dongdong chen,tianyang tao,fei lin,yang yang,chen tian
DOI: https://doi.org/10.1117/12.2204988
2015-01-01
Abstract:Friendly interactive interface always significantly accelerate the progress of scientific research. However, most of the commercial softwares cannot meet the demand of a digital holographic microscope. Therefore, we designed a software in order to satisfy this requirement. We use Visual Studio 2010 to build this software, which is based on MFC multi-documents and multi-threads. The main process of designing this software is as follow: 1) Firstly, build the main frame of the software. It is easy to realize the basic interface of Windows style by programming with MFC. The most important thing in this module is adding algorithms and the functions of tool buttons to the program. 2) Secondly, implement functionality of each sub module. In this software, sub modules mainly mean sub windows. In order to have the unity of style, all sub windows use the similar toolbar. Specially, if one sub window have its own functionality, we will add button alone. 3) Thirdly, pass messages among modules. Passing messages among modules is significant in this software. The news in main program must be transmitted to the relevant sub window. The operation information in any sub windows must be transmitted to the main program, or transmitted to other sub windows. In order to make the program more efficient, we utilize multi-thread programming. With a digital holographic microscope, our software has many useful features, such as capturing the hologram of a sample (Holo View), displaying its Fourier spectrum (Fourier View), unwrapping phase map (Phase View), digital refocusing intensity information (Intensity View), drawing 2D line across the sample (2D View) and displaying three-dimensional images (Plot View). The experimental results demonstrate that a digital holographic microscope could be used much easier with the help of our software.