Skip to main content
Question

Geometric Image Analysis with negative Image Size


I am implementing a fix for the incorrect MinY of the Geometric Image Analysis in Python, as discussed in this post. While doing so, I noticed an odd behavior. It is allowed to specify the Image Size as negative for the Geometric Image Analysis, but this causes problems with the resulting output. With the example Double Gauss 28 degrees field, I can create the following analyses using the API with slightly different settings:

API output for 4 slightly different analyses

 

Showing that the extent of the axis with a negative image size and the number of pixels set to 100 will always equal 100. First I thought this was an API problem, but this is the same output in OpticStudio:

The same analyses in OpticStudio.  Field widths: Analysis 1: 50, Analysis 2: -50, Analysis 3: 100, analysis 4: -100

 

Note that the image width of Analysis 2 is 100 millimeters while it should be (-)50 millimeters:

Settings for analysis 2

 

Increasing the number of pixels to 200 increases the field width of the analyses with negative image sizes to 200 millimeters while it should be (-)50 millimeter and (-) 100 millimeter.

Same output with number of pixels set to 200. Field widths: Analysis 5: 50, Analysis 6: -50, Analysis 7: 100, analysis 8: -100

 

 

Is the behavior where a negative image size results in a field width equal to the number of pixels by design? Or should we not be able to specify it as a negative number in the first place?

0 replies

Be the first to reply!

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