GCT Viewer#

Line scan Viewer and tools

For allPIXA evo, allPIXA neo and allPIXA SWIR cameras

Introduction#

The GenICam Control Tool (GCT) is optimized for line scan cameras. With GCT Viewer, you can set up a camera, browse and adjust parameters, perform camera calibration tasks, and visualize and analyze acquired images.

User interface overview#

The software tool provides different panel elements that can be placed, resized, and docked freely within the GCT window. The GCT user interface starts after a successful connection with your camera. The window contains four main areas: the menu bar widget for general access, the toolbar widget for fast access to the most common functions, the image view widget where the image and all relevant information are displayed, and the configuration widget for the camera configuration.

Main window#

User interface main

Toolbar#

The Toolbar contains the following icons and their functions.

Toolbar widget

The Toolbar offers the following button functions:

  • Connect/Disconnect: Opens the device discovery widget or disconnects the camera, Connection and disconnection of Camera

  • Reset and reconnect: Resets the camera and reconnects

  • Start Grabbing: Starts continuous image grabbing

  • Abort Grabbing: Stops the image acquisition

  • Acquire a single frame: Acquires a single frame

  • Load image: Load an image from disk

  • Save image: Save image to disk

Configuration widget#

The Configuration widget provides two panels: Camera features, which is the GenICam parameter tree, and the configuration panel, which is a graphical representation of the GenICam parameter tree.

The following image shows the configuration panel of the configuration widget. The panel contains a tab view, from which four main categories can be selected. Each tab contains another tab view with subcategories. The content in each sub-tab view is scrollable.

An info box or tooltip is shown when hovering over a parameter input field or the blue information icon.

Configuration widget panel

The Camera Features tab contains the GenICam parameter tree, the user setup level, and an extra panel to set up the filter driver.

Camera features tab

Image view widget#

The image view widget shows the current image, image properties, acquisiton statistics and some functional tools to view image data in different forms.

Image view widget

Split-view#

The Split View option allows you to display multiple tabs side by side or on top of each other. As soon as two or more tabs are open you can select between the Horizontal Split-view and the Vertical Split view option.

Split-view options

To end the Split-view you can choose between Combine tabs to the immediate left tab-widget or Combine all tabs.

The following image shows an example of the Horizontal Split-view.

Horizontal split-view example

Image view options#

Line plot view#

GCT can display a horizontal line plot in the image view widget. To add this feature, add a new tab by pressing the plus on the top. A popup window will open; select “Horizontal Line plot” under “View Type.”

Line plot view selection

After this configuration, a new window will open as shown in the following figure.

Line plot view window

Histogram view#

GCT can display a histogram of the image content in the image view widget. To add this feature, add a new tab by pressing the plus on the top. A popup window will open; select “Horizontal Line plot” under “View Type.”

Histogram view selection

After this configuration, a new window will open as shown in the following figure.

Histogram view window

Single Channel#

GCT can display only a single channel of the image content in the image view widget. To add this feature, add a new tab by pressing the plus on the top. A popup window will open; select “Single Channel” under “View Type.”

Single channel view selection

After this configuration, a new window will open as shown in the following figure.

Single channel view window

Each Line Info Block analyzer#

With GCT you can analyze the Each Line Info Block of the image content in the image view widget. To add this feature, add a new tab by pressing the plus on the top. A popup window will open; select “Each Line Info Block Plot” and then choose “Single Channel,” or change the View Type.

Each Line Info Block selection

In this view, you can select four different plots. Navigate to Subview Type and select your feature of interest.

Subview type selection

Image buffer#

Multiple images can be buffered in GCT and displayed individually after stopping the acquisition. To enable this option, click on the right icon with the three sliders. A new window will open; check the Enable image buffer option.

Image buffer control

Arrange / Rearrange widgets#

The software provides different widget elements that can be placed, resized, and docked freely within the GCT window. If you are using two monitors you can place, for example, the configuration widget on the second screen and the image view widget on the first screen.

