![]() |
SOPT
Sparse OPTimisation
|
Functions | |
cppflow::tensor | convert_image_to_tensor (sopt::Image< double > const &image, int image_rows, int image_cols) |
Converts a sopt::Image to a cppflow::tensor. More... | |
cppflow::tensor | convert_image_to_tensor (Image< std::complex< double >> const &image, int image_rows, int image_cols) |
cppflow::tensor | convert_image_to_tensor (sopt::Vector< double > const &image, int image_rows, int image_cols) |
Converts a sopt::Vector to a cppflow::tensor. More... | |
cppflow::tensor | convert_image_to_tensor (sopt::Vector< std::complex< double >> const &image, int image_rows, int image_cols) |
Eigen::Map< Eigen::Array< double, Eigen::Dynamic, Eigen::Dynamic > > | convert_tensor_to_image (std::vector< float > model_output, int image_rows, int image_cols) |
Convert a cppflow:tensor to an Eigen::Array. More... | |
Variables | |
constexpr double | imaginary_threshold = 1e-10 |
cppflow::tensor sopt::cppflowutils::convert_image_to_tensor | ( | Image< std::complex< double >> const & | image, |
int | image_rows, | ||
int | image_cols | ||
) |
Definition at line 33 of file cppflow_utils.cc.
References imaginary_threshold.
cppflow::tensor sopt::cppflowutils::convert_image_to_tensor | ( | Image< double > const & | image, |
int | image_rows, | ||
int | image_cols | ||
) |
cppflow::tensor sopt::cppflowutils::convert_image_to_tensor | ( | sopt::Vector< double > const & | image, |
int | image_rows, | ||
int | image_cols | ||
) |
Converts a sopt::Vector to a cppflow::tensor.
Definition at line 59 of file cppflow_utils.cc.
cppflow::tensor sopt::cppflowutils::convert_image_to_tensor | ( | sopt::Vector< std::complex< double >> const & | image, |
int | image_rows, | ||
int | image_cols | ||
) |
Definition at line 69 of file cppflow_utils.cc.
References imaginary_threshold.
Eigen::Map< Eigen::Array< double, Eigen::Dynamic, Eigen::Dynamic > > sopt::cppflowutils::convert_tensor_to_image | ( | std::vector< float > | model_output, |
int | image_rows, | ||
int | image_cols | ||
) |
Convert a cppflow:tensor to an Eigen::Array.
Definition at line 86 of file cppflow_utils.cc.
|
constexpr |
Definition at line 12 of file cppflow_utils.cc.
Referenced by convert_image_to_tensor().