![]() |
PURIFY
Next-generation radio interferometric imaging
|
#include "purify/config.h"
#include <fstream>
#include <iostream>
#include "purify/types.h"
#include <random>
#include <set>
#include <stdio.h>
#include <string>
#include <time.h>
#include <Eigen/Sparse>
#include <sys/stat.h>
#include "purify/logging.h"
#include "purify/operators.h"
#include "purify/uvw_utilities.h"
Go to the source code of this file.
Namespaces | |
purify | |
purify::utilities | |
purify::wproj_utilities | |
Functions | |
vis_params | purify::utilities::sort_by_w (const vis_params &uv_data) |
Sort visibilities to be from w_max to w_min. More... | |
template<typename T > | |
t_real | purify::utilities::w_lambert (T x, const t_real &relative_difference) |
Calculate W Lambert function. More... | |
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. More... | |
template<typename T > | |
Sparse< t_complex > | purify::wproj_utilities::convert_sparse (const Eigen::MatrixBase< T > &M, const t_real &threshold=0.) |
Convert from dense to sparse. More... | |
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. More... | |
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. More... | |
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) |
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. More... | |
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) |
template<typename T > | |
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. More... | |
template<typename T > | |
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. More... | |
template<class T > | |
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. More... | |
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=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 | purify::wproj_utilities::snr_metric (const Image< t_real > &model, const Image< t_real > &solution) |
SNR calculation. More... | |
t_real | purify::wproj_utilities::mr_metric (const Image< t_real > &model, const Image< t_real > &solution) |
MR calculation. More... | |
t_real | purify::wproj_utilities::sparsity_sp (const Sparse< t_complex > &Gmat) |
return fraction of non zero values from sparse matrix More... | |
t_real | purify::wproj_utilities::sparsity_im (const Image< t_complex > &Cmat) |
return faction of non zero values from matrix More... | |
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. More... | |
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) More... | |
template<class T > | |
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) |
template<typename T > | |
t_real | purify::utilities::w_lambert (const T &x, const t_real &relative_difference=1e-8) |