5#include "../../catch2/catch.hpp"
13namespace unitTest::improc_aperturePhotometer_test
21TEST_CASE(
"aperturePhotometer accumulates a centered image",
"[improc::aperturePhotometer]" )
25 std::vector<double> cumulative;
29 REQUIRE( photometer.
resize( image.rows(), image.cols() ) == 0 );
30 REQUIRE( photometer.
cumPhot( cumulative, image ) == 0 );
31 REQUIRE( cumulative.size() == 3 );
32 CHECK( cumulative[0] == 1.0 );
33 CHECK( cumulative[1] == 5.0 );
34 CHECK( cumulative[2] == 9.0 );
Class for conducting aperture photometry on an image.
Class for performing aperture photometry on images.
int resize(int sizeX, int sizeY, realT xcen, realT ycen)
Resize the photometer, recalculating the radius vector and index image.
int cumPhot(std::vector< realT > &cumPhot, eigenImage< realT > &im, realT maxr=0)
Get the cumulative photometry of an image as a function of radius.
TEST_CASE("aperturePhotometer accumulates a centered image", "[improc::aperturePhotometer]")
Verifies cumulative photometry through mx::improc::aperturePhotometer::cumPhot.
Eigen::Array< scalarT, -1, -1 > eigenImage
Definition of the eigenImage type, which is an alias for Eigen::Array.