![]() |
PURIFY
Next-generation radio interferometric imaging
|
Namespaces | |
expansions | |
Functions | |
std::vector< t_uint > | w_rows (const Sparse< t_complex > &w_degrider) |
std::tuple< t_real, t_real > | fov_cosines (t_real const &cell_x, t_real const &cell_y, t_uint const &x_size, t_uint const &y_size) |
Work out max L and M directional cosines from image parameters. More... | |
Matrix< t_complex > | generate_dde (const std::function< t_complex(t_real, t_real)> &dde, const t_real &cell_x, const t_real &cell_y, const t_uint &x_size, const t_uint &y_size) |
Generate image of DDE for A or W projection. More... | |
Matrix< t_complex > | generate_chirp (const std::function< t_complex(t_real, t_real)> &dde, const t_real &w_rate, const t_real &cell_x, const t_real &cell_y, const t_uint &x_size, const t_uint &y_size) |
Matrix< t_complex > | generate_chirp (const t_real &w_rate, const t_real &cell_x, const t_real &cell_y, const t_uint &x_size, const t_uint &y_size) |
Generates image of chirp. More... | |
Sparse< t_complex > | create_chirp_row (const t_real &w_rate, const t_real &cell_x, const t_real &cell_y, const t_uint &ftsizev, const t_uint &ftsizeu, const t_real &energy_fraction, const sopt::OperatorFunction< Vector< t_complex >> &fftop) |
Generates row of chirp matrix from image of chirp. More... | |
Sparse< t_complex > | create_chirp_row (const Vector< t_complex > &chirp_image, const t_real &energy_fraction, const sopt::OperatorFunction< Vector< t_complex >> &fftop) |
Sparse< t_complex > | wprojection_matrix (const Sparse< t_complex > &G, const t_uint &x_size, const t_uint &y_size, const Vector< t_real > &w_components, const t_real &cell_x, const t_real &cell_y, const t_real &energy_fraction_chirp, const t_real &energy_fraction_wproj, const expansions::series series=expansions::series::none, const t_uint order=1, const t_real &interpolation_error=1e-2) |
Produce Gridding matrix convovled with chirp matrix for wprojection. More... | |
t_real | snr_metric (const Image< t_real > &model, const Image< t_real > &solution) |
SNR calculation. More... | |
t_real | mr_metric (const Image< t_real > &model, const Image< t_real > &solution) |
MR calculation. More... | |
Sparse< t_complex > | generate_vect (const t_uint &x_size, const t_uint &y_size, const t_real &sigma, const t_real &mean) |
Genereates an image of a Gaussian as a sparse matrice. More... | |
template<typename T > | |
Sparse< t_complex > | convert_sparse (const Eigen::MatrixBase< T > &M, const t_real &threshold=0.) |
Convert from dense to sparse. More... | |
template<typename T > | |
t_real | sparsify_row_thres (const Eigen::SparseMatrixBase< T > &row, const t_real &energy) |
Returns threshold to keep a fraction of energy in the sparse row. More... | |
template<typename T > | |
t_real | sparsify_row_dense_thres (const Eigen::MatrixBase< T > &row, const t_real &energy) |
Returns threshold to keep a fraction of energy in the dense row. More... | |
template<class T > | |
Sparse< t_complex > | row_wise_convolution (const Sparse< t_complex > &Grid_, const Sparse< T > &chirp_, const t_uint &x_size, const t_uint &y_size) |
Perform convolution with gridding matrix row and chirp matrix row. More... | |
t_real | sparsity_sp (const Sparse< t_complex > &Gmat) |
return fraction of non zero values from sparse matrix More... | |
t_real | sparsity_im (const Image< t_complex > &Cmat) |
return faction of non zero values from matrix More... | |
t_real | upsample_ratio_sim (const utilities::vis_params &uv_vis, const t_real &L, const t_real &M, const t_int &x_size, const t_int &y_size, const t_int &multipleOf) |
Calculate upsample ratio from bandwidth (only needed for simulations) More... | |
template<class T > | |
Sparse< t_complex > | row_wise_sparse_convolution (const Sparse< t_complex > &Grid_, const Sparse< T > &chirp_, const t_uint &x_size, const t_uint &y_size) |
Sparse< t_complex > purify::wproj_utilities::convert_sparse | ( | const Eigen::MatrixBase< T > & | M, |
const t_real & | threshold = 0. |
||
) |
Convert from dense to sparse.
Definition at line 90 of file wproj_utilities.h.
Referenced by create_chirp_row(), and row_wise_convolution().
Sparse< t_complex > purify::wproj_utilities::create_chirp_row | ( | const t_real & | w_rate, |
const t_real & | cell_x, | ||
const t_real & | cell_y, | ||
const t_uint & | ftsizev, | ||
const t_uint & | ftsizeu, | ||
const t_real & | energy_fraction, | ||
const sopt::OperatorFunction< Vector< t_complex >> & | fftop | ||
) |
Generates row of chirp matrix from image of chirp.
Definition at line 110 of file wproj_utilities.cc.
References generate_chirp().
Referenced by wprojection_matrix().
Sparse< t_complex > purify::wproj_utilities::create_chirp_row | ( | const Vector< t_complex > & | chirp_image, |
const t_real & | energy_fraction, | ||
const sopt::OperatorFunction< Vector< t_complex >> & | fftop | ||
) |
Definition at line 119 of file wproj_utilities.cc.
References convert_sparse(), and sparsify_row_dense_thres().
std::tuple< t_real, t_real > purify::wproj_utilities::fov_cosines | ( | t_real const & | cell_x, |
t_real const & | cell_y, | ||
t_uint const & | x_size, | ||
t_uint const & | y_size | ||
) |
Work out max L and M directional cosines from image parameters.
Definition at line 37 of file wproj_utilities.cc.
References purify::constant::pi.
Referenced by generate_dde().
Matrix< t_complex > purify::wproj_utilities::generate_chirp | ( | const std::function< t_complex(t_real, t_real)> & | dde, |
const t_real & | w_rate, | ||
const t_real & | cell_x, | ||
const t_real & | cell_y, | ||
const t_uint & | x_size, | ||
const t_uint & | y_size | ||
) |
Definition at line 76 of file wproj_utilities.cc.
References generate_dde(), purify::I, and purify::constant::pi.
Referenced by create_chirp_row(), and generate_chirp().
Matrix< t_complex > purify::wproj_utilities::generate_chirp | ( | const t_real & | w_rate, |
const t_real & | cell_x, | ||
const t_real & | cell_y, | ||
const t_uint & | x_size, | ||
const t_uint & | y_size | ||
) |
Generates image of chirp.
Definition at line 99 of file wproj_utilities.cc.
References generate_chirp().
Matrix< t_complex > purify::wproj_utilities::generate_dde | ( | const std::function< t_complex(t_real, t_real)> & | dde, |
const t_real & | cell_x, | ||
const t_real & | cell_y, | ||
const t_uint & | x_size, | ||
const t_uint & | y_size | ||
) |
Generate image of DDE for A or W projection.
Definition at line 51 of file wproj_utilities.cc.
References fov_cosines().
Referenced by generate_chirp().
Sparse< t_complex > purify::wproj_utilities::generate_vect | ( | const t_uint & | x_size, |
const t_uint & | y_size, | ||
const t_real & | sigma, | ||
const t_real & | mean | ||
) |
Genereates an image of a Gaussian as a sparse matrice.
Definition at line 213 of file wproj_utilities.cc.
References purify::I.
t_real purify::wproj_utilities::mr_metric | ( | const Image< t_real > & | model, |
const Image< t_real > & | solution | ||
) |
Sparse< t_complex > purify::wproj_utilities::row_wise_convolution | ( | const Sparse< t_complex > & | Grid_, |
const Sparse< T > & | chirp_, | ||
const t_uint & | x_size, | ||
const t_uint & | y_size | ||
) |
Perform convolution with gridding matrix row and chirp matrix row.
Definition at line 187 of file wproj_utilities.h.
References convert_sparse(), purify::utilities::ind2sub(), purify::utilities::mod(), and purify::utilities::sub2ind().
Sparse<t_complex> purify::wproj_utilities::row_wise_sparse_convolution | ( | const Sparse< t_complex > & | Grid_, |
const Sparse< T > & | chirp_, | ||
const t_uint & | x_size, | ||
const t_uint & | y_size | ||
) |
Definition at line 223 of file wproj_utilities.h.
References purify::utilities::ind2sub(), purify::utilities::mod(), and purify::utilities::sub2ind().
Referenced by wprojection_matrix().
t_real purify::wproj_utilities::snr_metric | ( | const Image< t_real > & | model, |
const Image< t_real > & | solution | ||
) |
SNR calculation.
Definition at line 190 of file wproj_utilities.cc.
t_real purify::wproj_utilities::sparsify_row_dense_thres | ( | const Eigen::MatrixBase< T > & | row, |
const t_real & | energy | ||
) |
Returns threshold to keep a fraction of energy in the dense row.
Definition at line 147 of file wproj_utilities.h.
Referenced by create_chirp_row().
t_real purify::wproj_utilities::sparsify_row_thres | ( | const Eigen::SparseMatrixBase< T > & | row, |
const t_real & | energy | ||
) |
Returns threshold to keep a fraction of energy in the sparse row.
Definition at line 102 of file wproj_utilities.h.
Referenced by wprojection_matrix().
t_real purify::wproj_utilities::sparsity_im | ( | const Image< t_complex > & | Cmat | ) |
return faction of non zero values from matrix
t_real purify::wproj_utilities::sparsity_sp | ( | const Sparse< t_complex > & | Gmat | ) |
return fraction of non zero values from sparse matrix
t_real purify::wproj_utilities::upsample_ratio_sim | ( | const utilities::vis_params & | uv_vis, |
const t_real & | L, | ||
const t_real & | M, | ||
const t_int & | x_size, | ||
const t_int & | y_size, | ||
const t_int & | multipleOf | ||
) |
Calculate upsample ratio from bandwidth (only needed for simulations)
std::vector<t_uint> purify::wproj_utilities::w_rows | ( | const Sparse< t_complex > & | w_degrider | ) |
Definition at line 22 of file wproj_utilities.cc.
Sparse< t_complex > purify::wproj_utilities::wprojection_matrix | ( | const Sparse< t_complex > & | G, |
const t_uint & | x_size, | ||
const t_uint & | y_size, | ||
const Vector< t_real > & | w_components, | ||
const t_real & | cell_x, | ||
const t_real & | cell_y, | ||
const t_real & | energy_fraction_chirp, | ||
const t_real & | energy_fraction_wproj, | ||
const expansions::series | series, | ||
const t_uint | order, | ||
const t_real & | interpolation_error | ||
) |
Produce Gridding matrix convovled with chirp matrix for wprojection.
Definition at line 132 of file wproj_utilities.cc.
References create_chirp_row(), purify::operators::measure, PURIFY_DEBUG, PURIFY_HIGH_LOG, row_wise_sparse_convolution(), and sparsify_row_thres().