Research Article

Facile Conversion and Optimization of Structured Illumination Image Reconstruction Code into the GPU Environment

Figure 7

Create a matrix in CPU memory and GPU memory. The CPU can access CPU memory only, and the GPU can access GPU memory only. Data (images) must be loaded into corresponding memory to be processed by either CPU or GPU. MATLAB also supports creating a matrix (double precision) in GPU directly by passing a parameter, e.g., zeros (sizex, ‘gpuArray’). However, images cannot be directly loaded into GPU, which requires that images need to be loaded into CPU memory first and copied to GPU memory.