Dear All,
I'm trying to do ImageSimulation in ZOS-API with MATLAB.
I want to output the simulated image as a MATLAB variable but couldn't.
Unfortunately, the way explained in 'How do I output the image of an analysis in ZOS-API?' didn't work well.
Below is the part of my code I tried following the previous thread.
It was confirmed that the lens data was properly loaded.
TheSystem.LoadFile(testFile,false);
im_analysis = TheSystem.Analyses.New_ImageSimulation();
im_analysis.ApplyAndWaitForCompletion();
im_results = im_analysis.GetResults();
matrixData = im_results.DataGrids(1).Values.double;
What's wrong with my code?
Thanks in advance for your help,
Shimpei
Best answer by Allie
View original