Research Article

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

Figure 6

A function to exploit parallel computing with multiple CPU cores. MATLAB supports parallel computing using multiple CPU cores. To utilize multicores, users need to create functions that are to be executed in different CPU cores concurrently and independently. The figure shows a function of xx direction task among independent six tasks. Note that the other five functions have similar patterns of code. The body of functions is placed in a loop together. We split the code into six tasks and use function and end keywords to create functions for each task.