CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::ImageMoments< T > Class Template Reference

#include <ImageMoments.h>

Inheritance diagram for carta::ImageMoments< T >:
[legend]
Collaboration diagram for carta::ImageMoments< T >:
[legend]

Public Member Functions

 ImageMoments (const casacore::ImageInterface< T > &image, casacore::LogIO &os, casa::ImageMomentsProgressMonitor *progress_monitor, casacore::Bool over_write_output=false)
 
 ~ImageMoments ()
 
casacore::Bool setMomentAxis (const Int moment_axis)
 
casacore::Bool setSmoothMethod (const casacore::Vector< casacore::Int > &smooth_axes, const casacore::Vector< casacore::Int > &kernel_types, const casacore::Vector< casacore::Quantum< casacore::Double > > &kernel_widths)
 
casacore::Bool setSmoothMethod (const casacore::Vector< casacore::Int > &smooth_axes, const casacore::Vector< casacore::Int > &kernel_types, const casacore::Vector< casacore::Double > &kernel_widths_pix)
 
std::vector< std::shared_ptr< casacore::MaskedLattice< T > > > createMoments (casacore::Bool do_temp, const casacore::String &out_file_name, casacore::Bool remove_axis=true)
 
const casacore::CoordinateSystem & coordinates ()
 
casacore::IPosition getShape () const
 
void StopCalculation ()
 

Private Member Functions

casacore::Bool SetNewImage (const casacore::ImageInterface< T > &image)
 
SPIIT SmoothImage ()
 
void WhatIsTheNoise (T &noise, const casacore::ImageInterface< T > &image)
 
void LineMultiApply (casacore::PtrBlock< casacore::MaskedLattice< T > * > &lattice_out, const casacore::MaskedLattice< T > &lattice_in, casacore::LineCollapser< T, T > &collapser, casacore::uInt collapse_axis)
 
casacore::IPosition ChunkShape (casacore::uInt axis, const casacore::MaskedLattice< T > &lattice_in)
 

Private Attributes

SPCIIT _image = SPCIIT(nullptr)
 
std::unique_ptr< casa::ImageMomentsProgress > _progress_monitor
 
std::unique_ptr< Image2DConvolver< casacore::Float > > _image_2d_convolver
 
volatile bool _stop
 
casacore::uInt _steps_for_beam_convolution = 0
 

Constructor & Destructor Documentation

◆ ImageMoments()

template<class T >
carta::ImageMoments< T >::ImageMoments ( const casacore::ImageInterface< T > &  image,
casacore::LogIO &  os,
casa::ImageMomentsProgressMonitor *  progress_monitor,
casacore::Bool  over_write_output = false 
)

◆ ~ImageMoments()

template<class T >
carta::ImageMoments< T >::~ImageMoments ( )
inline

Member Function Documentation

◆ ChunkShape()

template<class T >
casacore::IPosition carta::ImageMoments< T >::ChunkShape ( casacore::uInt  axis,
const casacore::MaskedLattice< T > &  lattice_in 
)
private

◆ coordinates()

template<class T >
const casacore::CoordinateSystem & carta::ImageMoments< T >::coordinates ( )
inline

◆ createMoments()

template<class T >
std::vector< std::shared_ptr< casacore::MaskedLattice< T > > > carta::ImageMoments< T >::createMoments ( casacore::Bool  do_temp,
const casacore::String &  out_file_name,
casacore::Bool  remove_axis = true 
)

◆ getShape()

template<class T >
casacore::IPosition carta::ImageMoments< T >::getShape ( ) const
inline

◆ LineMultiApply()

template<class T >
void carta::ImageMoments< T >::LineMultiApply ( casacore::PtrBlock< casacore::MaskedLattice< T > * > &  lattice_out,
const casacore::MaskedLattice< T > &  lattice_in,
casacore::LineCollapser< T, T > &  collapser,
casacore::uInt  collapse_axis 
)
private

◆ setMomentAxis()

template<class T >
casacore::Bool carta::ImageMoments< T >::setMomentAxis ( const Int  moment_axis)

◆ SetNewImage()

template<class T >
casacore::Bool carta::ImageMoments< T >::SetNewImage ( const casacore::ImageInterface< T > &  image)
private

◆ setSmoothMethod() [1/2]

template<class T >
casacore::Bool carta::ImageMoments< T >::setSmoothMethod ( const casacore::Vector< casacore::Int > &  smooth_axes,
const casacore::Vector< casacore::Int > &  kernel_types,
const casacore::Vector< casacore::Double > &  kernel_widths_pix 
)

◆ setSmoothMethod() [2/2]

template<class T >
casacore::Bool carta::ImageMoments< T >::setSmoothMethod ( const casacore::Vector< casacore::Int > &  smooth_axes,
const casacore::Vector< casacore::Int > &  kernel_types,
const casacore::Vector< casacore::Quantum< casacore::Double > > &  kernel_widths 
)

◆ SmoothImage()

template<class T >
SPIIT carta::ImageMoments< T >::SmoothImage ( )
private

◆ StopCalculation()

template<class T >
void carta::ImageMoments< T >::StopCalculation ( )

◆ WhatIsTheNoise()

template<class T >
void carta::ImageMoments< T >::WhatIsTheNoise ( T &  noise,
const casacore::ImageInterface< T > &  image 
)
private

Member Data Documentation

◆ _image

template<class T >
SPCIIT carta::ImageMoments< T >::_image = SPCIIT(nullptr)
private

◆ _image_2d_convolver

template<class T >
std::unique_ptr<Image2DConvolver<casacore::Float> > carta::ImageMoments< T >::_image_2d_convolver
private

◆ _progress_monitor

template<class T >
std::unique_ptr<casa::ImageMomentsProgress> carta::ImageMoments< T >::_progress_monitor
private

◆ _steps_for_beam_convolution

template<class T >
casacore::uInt carta::ImageMoments< T >::_steps_for_beam_convolution = 0
private

◆ _stop

template<class T >
volatile bool carta::ImageMoments< T >::_stop
private

The documentation for this class was generated from the following file: