Beginning with Imatest 5.1, direct acquisition of images from Sony sensor development boards through the Sony software tool is supported. This new feature allows Imatest to acquire the image directly from Sony, which eliminates the need to save images to file and load them individually into Imatest for analysis. By eliminating the need to save images to disk, development time can be drastically reduced.
Before continuing, make sure that you have all of the following:
- A computer running the Microsoft Windows operating system
- A copy of Imatest Master or IT 5.1, or more recent
- Sony development board (e.g. a CUE2 board) with camera sensor and associated configuration files
- A copy of the Sony AYA software tool
Supported Imatest Modules
Direct acquisition is supported in the following modules:
- SFRplus Setup
- SFRreg Setup
- eSFR ISO Setup
- Checkerboard Setup
- Uniformity Interactive
This page details how to get started with acquiring from Sony development boards. To get started, please follow the steps below.
1. Install Imatest
If Imatest is not already installed, please follow the instructions given in Installation and Getting Started.
2. Install Sony AYA
At the time of this writing, Sony AYA does not come with a dedicated installer. To install, unzip the supplied software into a folder in a convenient location, such as to a folder within C:\Program Files.
3. Enable AYA’s API server
Imatest interfaces with Sony AYA through AYA’s API server, which is a socket-based server that has to be enabled by the user. To enable the API server, please do the following:
- Open any *.icf parameter file.
- Append system.custom_toolbar(“APIServer”,1) to the file.
- Open AYA
- On the far right, press the new APISVR button
- In the API Server dialog, select ENABLE
- Close and reopen AYA
4. Prepare the camera
With AYA open, start monitoring your device by clicking the Monitoring Window button and selecting the modified *.icf file in the subsequent dialog.
Ensure that your device is properly aligned with the test chart by following the suggestions provided in the documentation, such as the ‘Photograph the chart’ section in the SFRplus instructions.
5. Sony setup in Imatest
The next step is to setup Imatest to handle the images acquired from AYA. Note that AYA supplies RAW images (i.e. undemosaicked ), so various settings will be need to be supplied by the user.
Once the Device Manager opens, select Sony AYA from the Device List.
b. Modify Settings
Next, modify any settings for the sensor using the controls in the Settings panel. The controls are displayed within the Color tab and ROI tab.
The controls in the Color tab for the most part have analogs in AYA’s Color preset panel, so the values used in AYA can be copied. The descriptions for the controls are as follows:
Select the sensor’s Bayer color filter pattern, or Monochrome if the sensor does not have one.
Sensors with a Bayer color filter pattern can be converted to a 3-color image through a process known as demosaicking. The following options are available:
- Do not demosaic
- MATLAB (Gradient-corrected linear interpolation): Use the more sophisticated demosaicking algorithm
- Bilinear (simple, low-quality; not as sharp): Use the simplistic bilinear demosaicking algorithm
Enter any pixel level offsets for the Red, Green, and Blue channels. This control set is directly analogous to the pixel offset controls in AYA.
The images from sensors that output bit-depths other than 8 bits-per-pixel or 16 bits-per-pixel can be unreasonably dark when displayed. To lighten the images, either select Auto, or manually enter the appropriate integer value by which to shift the image data (e. g. for a 10 bit sensor either select Auto, or enter 6).
White Balance Options
After demosaicking, white balancing can be applied to the image to correct the usual green cast of the image. The following options are available:
- None: Do not apply any white balancing
- Simple White Balance (grayworld– darken): White-balance assuming the crude ‘gray world’ algorithm
- Simple White Balance (grayworld– lighten): White-balance assuming the crude ‘gray world’ algorithm
- Using White Balance Gains: Directly supply the gains for each channel, as in AYA
Color Correction Matrix
This control is the counterpart of the linear matrix control in AYA and can be used to transform the images from the sensor’s color space to a more general color space. The Copy and Paste buttons allow the user to copy the values from AYA and vice versa. The Reset button changes the values to a 3 x 3 identity matrix.
Sony development boards may allow access to the masked portion of the sensor used for offset and dark current calculation. The relative location of any masked portion can be found by taking an image of a bright source and looking for any dark, rectangular section that spans either full width or height of the image. For example, shown below is an image from a sensor for which the masked section is at the top of the image.
With the ROI tab controls, the desired section of the sensor can be set.
Location of Mask Area
Desired Image Area
Select which area of the image to use. The following options are available:
- Full sensor: Both masked and unmasked areas
- Unmasked pixels only: The portion of the sensor with ‘active’ pixels
- Masked pixels only
To exit the Device Manager, press the Save button. Imatest is now configured to acquire from the Sony Development board. Open any of the supported modules to begin testing the sensor.