[8db413]: contrib / brl / bbas / bwm / algo / bwm_satellite_resources.h Maximize Restore History

Download this file

bwm_satellite_resources.h    47 lines (37 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef bwm_satellite_resources_h_
#define bwm_satellite_resources_h_
//:
// \file
// A class in the form of a quad tree to store/access all the satellite image resources
// other utilities using this class, e.g. to generate site.xml files to open in bwm_main
//
// Author Ozge C. Ozcanli
// \date Aug 09, 2013
//
//======================================================================
#include <vcl_string.h>
#include <vbl/vbl_ref_count.h>
#include <vcl_vector.h>
#include <vgl/vgl_box_2d.h>
#include <volm/volm_geo_index2_sptr.h>
class bwm_satellite_resource
{
public:
bwm_satellite_resource() : full_path_(""), name_(""), cloud_coverage_(-1.0f), full_path_mul_pair_(""), sat_name_("") {}
public:
vcl_string full_path_;
vcl_string name_;
float cloud_coverage_;
vgl_box_2d<double> extent_; // using wgs84
vcl_string full_path_mul_pair_;
vcl_string sat_name_; // e.g. ikonos, wv2, etc.
};
// traverse the path recursively and construct a satellite resource for each .nitf file in the folder for a given lat-lon bounding box
class bwm_satellite_resources : public vbl_ref_count
{
public:
bwm_satellite_resources(vcl_string path, double lower_left_lat, double lower_left_lon, double upper_right_lat, double upper_right_lon);
public:
volm_geo_index2_node_sptr root_;
};
#endif