KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nedget.h
Go to the documentation of this file.
1 
15 /*
16  * $Id: nedget.h 17601 2014-09-25 22:40:22Z predoehl $
17  */
18 
19 #ifndef NEDGET_H_UOFARIZONA_VISION
20 #define NEDGET_H_UOFARIZONA_VISION
21 
22 #include <m_cpp/m_matrix.h>
23 #include <string>
24 #include <deque>
25 
26 
27 namespace kjb
28 {
29 
30 const float NED_MISSING = -9999.0;
31 const float NED_MIN = -100;
32 const float NED_MAX = 7000;
33 
34 
36 {
40 };
41 
42 // call this if you KNOW the byteorder at compile time
43 int get_ned_fdeq( const std::string&, std::deque< float >*, bool );
44 
45 // call this if you don't know the byteorder early, or at all.
46 int get_ned_fdeq(
47  const std::string&,
48  std::deque< float >*,
50 );
51 
52 // reshape deque into a square matrix
53 int ned_fdeq_to_matrix( const std::deque< float >&, Matrix* );
54 
55 // call this if you know the byteorder at compile time
56 int get_ned_matrix( const std::string&, Matrix*, bool );
57 
58 // call this if you don't know the byteorder early, or at all.
59 int get_ned_matrix(
60  const std::string&,
61  Matrix*,
63 );
64 
65 
66 int autodetect_ned_byteorder(const std::string&, enum NED13_FLOAT_AUTODETECT*);
67 
68 
69 }
70 
71 #endif /* NEDGET_H_UOFARIZONA_VISION */
byteorder is LSB-first, like Intel
Definition: nedget.h:38
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
NED13_FLOAT_AUTODETECT
Definition: nedget.h:35
int autodetect_ned_byteorder(const std::string &fn, enum NED13_FLOAT_AUTODETECT *result)
attempt to determine the byteorder of the input file.
Definition: nedget.cpp:286
int get_ned_matrix(const std::string &fn, Matrix *omat, bool flip)
read the floating-point values of a NED13 file into a square matrix.
Definition: nedget.cpp:234
int ned_fdeq_to_matrix(const std::deque< float > &ibuf, Matrix *omat)
convert a deque of floats into a square kjb Matrix
Definition: nedget.cpp:188
int get_ned_fdeq(const std::string &fn, std::deque< float > *odq, bool flip)
read the floating-point values of a NED13 file into a deque.
Definition: nedget.cpp:118
byteorder is not known
Definition: nedget.h:39
byteorder is MSB-first, network order
Definition: nedget.h:37
const float NED_MAX
Mt. McKinley is 6194 meters elevation.
Definition: nedget.h:32
const float NED_MIN
Death Valley is -86 meters elevation.
Definition: nedget.h:31
const float NED_MISSING
sentinel for missing elevation data
Definition: nedget.h:30