Skip to main content
Solved

MTF setting in merit function for optimization

  • August 10, 2021
  • 4 replies
  • 1117 views

Hello, 

I know how should be the MTF plot (FFT MTF) of a lens design. How can I set the parameters of MTF in merit function to reach the same MTF plot?  I used MTFA operands.

Operands for MTF data

Best answer by Mark.Nicholson

May I offer an alternative approach?

The problem with optimizing with MTF directly is that your design needs to already be pretty well optimized. For direct MTF optimization to work, the desired frequency should occur before the first minimum of the MTF curve, otherwise you get onto the position where the MTF has to get worse before it can get better.

That’s why we introduced contrast optimization a few years back. Like the other Optimization Wizard Image Quality options, it works with the design in pretty much any state, so it can be used when the design is far from diffraction limited. It also uses many different operands, rather than just returning a single value like the MTF* operands do. This makes optimization much smoother.

I’d suggest using Contrast Optimization as your basic image quality function in the merit function, and then use MTF* operands to tweak the final design, if necessary.

-Mark

 

View original
Did this topic help you find an answer to your question?

4 replies

Hui Chen
Zemax Staff
Forum|alt.badge.img+1
  • Zemax Staff
  • 144 replies
  • August 12, 2021

Hi Zahra,

To have the MTFA operand return the same MTF value as that’s shown in the MTF analysis plot, you can set the Grid value to 1 for the MTFA operand in the merit function.

You can find this MTFA operand settings explained in the help file at The Optimize Tab (sequential ui mode) > Automatic Optimization Group > Merit Function Editor (automatic optimization group) > Optimization Operands (Alphabetically)

 


  • Author
  • Monochrome
  • 1 reply
  • August 13, 2021

Hello Hui Chen,

Thank you for your reply. It was exactly what I need.

Please see the MTF plot which is my target (for field 2) in attachment.

I have some questions and would appreciate your reply:

  • why you set value for MTFA operand: 0.742298 ? from where can I find this value ?
  • why you set Samp : 4
  • I should set only for the maximum frequency, because you set for frequency : 50?

Hui Chen
Zemax Staff
Forum|alt.badge.img+1
  • Zemax Staff
  • 144 replies
  • August 16, 2021

Hi Zahra,

Thank you for your reply!

  1. The Value is not an input for the MTFA operand. It’s an output computed by OpticStudio. By setting the MTFA operand as I did in the screenshot on the line 1 in the Merit function editor, I’m asking OpticStudio to compute the average MTF value at 50 lp/mm at Wave 1 Field 2 with a Sampling grid size of 256x256. OpticStudio then computes and returns the MTFA value at 50 lp/mm which is the “0.731876” you saw. 
  2. Sample 1 means 32x32. How high you need to set the sampling will depend on your system. For a well corrected system Sample 2 or 3 might be sufficient. You can start with a bit low and increase it to see if the MTF value converges.
  3. The MTFA operand returns MTF value at a single Frequency. This is the value “50” I entered in the MTFA operand. 

Mark.Nicholson
Luminary
Forum|alt.badge.img+3

May I offer an alternative approach?

The problem with optimizing with MTF directly is that your design needs to already be pretty well optimized. For direct MTF optimization to work, the desired frequency should occur before the first minimum of the MTF curve, otherwise you get onto the position where the MTF has to get worse before it can get better.

That’s why we introduced contrast optimization a few years back. Like the other Optimization Wizard Image Quality options, it works with the design in pretty much any state, so it can be used when the design is far from diffraction limited. It also uses many different operands, rather than just returning a single value like the MTF* operands do. This makes optimization much smoother.

I’d suggest using Contrast Optimization as your basic image quality function in the merit function, and then use MTF* operands to tweak the final design, if necessary.

-Mark

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings