#include <sdet_denoise_mrf.h>
Public Member Functions | |
sdet_denoise_mrf (sdet_denoise_mrf_params &imp) | |
~sdet_denoise_mrf () | |
void | set_image (vil_image_resource_sptr const &resource) |
void | set_variance (vil_image_resource_sptr const &var_resc) |
void | compute_incidence_matrix () |
construct the mrf graph incidence matrix (no output image). | |
bool | denoise () |
the full denoising process. | |
vil_image_resource_sptr | output () |
bool | output_valid () const |
vnl_sparse_matrix< double > & | incidence_matrix () |
vnl_sparse_matrix< double > & | diag_matrix () |
vil_image_resource_sptr | Dimgr () |
vnl_sparse_matrix< double > & | diag_inv_sqrt () |
vnl_sparse_matrix< double > & | L () |
vnl_vector< double > & | F () |
bool | SanityCheck () |
Checks that parameters are within acceptable bounds. | |
void | ref () |
void | unref () |
int | get_references () const |
bool | is_referenced () const |
Public Attributes | |
double | radius_ |
MRF neighborhood radius. | |
double | kappa_ |
parameter for variance weight | |
double | beta_ |
parameter for height difference weight | |
Protected Member Functions | |
double | weight (unsigned i0, unsigned j0, unsigned i1, unsigned j1, vil_image_view< float > const &depth, vil_image_view< float > const &varv) |
compute the clique energy weight between two image locations. | |
void | compute_laplacian_matrix () |
the "L" matrix. | |
void | compute_F () |
the solution vector. | |
void | InitParams (double radius, double kappa, double beta) |
Protected Attributes | |
bool | output_valid_ |
double | sigma_sq_inv_ |
vil_image_resource_sptr | in_resc_ |
vil_image_resource_sptr | var_resc_ |
vil_image_resource_sptr | out_resc_ |
vnl_sparse_matrix< double > | W_mat_ |
vnl_sparse_matrix< double > | D_mat_ |
vnl_sparse_matrix< double > | D_inv_sqrt_ |
vnl_sparse_matrix< double > | L_mat_ |
vnl_sparse_matrix< double > | inv_mat_ |
vnl_vector< double > | F_ |
Friends | |
vcl_ostream & | operator<< (vcl_ostream &os, const sdet_denoise_mrf_params &imp) |
Definition at line 40 of file sdet_denoise_mrf.h.
sdet_denoise_mrf::sdet_denoise_mrf | ( | sdet_denoise_mrf_params & | imp | ) |
Definition at line 17 of file sdet_denoise_mrf.cxx.
sdet_denoise_mrf::~sdet_denoise_mrf | ( | ) |
Definition at line 27 of file sdet_denoise_mrf.cxx.
void sdet_denoise_mrf::compute_F | ( | ) | [protected] |
the solution vector.
Definition at line 152 of file sdet_denoise_mrf.cxx.
void sdet_denoise_mrf::compute_incidence_matrix | ( | ) |
construct the mrf graph incidence matrix (no output image).
W and D are valid after construction
Definition at line 86 of file sdet_denoise_mrf.cxx.
void sdet_denoise_mrf::compute_laplacian_matrix | ( | ) | [protected] |
the "L" matrix.
Definition at line 146 of file sdet_denoise_mrf.cxx.
bool sdet_denoise_mrf::denoise | ( | ) |
the full denoising process.
Definition at line 176 of file sdet_denoise_mrf.cxx.
vnl_sparse_matrix<double>& sdet_denoise_mrf::diag_inv_sqrt | ( | ) | [inline] |
Definition at line 68 of file sdet_denoise_mrf.h.
vnl_sparse_matrix<double>& sdet_denoise_mrf::diag_matrix | ( | ) | [inline] |
Definition at line 66 of file sdet_denoise_mrf.h.
vil_image_resource_sptr sdet_denoise_mrf::Dimgr | ( | ) |
Definition at line 131 of file sdet_denoise_mrf.cxx.
vnl_vector<double>& sdet_denoise_mrf::F | ( | ) | [inline] |
Definition at line 70 of file sdet_denoise_mrf.h.
vnl_sparse_matrix<double>& sdet_denoise_mrf::incidence_matrix | ( | ) | [inline] |
Definition at line 65 of file sdet_denoise_mrf.h.
void sdet_denoise_mrf_params::InitParams | ( | double | radius, |
double | kappa, | ||
double | beta | ||
) | [protected, inherited] |
Definition at line 28 of file sdet_denoise_mrf_params.cxx.
vnl_sparse_matrix<double>& sdet_denoise_mrf::L | ( | ) | [inline] |
Definition at line 69 of file sdet_denoise_mrf.h.
vil_image_resource_sptr sdet_denoise_mrf::output | ( | ) | [inline] |
Definition at line 63 of file sdet_denoise_mrf.h.
bool sdet_denoise_mrf::output_valid | ( | ) | const [inline] |
Definition at line 64 of file sdet_denoise_mrf.h.
bool sdet_denoise_mrf_params::SanityCheck | ( | ) | [inherited] |
Checks that parameters are within acceptable bounds.
Definition at line 40 of file sdet_denoise_mrf_params.cxx.
void sdet_denoise_mrf::set_image | ( | vil_image_resource_sptr const & | resource | ) | [inline] |
Definition at line 50 of file sdet_denoise_mrf.h.
void sdet_denoise_mrf::set_variance | ( | vil_image_resource_sptr const & | var_resc | ) | [inline] |
Definition at line 51 of file sdet_denoise_mrf.h.
double sdet_denoise_mrf::weight | ( | unsigned | i0, |
unsigned | j0, | ||
unsigned | i1, | ||
unsigned | j1, | ||
vil_image_view< float > const & | depth, | ||
vil_image_view< float > const & | varv | ||
) | [protected] |
compute the clique energy weight between two image locations.
Definition at line 31 of file sdet_denoise_mrf.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | os, |
const sdet_denoise_mrf_params & | imp | ||
) | [friend, inherited] |
Definition at line 69 of file sdet_denoise_mrf_params.cxx.
double sdet_denoise_mrf_params::beta_ [inherited] |
parameter for height difference weight
Definition at line 37 of file sdet_denoise_mrf_params.h.
vnl_sparse_matrix<double> sdet_denoise_mrf::D_inv_sqrt_ [protected] |
Definition at line 93 of file sdet_denoise_mrf.h.
vnl_sparse_matrix<double> sdet_denoise_mrf::D_mat_ [protected] |
Definition at line 92 of file sdet_denoise_mrf.h.
vnl_vector<double> sdet_denoise_mrf::F_ [protected] |
Definition at line 96 of file sdet_denoise_mrf.h.
vil_image_resource_sptr sdet_denoise_mrf::in_resc_ [protected] |
Definition at line 88 of file sdet_denoise_mrf.h.
vnl_sparse_matrix<double> sdet_denoise_mrf::inv_mat_ [protected] |
Definition at line 95 of file sdet_denoise_mrf.h.
double sdet_denoise_mrf_params::kappa_ [inherited] |
parameter for variance weight
Definition at line 36 of file sdet_denoise_mrf_params.h.
vnl_sparse_matrix<double> sdet_denoise_mrf::L_mat_ [protected] |
Definition at line 94 of file sdet_denoise_mrf.h.
vil_image_resource_sptr sdet_denoise_mrf::out_resc_ [protected] |
Definition at line 90 of file sdet_denoise_mrf.h.
bool sdet_denoise_mrf::output_valid_ [protected] |
Definition at line 86 of file sdet_denoise_mrf.h.
double sdet_denoise_mrf_params::radius_ [inherited] |
MRF neighborhood radius.
Definition at line 35 of file sdet_denoise_mrf_params.h.
double sdet_denoise_mrf::sigma_sq_inv_ [protected] |
Definition at line 87 of file sdet_denoise_mrf.h.
vil_image_resource_sptr sdet_denoise_mrf::var_resc_ [protected] |
Definition at line 89 of file sdet_denoise_mrf.h.
vnl_sparse_matrix<double> sdet_denoise_mrf::W_mat_ [protected] |
Definition at line 91 of file sdet_denoise_mrf.h.