mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
Image Utilities Unit Tests

Functions

 TEST_CASE ("Image invalid-pixel detection handles sentinel and nonfinite values", "[improc::isInvalidPixel]")
 Verify image invalid-pixel generation and classification for floating-point values.
 TEST_CASE ("Verify center of light calculation", "[improc::imageCenterOfLight]")
 TEST_CASE ("imageMedian selects valid image samples", "[improc::imageMedian]")
 Verifies masked and unmasked image medians with internal and caller-owned workspaces.
 TEST_CASE ("zeroNaNCube replaces invalid pixels and reports a mask", "[improc::zeroNaNCube]")
 Verify zeroNaNCube replaces invalid cube pixels and records their locations.

Function Documentation

◆ TEST_CASE() [1/4]

TEST_CASE ( "Image invalid-pixel detection handles sentinel and nonfinite values" ,
"" [improc::isInvalidPixel] )

Verify image invalid-pixel generation and classification for floating-point values.

Exercises the default NaN contract or a configured finite override, plus nonfinite classification.

Definition at line 22 of file imageUtils_test.cpp.

References mx::improc::invalidNumber(), mx::improc::isInvalidPixel(), and mx::math::isNan().

◆ TEST_CASE() [2/4]

TEST_CASE ( "imageMedian selects valid image samples" ,
"" [improc::imageMedian] )

Verifies masked and unmasked image medians with internal and caller-owned workspaces.

Definition at line 86 of file imageUtils_test.cpp.

References mx::improc::imageMedian().

◆ TEST_CASE() [3/4]

TEST_CASE ( "Verify center of light calculation" ,
"" [improc::imageCenterOfLight] )

centroiding Gaussians with center of light

Verify center of light calculation

Definition at line 49 of file imageUtils_test.cpp.

References mx::math::func::gaussian2D(), and mx::improc::imageCenterOfLight().

◆ TEST_CASE() [4/4]

TEST_CASE ( "zeroNaNCube replaces invalid pixels and reports a mask" ,
"" [improc::zeroNaNCube] )

Verify zeroNaNCube replaces invalid cube pixels and records their locations.

Exercises both mx::improc::zeroNaNCube overloads, including mask allocation and finite pixels.

Definition at line 110 of file imageUtils_test.cpp.

References mx::improc::eigenCube< dataT >::cube(), mx::improc::eigenCube< dataT >::image(), and mx::improc::zeroNaNCube().