CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
StatsCalculator.h File Reference
#include <vector>
#include <casacore/images/Images/ImageInterface.h>
#include <casacore/images/Images/ImageStatistics.h>
#include <carta-protobuf/enums.pb.h>
#include "BasicStatsCalculator.h"
#include "Histogram.h"
Include dependency graph for StatsCalculator.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  carta
 

Functions

void carta::CalcBasicStats (BasicStats< float > &stats, const float *data, const size_t data_size)
 Calculate basic stats from a float vector using BasicStatsCalculator.
 
Histogram carta::CalcHistogram (int num_bins, const HistogramBounds &bounds, const float *data, const size_t data_size)
 Calculate a histogram from a float vector using Histogram.
 
bool carta::CalcStatsValues (std::map< CARTA::StatsType, std::vector< double > > &stats_values, const std::vector< CARTA::StatsType > &requested_stats, const casacore::ImageInterface< float > &image, bool per_channel=true)
 Calculate statistics for an image or a region applied to an image.
 
void carta::GetPositionStats (const casacore::ImageInterface< float > &image, casacore::ImageStatistics< float > image_stats, CARTA::StatsType carta_stats_type, std::vector< double > &dbl_result)
 Calculate statistics related to the image/region position.
 
bool carta::ComputeFluxDensity (const casacore::ImageInterface< float > &image, casacore::ImageStatistics< float > image_stats, std::vector< double > &result)
 Calculate flux density statistics for an image or a region applied to an image.
 
bool carta::GetBeamArea (const casacore::ImageInterface< float > &image, const casacore::String unit, double &beam_area)
 Get the area of the beam in the given unit for an image or a region applied to an image.
 

Variables

static std::unordered_map< CARTA::StatsType, casacore::LatticeStatsBase::StatisticsTypes > carta::carta_stats_to_casacore
 Functions to calculate image and region statistics and histograms.