Gain and Offset adjustment tool (contrast/brightness)

 

This windows tool, available for download from the link below, attaches to a stream of 16-bit radar output, and downsamples the power values back to the more commonly used 8-bit range.

By applying configurable values of gain and offset as part of the downsampling, the tool has the effect of enabling brightness and contrast adjustments, whilst still maintaining the whole dynamic range that 8-bit resolution of power values supports.

  File Modified

File video_adjuster.exe

Aug 15, 2024 by John Marshall

‘video_adjuster.exe’ is a windows command line tool that sits between a radar and a client to provide the capability of adjusting the gain (contrast) and offset (brightness) of the radar’s image. 

The radar providing data must be configured to output high precision (16-bit) data. Instruction to configure this is available here.

The output from the tool is 8-bit FFT data in Colossus format, which can be consumed as a network stream, in the same way that native 8-bit output from a physical radar can. At the point of a client application connecting to the output from the video_adjuster tool, a radar configuration message is sent, which mirrors the behaviour of a physical radar.

 

Screenshot 2024-08-15 103348.png
gain 1 offset 0.png

 

Usage:

 The tool has two groups of settings - IP address and Port for the source radar, and address and port defining where the output should be produced.

A typical call on the application is shown below:

 

 Argument

(short form argument)

Description

Default value

radar

 

 

 

--ipaddress

-i

IP address of radar

192.168.0.1

--port

-p

FFT data port of radar

6317

server

 

 

 

--ipaddress

-i

Local IP address to bind to

Any (0.0.0.0) – Let the OS decide

--port

-p

Port for server to listen on

56317

 

 

When running

Through the command line interface, the tool allows simple user adjustment of the gain and offset parameters: 

Commands are as follows: 

long instruction

short instruction

details

allowable range

gain

g

Adjust the gain (contrast)

0.0 < gain < 10.0

offset

o

Adjust the offset (brightness)

-100 < offset < 100

quit

q

Shutdown the proxy

-

 

Â