52 auto variance_threshold = measurement_frame_info.getVarianceThreshold();
53 auto gain = measurement_frame_info.getGain();
56 const auto variance_map = measurement_frame_images.getLockedImage(
LayerVarianceMap);
76 auto ell_aper = std::make_shared<TransformedAperture>(
77 std::make_shared<EllipticalAperture>(cxx, cyy, cxy, kron_radius_auto),
80 auto measurement =
measureFlux(ell_aper, centroid_x, centroid_y, measurement_image, variance_map, variance_threshold,
84 auto total_variance = measurement.m_variance;
86 total_variance += measurement.m_flux / gain;
87 auto flux_error =
sqrt(total_variance);
89 auto mag_error = 1.0857 * flux_error / measurement.m_flux;
101 if (aperture_check_img) {
104 fillAperture<int>(ell_aper, centroid_x, centroid_y, aperture_check_img,
static_cast<unsigned>(src_id));