31 namespace lsst {
namespace ip {
namespace isr {
33 template <
typename PixelT>
41 if (!(ptr.mask() & allow) && (!std::isfinite(ptr.image()) ||
42 !std::isfinite(ptr.variance()))) {
44 ptr.
mask() |= maskVal;
51 template<
typename ImagePixelT,
typename FunctionT>
63 std::vector<double> values(height);
64 std::vector<double> errors(height);
65 std::vector<double> positions(height);
67 std::vector<double> parameters(overscanFunction->getNParameters(), 0.);
68 std::vector<double> stepsize(overscanFunction->getNParameters(), ssize);
78 MaskedImage mi = MaskedImage(overscan, bbox);
99 std::string
between(std::string &s,
char ldelim,
char rdelim) {
100 std::string::iterator
b(s.begin());
101 std::string::iterator e(s.end());
102 std::string::iterator lp;
103 std::string::iterator rp;
107 if((lp = std::find(
b, e, ldelim)) != e)
108 if((rp = std::find(++lp, e, rdelim)) != e)
109 result = std::string(lp, rp);
130 template class CountMaskedPixels<float>;
131 template class CountMaskedPixels<double>;
x_iterator row_begin(int y) const
Return an x_iterator to the start of the image.
An include file to include the public header files for lsst::afw::math.
std::vector< double > parameterList
fit parameters
Ref< MaskPixelT >::type mask()
Return (a reference to) the mask part of the Pixel pointed at by the iterator.
std::string between(std::string &s, char ldelim, char rdelim)
int getHeight() const
Return the number of rows in the image.
estimate sample standard deviation
x_iterator row_end(int y) const
Return an x_iterator to the end of the image.
FitResults minimize(lsst::afw::math::Function1< ReturnT > const &function, std::vector< double > const &initialParameterList, std::vector< double > const &stepSizeList, std::vector< double > const &measurementList, std::vector< double > const &varianceList, std::vector< double > const &xPositionList, double errorDef)
template size_t maskNans< float >(afw::image::MaskedImage< float > const &, afw::image::MaskPixel, afw::image::MaskPixel)
A class to evaluate image statistics.
An integer coordinate rectangle.
afw::table::Key< double > sigma
An iterator to the MaskedImage.
double getValue(Property const prop=NOTHING) const
Return the value of the desired property (if specified in the constructor)
size_t maskNans(afw::image::MaskedImage< PixelT > const &mi, afw::image::MaskPixel maskVal, afw::image::MaskPixel allow)
Mask NANs in an image.
void ImageT ImageT int float saturatedPixelValue int const width
Results from minimizing a function.
A class to manipulate images, masks, and variance as a single object.
A Function taking one argument.
void ImageT ImageT int float saturatedPixelValue int const height
int getWidth() const
Return the number of columns in the image.
Statistics makeStatistics(afwImage::Mask< afwImage::MaskPixel > const &msk, int const flags, StatisticsControl const &sctrl)
Specialization to handle Masks.
Implementation of the templated Instrument Signature Removal stage of the nightly LSST Image Processi...
Compute Image Statistics.
afw::table::Key< double > b
void fitOverscanImage(std::shared_ptr< afw::math::Function1< FunctionT > > &overscanFunction, afw::image::MaskedImage< ImagePixelT > const &overscan, double ssize, int sigma)
template size_t maskNans< double >(afw::image::MaskedImage< double > const &, afw::image::MaskPixel, afw::image::MaskPixel)