contrib/gel/mrc/vpgl/algo/vpgl_nitf_camera_coverage.h
Go to the documentation of this file.
00001 // This is gel/mrc/vpgl/algo/vpgl_nitf_camera_coverage.h
00002 #ifndef vpgl_nitf_camera_coverage_h_
00003 #define vpgl_nitf_camera_coverage_h_
00004 //:
00005 // \file
00006 // \brief A set of algorithms related to the area covered by a nitf camera
00007 // \author Isabel Restrepo (mir@lems.brown.edu)
00008 // \date August 08, 2008
00009 //
00010 #include <vcl_vector.h>
00011 #include <vcl_string.h>
00012 
00013 #include <vgl/vgl_point_2d.h>
00014 //:
00015 // There are several algorithms useful when determining which geografical regions
00016 // are covered by a set of cameras. This class contains a set of algorithms that
00017 // provides such answer in different ways.
00018 class vpgl_nitf_camera_coverage
00019 {
00020  public:
00021    vpgl_nitf_camera_coverage() {}
00022   ~vpgl_nitf_camera_coverage() {}
00023 
00024  //: Saves to an input file, the filenames of the NITF images which contain the specified geografic position.
00025  //  The inputs to this function are: A vector of vgl_point_3d<double> with the
00026  //  geographic points of interest (x-longitude, y-latitud, z-elevation). The filename of a
00027  //  file containing a list of NITF images to go through. A filename to write the image for which
00028  //  the points projects within the image
00029   static bool coverage_list(vcl_vector<vgl_point_2d<double> > geo_pts,
00030                             vcl_string camera_list,
00031                             vcl_string img_coverage_list);
00032 
00033   //: Saves an image where the areas covered by the cameras on the "camera_list" file are colored as red
00034   static bool compute_coverage_region(vcl_string camera_list, vcl_string out_imfile);
00035 };
00036 
00037 
00038 #endif // vpgl_nitf_camera_coverage_h_