contrib/gel/vmal/vmal_convert_vtol.h
Go to the documentation of this file.
00001 // This is gel/vmal/vmal_convert_vtol.h
00002 #ifndef vmal_convert_vtol_h_
00003 #define vmal_convert_vtol_h_
00004 //:
00005 // \file
00006 // \brief Toolbox to make conversion from vtol to vnl, vil1_image to vil1_memory_image
00007 // \author L. Guichard
00008 //------------------------------------------------------------------------------
00009 
00010 #include <vtol/vtol_vertex_2d_sptr.h>
00011 #include <vtol/vtol_edge_2d_sptr.h>
00012 
00013 #include <vnl/vnl_double_2.h>
00014 #include <vnl/vnl_double_3.h>
00015 
00016 #include <vil1/vil1_image.h>
00017 #include <vil1/vil1_memory_image_of.h>
00018 
00019 #include <vcl_vector.h>
00020 #include <vxl_config.h>
00021 
00022 void convert_lines_double_3(vcl_vector<vtol_edge_2d_sptr> in,
00023                             vnl_double_3 * &outp,
00024                             vnl_double_3 * &outq);
00025 
00026 void convert_points_vect_double_3(vcl_vector<vtol_vertex_2d_sptr> & in,
00027                                   vcl_vector<vnl_double_3> & out);
00028 
00029 void convert_points_double_3(vcl_vector<vtol_vertex_2d_sptr> in,
00030                              vnl_double_3 * &out);
00031 
00032 //Convert a vtol_edge_2d to two vnl_double_3 representing its end-points.
00033 void convert_line_double_3(vtol_edge_2d_sptr in,
00034                            vnl_double_3 &outp,
00035                            vnl_double_3 &outq);
00036 
00037 void convert_line_double_2(vtol_edge_2d_sptr in,
00038                            vnl_double_2 &outp,
00039                            vnl_double_2 &outq);
00040 
00041 void convert_point_double_3(vtol_vertex_2d_sptr in,
00042                             vnl_double_3 &out);
00043 
00044 void convert_grey_memory_image(const vil1_image & image,
00045                                vil1_memory_image_of<vxl_byte> &ima_mono);
00046 
00047 #endif // vmal_convert_vtol_h_