test_camera

test_camera.test_module(show_plots, gauss, darkCurrent, saltPepper, cosmic, blurSize)[source]

Validation Test Description

This module tests the proper functioning of the camera module. This is done by first ensuring that the reading and writing of the camera parameters are properly executed. The test then corrupts a test image accordingly.

Description of Variables Being Tested

The camera parameters tested are the camera position MRP and the isOn value for the camera. These ensure that the position is properly written and read. The image is also corrupted with the parameterized test information. This is directly tested by differencing the initial and processed image to see a change. and also ensures that the variables are properly read and that all the openCV functions are executing properly.

  • camera_MRP

  • isON

  • imageNorm Values

The comparative value for the test on the image is 1E-2 which depends on the corruptions but is allowed to me small as the relative difference of the images is taken (whereas pixel values can get large).

The two parameterized test are set with and without corruptions.

General Documentation Comments

The script could benefit from more profound image processing testing. Currently the bulk of the image processing is only tested by the result image.