Arrange widgets example 1

The software provides different widget elements that can be placed, resized, and docked freely within the GCT window. If you are using two monitors you can place, for example, the configuration widget on the second screen and the image view widget on the first screen.

Arrange widgets example 2

Connection and disconnection of camera#

Connecting the camera#

To connect your camera:

  1. Click the Connect/Disconnect icon on the top left in the GCT Viewer toolbar.

  2. The Discovery dialog opens. Click the Start Discovery button.

Note that camera initialization can take approximately 40 seconds.

connecting image

Modifying features#

GCT allows you to modify features in two different ways: The Configuration widget panel makes setting functions more convenient; special views show a set of related functions on which you can easily change these parameters. The camera feature panel allows you to edit the feature in the XML tree.

In the Configuration panel#

The view consists of four main tabs: Acquisition Control, Camera Image Calibration, Pixel Processing, and Special Functions. Each tab shows several subtabs.

The Acquisition Control tab, for example, shows five subtabs, which permit you to specify many features such as image format and trigger settings. Some features also have additional explanatory pictures.

Configuration panel tabs

In the camera feature panel (XML Tree)#

On the left side of the GCT window, features and their values are shown in a tree structure organized in feature groups. To show the features of a feature group, click on the arrow preceding the group name.

Camera feature panel tree

Showing feature details#

Feature details can be displayed in the configuration panel and in the camera feature panel.

In the Configuration panel#

In the configuration panel, the information is displayed when you move the mouse pointer over the parameter input field or the blue information icon.

Configuration panel info tooltip 1

Configuration panel info tooltip 2

The Up-/Download dialog allows you to upload files from the PC to the camera—such as camera package files and user sets—and to download files from the camera to the PC. Supported file types and extensions depend on the camera type.

Uploading files to the camera#

The Up-/Download dialog helps manage files on the camera. You can restore user settings, calibration files, and other file types that were previously downloaded from the camera.

Steps

Reference images

1. In the menu bar navigate to Tools.
2. Click Up-/Download or use the hotkey Ctrl+D.

Up-/Download dialog overview

The Update/Download wizard opens.
3. Click Select Update File and choose the file you want to upload, then click Open.
4. GCT shows a warning message.
5. Verify that the Type of your file matches the selected category in Update.
6. Click Start Update.
7. GCT shows a warning message.
8. Click Yes to start the upload.
9. Check the text in the Info Box: if the update was successful, it displays the green confirmation message “Update is successfully completed.”

Update file selection dialog
Warning message
Update progress dialog
Info box confirmation

Downloading files from the camera to the PC#

Firmware files, user sets, and other file types can be downloaded from the camera to the PC and saved locally.

Steps

Reference image

1. In the menu bar navigate to Tools.
2. Click Up-/Download or use the hotkey Ctrl+D.

The Update/Download wizard opens.
1. Click Download and select your file in the drop-down menu.
2. Click Download to.
3. Choose a folder, enter a file name, and click Save.

Download dialog

Updating the firmware#

Warning

Irreparable damage to the camera

If the camera ist powered down during firmware update it may get into a non-functional state. Recovery may not be possible.

The following video shows how to update the firmware:

Creating a black-reference (DSNU)#

Create a black-reference with DSNU.

  1. Switch off the illumination.

  2. Cover the lens with a black or dark piece of cardboard or plastic. No light may reach the sensor.

  3. In the menu bar navigate to ToolsCalibration.

  4. Click Generate DSNU Reference.

Tools → Calibration

The Generate DSNU Reference wizard opens.

Tools → Calibration

  1. Click Acquire image to generate the DSNU directly from the camera, or click Load from Disk to load an image from the hard drive.

    Note

    Load from Disk:

    Make sure that the image has been taken with active image calibration mode by using the wizard.

Generate DSNU Reference wizard

The raw image and the line plot of the image is displayed.

