#include <sdet_denoise_mrf_bp.h>
Public Member Functions | |
sdet_denoise_mrf_bp (sdet_denoise_mrf_bp_params &imp) | |
Constructors/destructor. | |
~sdet_denoise_mrf_bp () | |
void | set_image (vil_image_resource_sptr const &resource) |
Process methods. | |
void | set_variance (vil_image_resource_sptr const &var_resc) |
bool | denoise () |
the full denoising process. | |
vil_image_resource_sptr | output () |
Accessors. | |
bool | output_valid () const |
sdet_mrf_bp_sptr | mrf () |
Internals (for debug purposes). | |
bool | SanityCheck () |
Checks that parameters are within acceptable bounds. | |
void | ref () |
void | unref () |
int | get_references () const |
bool | is_referenced () const |
Public Attributes | |
unsigned | n_labels_ |
unsigned | n_iter_ |
unsigned | pyramid_levels_ |
float | discontinuity_cost_ |
float | truncation_cost_ |
float | kappa_ |
float | lambda_ |
Protected Member Functions | |
sdet_mrf_bp_sptr | pyramid_upsample (sdet_mrf_bp_sptr const &in_mrf, unsigned level) |
upsample the messages from a mrf by a factor of two. | |
void | InitParams (unsigned n_labels, unsigned n_iter, unsigned pyramid_levels, float discontinuity_cost, float truncation_cost, float kappa, float lambda) |
Protected Attributes | |
bool | output_valid_ |
process state flag | |
bool | use_var_ |
vil_pyramid_image_view< float > | pyr_in_ |
vil_pyramid_image_view< float > | pyr_var_ |
vil_image_resource_sptr | out_resc_ |
sdet_mrf_bp_sptr | mrf_ |
Friends | |
vcl_ostream & | operator<< (vcl_ostream &os, const sdet_denoise_mrf_bp_params &imp) |
Definition at line 48 of file sdet_denoise_mrf_bp.h.
sdet_denoise_mrf_bp::sdet_denoise_mrf_bp | ( | sdet_denoise_mrf_bp_params & | imp | ) |
Constructors/destructor.
Definition at line 13 of file sdet_denoise_mrf_bp.cxx.
sdet_denoise_mrf_bp::~sdet_denoise_mrf_bp | ( | ) |
Definition at line 18 of file sdet_denoise_mrf_bp.cxx.
bool sdet_denoise_mrf_bp::denoise | ( | ) |
the full denoising process.
Definition at line 37 of file sdet_denoise_mrf_bp.cxx.
void sdet_denoise_mrf_bp_params::InitParams | ( | unsigned | n_labels, |
unsigned | n_iter, | ||
unsigned | pyramid_levels, | ||
float | discontinuity_cost, | ||
float | truncation_cost, | ||
float | kappa, | ||
float | lambda | ||
) | [protected, inherited] |
Definition at line 36 of file sdet_denoise_mrf_bp_params.cxx.
sdet_mrf_bp_sptr sdet_denoise_mrf_bp::mrf | ( | ) | [inline] |
Internals (for debug purposes).
Definition at line 67 of file sdet_denoise_mrf_bp.h.
vil_image_resource_sptr sdet_denoise_mrf_bp::output | ( | ) | [inline] |
Accessors.
Definition at line 63 of file sdet_denoise_mrf_bp.h.
bool sdet_denoise_mrf_bp::output_valid | ( | ) | const [inline] |
Definition at line 64 of file sdet_denoise_mrf_bp.h.
sdet_mrf_bp_sptr sdet_denoise_mrf_bp::pyramid_upsample | ( | sdet_mrf_bp_sptr const & | in_mrf, |
unsigned | level | ||
) | [protected] |
upsample the messages from a mrf by a factor of two.
level
is the pyramid level of the input mrf. the returned mrf is at the next higher resolution level of the pyramid. the prior messages of the returned mrf are initialized be the message values of in_mrf.
Definition at line 76 of file sdet_denoise_mrf_bp.cxx.
bool sdet_denoise_mrf_bp_params::SanityCheck | ( | ) | [inherited] |
Checks that parameters are within acceptable bounds.
Definition at line 52 of file sdet_denoise_mrf_bp_params.cxx.
void sdet_denoise_mrf_bp::set_image | ( | vil_image_resource_sptr const & | resource | ) |
Process methods.
Definition at line 23 of file sdet_denoise_mrf_bp.cxx.
void sdet_denoise_mrf_bp::set_variance | ( | vil_image_resource_sptr const & | var_resc | ) |
Definition at line 29 of file sdet_denoise_mrf_bp.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | os, |
const sdet_denoise_mrf_bp_params & | imp | ||
) | [friend, inherited] |
Definition at line 104 of file sdet_denoise_mrf_bp_params.cxx.
float sdet_denoise_mrf_bp_params::discontinuity_cost_ [inherited] |
Definition at line 44 of file sdet_denoise_mrf_bp_params.h.
float sdet_denoise_mrf_bp_params::kappa_ [inherited] |
Definition at line 46 of file sdet_denoise_mrf_bp_params.h.
float sdet_denoise_mrf_bp_params::lambda_ [inherited] |
Definition at line 47 of file sdet_denoise_mrf_bp_params.h.
sdet_mrf_bp_sptr sdet_denoise_mrf_bp::mrf_ [protected] |
Definition at line 87 of file sdet_denoise_mrf_bp.h.
unsigned sdet_denoise_mrf_bp_params::n_iter_ [inherited] |
Definition at line 42 of file sdet_denoise_mrf_bp_params.h.
unsigned sdet_denoise_mrf_bp_params::n_labels_ [inherited] |
Definition at line 41 of file sdet_denoise_mrf_bp_params.h.
Definition at line 86 of file sdet_denoise_mrf_bp.h.
bool sdet_denoise_mrf_bp::output_valid_ [protected] |
process state flag
Definition at line 82 of file sdet_denoise_mrf_bp.h.
vil_pyramid_image_view<float> sdet_denoise_mrf_bp::pyr_in_ [protected] |
Definition at line 84 of file sdet_denoise_mrf_bp.h.
vil_pyramid_image_view<float> sdet_denoise_mrf_bp::pyr_var_ [protected] |
Definition at line 85 of file sdet_denoise_mrf_bp.h.
unsigned sdet_denoise_mrf_bp_params::pyramid_levels_ [inherited] |
Definition at line 43 of file sdet_denoise_mrf_bp_params.h.
float sdet_denoise_mrf_bp_params::truncation_cost_ [inherited] |
Definition at line 45 of file sdet_denoise_mrf_bp_params.h.
bool sdet_denoise_mrf_bp::use_var_ [protected] |
Definition at line 83 of file sdet_denoise_mrf_bp.h.