00001 // This is gel/vmal/vmal_kl_params.cxx 00002 #include "vmal_kl_params.h" 00003 00004 vmal_kl_params::vmal_kl_params() 00005 { 00006 set_defaults(); 00007 } 00008 00009 vmal_kl_params::~vmal_kl_params() 00010 { 00011 } 00012 00013 vmal_kl_params::vmal_kl_params(const vmal_kl_params & params) 00014 { 00015 // A faire 00016 numpoints =params.numpoints; 00017 search_range = params.search_range ; 00018 00019 mindist = params.mindist; 00020 window_width = params.window_width; 00021 window_height = params.window_height; 00022 min_eigenvalue = params.min_eigenvalue; 00023 min_determinant = params.min_determinant; 00024 min_displacement = params.min_displacement; 00025 max_iterations = params.max_iterations; 00026 max_residue = params.max_residue; 00027 grad_sigma = params.grad_sigma; 00028 smooth_sigma_fact = params.smooth_sigma_fact; 00029 pyramid_sigma_fact = params.pyramid_sigma_fact; 00030 replaceLostPoints = params.replaceLostPoints; 00031 sequentialMode = params.sequentialMode; 00032 smoothBeforeSelecting = params.smoothBeforeSelecting; 00033 writeInternalImages = params.writeInternalImages; 00034 nSkippedPixels = params.nSkippedPixels; 00035 verbose = params.verbose; 00036 } 00037 00038 00039 void vmal_kl_params::set_defaults() 00040 { 00041 numpoints = 100; 00042 search_range = 15; 00043 00044 mindist = 10; 00045 window_width = 7; 00046 window_height = 7; 00047 min_eigenvalue = 1; 00048 min_determinant = (float)0.01; 00049 min_displacement = (float)0.1; 00050 max_iterations = 10; 00051 max_residue = 10.0; 00052 grad_sigma = 1.0; 00053 smooth_sigma_fact = (float)0.1; 00054 pyramid_sigma_fact = (float)0.9; 00055 replaceLostPoints = true; 00056 sequentialMode = false; 00057 smoothBeforeSelecting = true; 00058 writeInternalImages = false; 00059 nSkippedPixels = 0; 00060 verbose = true; 00061 } 00062