Source
namespace casa {
class StatImageCreator : public ImageStatsBase<Float> {
// <summary>
// Create a "statistic" image from an image.
// </summary>
// <reviewed reviewer="" date="" tests="" demos="">
// </reviewed>
// <prerequisite>
// </prerequisite>
// <etymology>
// </etymology>
// <synopsis>
// See CAS-9195.
// </synopsis>
public:
StatImageCreator() = delete;
// <src>region</src> is the usual region used in image analysis tasks.
// It is the region in the image over which to perform the computations.
// The subregion over which to carry out a single statistic computation is
// set separately after the object has been constructed.
StatImageCreator(
SPCIIF image, const Record *const region, const String& mask,
const String& outname, Bool overwrite
);
// destructor
~StatImageCreator() {}
SPIIF compute();
String getClass() const { const static String s = "StatImageCreator"; return s; }
// set the anchor pixel value. Note that this applies to the image used at construction,
// not the resulting subimage if a region was also specified.
void setAnchorPosition(Int x, Int y);
// rounds reference pixel to nearest ints, if necessary
void useReferencePixelAsAnchor();
// set spacing between grid pixels.
void setGridSpacing(uInt x, uInt y);
// set interpolation algortihm
void setInterpAlgorithm(Interpolate2D::Method alg);
// set radius for circle subregion over which to carry out individual statistics computations.