Send the calculated DSNU to the camera:

  1. Select LUT 1 or LUT 2.

  2. Click Send data to camera. This activates the calibration LUT.

  3. In the Configuration window, navigate to Camera Image CalibrationDSNU/PRNU.

  4. Make sure that DSNU is enabled.

Camera Image Calibration — DSNU/PRNU

Creating a shading-reference (PRNU)#

Note

Calculation of PRNU

The following equation describes the calculation of the PRNU:

CalibratedImage = (RawImage - DSNU) / PRNU

PRNU = (PRNUImage - DSNU) / TargetValue

  • CalibratedImage = Camera output with applied DSNU and PRNU

  • RawImage = Camera output image without any correction

  • TargetValue = Target Value of PRNU, default value is 255

  • PRNUImage = Acquired image of the white-reference

  • PRNU = Photo response non-uniformity

  • DSNU = Dark signal non-uniformity

Standard Method: PRNU reference generating (white diffuse surface)#

Create a shading-reference with PRNU.

  1. Place a moving white target. If using a stationary target, place it slightly out of focus.

Acquire an image:

  1. In the toolbar click Acquire a single frame or click Start grabbing, wait until an image is displayed, click Stop grabbing.

  2. In the menu bar navigate to ToolsCalibration.

  3. Click Generate PRNU Reference.

Tools → Calibration

The Generate PRNU Reference wizard opens.

PRNU Reference wizard

  1. Click Acquire image to generate the PRNU directly from the camera, or click Load from Disk to load an image from the hard drive.

    Note

    Load from Disk

    Make sure that the image has been taken with active image calibration mode by using the wizard.

Generate PRNU Reference wizard

The raw image and the line plot of the image is displayed.

  1. Click Start 2-Click-Selection.

  2. Click on the image to select the ROI.

Send the calculated PRNU to the camera:

  1. Select LUT 1 or LUT 2.

  2. Click Send data to camera.

Activate brightness and contrast:

  1. Select the Activate Brightness and contrast checkbox.

  2. Set the contrast to 0.9.

Independent Method: PRNU reference generating channel independent#

Note

This function is available as of GCT version 3.2.

In this instance, the lighting arrangement is single-colored and is visible in the camera’s red color channel. The signals in the green and blue channels are quite minimal.

On the left of the image, you can observe the RGB image, while on the right, the profile of the horizontal line plot is displayed.

In this scenario, the result of the PRNU calibration should be a RED image exhibiting a uniform profile.

Tools → Calibration

The “white balancing” process in the Independent calibration technique varies. The gain level needs to be modified for each specific gain. In this case, the Gain is solely applied to the Red channel.

Tools → Calibration

  1. In the menu bar navigate to ToolsCalibration.

  2. Click Generate PRNU Reference.

Tools → Calibration

The Generate PRNU Reference wizard opens.

PRNU Reference wizard

  1. Click Acquire image to generate the PRNU directly from the camera, or click Load from Disk to load an image from the hard drive.

    Note

    Load from Disk Make sure that the image has been taken with active image calibration mode by using the wizard.

The raw image and the line plot of the image is displayed.

  1. Click Start 2-Click-Selection.

  2. Click on the image to select the ROI.

The view changed to the “Applied PRNU Reference”. This is the output of the Standard PRNU method. The image is very noisy.

  1. Click on the button with the three dots …

  2. The GUI changed and shows more options.

PRNU Reference wizard

  1. Click Find channel max — the PRNU algorithm will find the mean maximum value for each channel.

  2. Change the Target Value, in this example Target value Red to 200.

Send the calculated PRNU to the camera:

  1. Select LUT 1 or LUT 2.

  2. Click Send data to camera.

Activate brightness and contrast:

  1. Select the Activate Brightness and contrast checkbox.

  2. Set the contrast to 0.9.

This image illustrates the results of the calibration process. It is a uniform image.

PRNU Reference wizard

