Skip to main content

Is there is a way to build an image simulator in Matlab from zemax ?



 

Sure... you can use the ZOSAPI to communicate back-and-forth between Matlab and Zemax OpticStudio.



You can access all the analyses in OpticStudio from Matlab.  You can:





  • Simulate images in OpticStudio and display in Matlab


  • Collect PSFs across the FoV and compute your own image simulation


  • Use the MTF for systems where the PSF / MTF are constant over the field and use linear systems theory to compute the image




What do you want to do that is beyond these options?


Hi Brian,



Thanks a lot for the info & this is exactly what I need. Do have any resource material/any example of thread where the following topic is explained:





  • Collect PSFs across the FoV and compute your own image simulation


  • Use the MTF for systems where the PSF / MTF are constant over the field and use linear systems theory to compute the image




Looking forward towards your reply,



Kind regards,



saikat


Hello,

 

Thanks for your posts here on the forums!

 

 

Saikat, as Brian mentioned, this is all possible from the ZOS-API. If you would like to learn more about the basics of the ZOS-API connection, I would recommend to check out this learning path:

Getting Started with ZOS-API

ZOS-API.NET: An Overview

 

 

You may find complete examples, for example about how to pull the FFT MTF data, in the ZOS-API Syntax Help:

210601-153532-image.png

 

 

You may find further references and sample codes at these forum threads:

OpticsTalk: Deep Dive into Creating the Wavefront, Spot Diagram, PSF, and MTF in OpticStudio

How do I output the image of an analysis in ZOS-API?

How to extract the result of ImageSimulation in ZOS-API

Evaluation of PSF by on each pixel on the image sensor

 

 

I hope this helps, but if you have any further questions, we will be happy to help!

 

 

Best,

Csilla

 


Hi Csilla,



Thanks a lot for the information.



kind regards,



saikat



 


Reply