CWO++library  0.32
 All Classes Functions Variables Groups
Using CPU threads

This code calculates Shifted-Fresnel diffraction with 8 CPU threads.

CWO a;
a.Load("sample.bmp"); //Load image file
a.SetSrcPitch(10e-6,10e-6);
a.SetDstPitch(24e-6,24e-6);
a.Diffract(0.1, CWO_SHIFTED_FRESNEL); //Calculate diffraction from the image using the angular spectrum method
a.Intensity();
a.Scale(255); // Convert the intensity to 256 gray scale data
a.Save("diffract.bmp"); //Save the intensity as bitmap file

/**

CPU threads