Extrapolation function#

If the white reference does not cover the entire FOV, the extrapolation function can be used to generate it. In this case, a straight line is fitted to the gradient. Therefore follow the description below.

The images below show the raw image and the Applied PRNU reference without the extrapolation function. In the area with low image content, the Applied PRNU reference shows some artifacts.

PRNU Reference wizard

PRNU Reference wizard

  1. Select the ROI by using Start-2-Click-Selection.

  2. Press the button with the three dots on the bottom.

  3. Enable your option, in this example the left extrapolation.

  4. Select the start position of your extrapolation. The width defines the area where the extrapolation is created. From the start position to column 0, the extrapolation is applied.

PRNU Reference wizard

  1. Check the applied PRNU in the Applied PRNU reference tab.

PRNU Reference wizard

Target Value#

The Target Value limits the maximum intensity of your CalibratedImage.

Note

Make sure that the values of your PRNUImage are smaller than your TargetValue.

  1. Press the button with the three dots on the bottom.

PRNU Reference wizard

  1. Change the Target Value.

  2. Check the applied PRNU in the Applied PRNU reference tab.

PRNU Reference wizard

Color metric#

Delta E#

Interpretation of the delta E values

Delta Value

Human Perception

0.0 – 1.0

Not or hardly perceptible

1.0 – 2.0

Perceptible by experienced observers

2.5 – 3.5

Perceptible even by inexperienced observers

3.5 – 5

Clear color difference

5.0 and higher

Large color difference

User level#

Each camera contains an XML file specifying the available camera features. When GCT connects to the camera, it loads the XML file and shows the features as a tree structure.

Each feature has a visibility level. While all features are displayed for user-level Developers, many advanced features are hidden for user-level Beginner.

The User Level is shown above the feature area of the Camera Features widget. To modify the user level, click the displayed User Level, and then click the desired level:

Graphical user interface, text, application – Description automatically generated

Show message log#

To show the message log, click Message Log on the View menu or click Show message log window in the bottom right corner of the GCT window. A Message Log area is then shown below the image area:

GCT window showing message log

To copy messages to the clipboard, mark the messages, right-click on the selected messages, and then click Copy on the appearing context menu.

To copy all present messages, right-click on the Message Log area, click Select All on the appearing context menu, and then press Ctrl+C.

GCT options#

To open the Options dialog box, click Options on the Start menu.

Graphical user interface, application – Description automatically generated

Option name

Default value

Description

Wait for image timeout

30000

If the next image is not received after the specified time, a timeout occurs. The value can be modified. When GCT is restarted, it is reset to 30000.

Heartbeat timeout

3000

Reads the value of GevHeartbeatTimeout from the camera (control channel).

Data Stream Buffer Count

5

Specifies the number of buffers used for each stream. The value should be at least 2 or 3.

Ignore Image Timeout

Not selected

Can be selected if the acquisition process should continue despite a timeout error.

Display Corrupt Image

Not selected

Can be selected if an image should be displayed despite missing data.

Stops If an Error Occurs

Not selected

Draw

All

Can be set to display every x frames, or to shut off display to reduce CPU usage.

Enable XML feature caching

Not selected

Ensures the actual value is retrieved directly from the camera instead of from a cached register.

The options (except Wait for image timeout and Heartbeat timeout) are saved in GCC.ini.

GCC ini file#

The GCC.ini file, located at C:\Users\Public\Documents\Chromasens\GCT2, is automatically updated with the producer path, producer filename, and selected producer for discovery. Therefore, if discovery has already been executed, the GCC.ini file might look as follows in the [DefaultProducers] block:

GCC.ini file excerpt showing DefaultProducers block

  • ProducerList contains the found CTI transport layer files.

  • AdditionalSearchPath lists additional search paths for CTI files, which can be added by clicking Add Producer Path.

  • SelectedProducerList contains the CTI transport layer files selected for the discovery process.