CODE V Enewsletter

July 2020

Quick Tip: CODE V 2D Image Simulation for Abstract Optical Metrics

The CODE V 2D Image Simulation (IMS) option simulates the appearance of a 2-dimensional input object as it is imaged through the optical system you defined in CODE V. It is a useful tool for visualizing and communicating abstract optical metrics. IMS analysis includes diffraction and aberration-introduced blurring, image distortion, relative illumination and other transmission variations. IMS additionally incorporates blurring due to detector dimensions.

IMS allows you to define a finite-sized detector pixel to include detector blurring in its PSF computation.  You can enable this blurring in the IMS Computation tab > Detector Convolution button, where you can specify the Detector Pixel X-width and Detector Pixel Y-width:

In addition, the IMS option assumes that both the simulated image and its object file have the same number of pixels. For example, if the input object file is 1000 x 1000 pixels, the IMS simulated image is also 1000 x 1000 pixels. However, if your detector has only 100 x 100 elements, the simulated image should also have 100 x 100 pixels. To map the IMS result onto the detector, the input to each detector element should be based on the average brightness and color over a region of 10 x 10 object-file pixels. To correctly represent the real detector blurring, you must downsample the IMS result of 1000 x 1000 pixels down to 100 x 100 pixels.

To produce an image with correct detector blurring, a macro can be used to conduct post-processing on the IMS output data file. Here is an example that you can try using the macro downsample.seq.

Left: IMS input file, original object file.

Right: IMS result, simulated image after IMS run.

Resulting image after downsampling, based on real detector pixel count.


We discussed IMS in a recent CODE V Tech Talk. If you’re interested in learning more about IMS, you can watch a recording of this Tech Talk on the Customer Support Portal.

You can also download the downsample.seq macro on the Customer Support Portal

July 2020 Glass Catalog Updates

Updates to the CODE V material database, including HOYA, MITSUI, OHARA, and SUMITA optical glass catalogs, are now available.

For download links and installation instructions, click here. For information about glasses affected by this update, refer to the History of CODE V Glass Database Changes on our website.

Updated CODE V COM API Reference Guide

In CODE V 11.3, a new COM class, CodeV.Application, was added to the CODE V COM API to improve compatibility with all supported languages (in particular, Python and MATLAB scripts). A new version of the CODE V COM Application Programming Interface Reference Guide documents the methods and properties provided by CodeV.Application. The new guide is available for download from the CODE V Documentation Library on the OSG Customer Support Portal.

You must have an account with a password in order to access the Customer Support Portal. To obtain an account, click Sign Up for an Account on the login screen and fill out the form.

Calendar of Events

For the latest event calendar, please go to our Events page.