Go to the documentation of this file.00001
00002 #ifndef vmal_lines_corrletation_h_
00003 #define vmal_lines_corrletation_h_
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include <vnl/vnl_double_3.h>
00029 #include <vil1/vil1_memory_image_of.h>
00030 #include <vxl_config.h>
00031
00032 class vmal_lines_correlation
00033 {
00034 public:
00035 vmal_lines_correlation();
00036
00037 vmal_lines_correlation(int, double);
00038
00039 ~vmal_lines_correlation();
00040
00041 double find_min_corr(vnl_double_3 &line0p, vnl_double_3 &line0q,
00042 vnl_double_3 &line1p, vnl_double_3 &line1q,
00043 vil1_memory_image_of<vxl_byte> &image0,
00044 vil1_memory_image_of<vxl_byte> &image1,
00045 vnl_double_3 &trans);
00046
00047 double lines_correlation(vnl_double_3 &line0_p, vnl_double_3 &line0_q,
00048 vnl_double_3 &line1_p, vnl_double_3 &line1_q,
00049 vil1_memory_image_of<vxl_byte> &image0,
00050 vil1_memory_image_of<vxl_byte> &image1,
00051 vnl_double_3 &trans, int bias);
00052
00053 bool interpol_pixel(vnl_double_3 &pixel0, vnl_double_3 &pixel1,
00054 vil1_memory_image_of<vxl_byte> &image0,
00055 vil1_memory_image_of<vxl_byte> &image1,
00056 unsigned char &value0, unsigned char &value1);
00057
00058 private:
00059 int delta_;
00060 double radius_;
00061 };
00062
00063 #endif // vmal_lines_corrletation_h_