38 template<
class dataType>
class NiftiImageData;
50 template<
class dataType>
Definition: ImageWeightedMean.h:52
void check_can_do_mean() const
Check if its possible to calculate the mean.
Definition: ImageWeightedMean.cpp:102
~ImageWeightedMean()
Destructor.
Definition: ImageWeightedMean.h:59
std::shared_ptr< NiftiImageData< dataType > > _output_image_sptr
Output image.
Definition: ImageWeightedMean.h:82
void add_image(const NiftiImageData< dataType > &image, const float weight)
Add an image (from NiftImage) and its corresponding weight.
Definition: ImageWeightedMean.cpp:44
std::vector< std::shared_ptr< const NiftiImageData< dataType > > > _input_image_sptrs
Vector of input images.
Definition: ImageWeightedMean.h:78
ImageWeightedMean()
Constructor.
Definition: ImageWeightedMean.cpp:38
std::vector< float > _weights
Vector of weights.
Definition: ImageWeightedMean.h:80
const std::shared_ptr< const NiftiImageData< dataType > > get_output_sptr() const
Get output.
Definition: ImageWeightedMean.h:68
bool _need_to_update
Bool to check if update is necessary.
Definition: ImageWeightedMean.h:76
void process()
Process.
Definition: ImageWeightedMean.cpp:54
Definition: NiftiImageData.h:78
Abstract data container.
Definition: GeometricalInfo.cpp:141