|
Isis Developer Reference
|
Go to the documentation of this file.
15 #include "boost/numeric/ublas/symmetric.hpp"
16 #include "boost/numeric/ublas/io.hpp"
165 const boost::numeric::ublas::symmetric_matrix
166 <
double,boost::numeric::ublas::upper>& covar);
174 const boost::numeric::ublas::symmetric_matrix
175 <
double,boost::numeric::ublas::upper>& covar);
184 const boost::numeric::ublas::symmetric_matrix<double,boost::numeric::ublas::upper>& covar);
194 const boost::numeric::ublas::symmetric_matrix<double,boost::numeric::ublas::upper>& covar,
208 const boost::numeric::ublas::symmetric_matrix
209 <
double,boost::numeric::ublas::upper>& covar);
215 const boost::numeric::ublas::symmetric_matrix<double,boost::numeric::ublas::upper>& covar,
232 const boost::numeric::ublas::symmetric_matrix<double,boost::numeric::ublas::upper>& covar);
254 boost::numeric::ublas::symmetric_matrix<double,boost::numeric::ublas::upper>
267 boost::numeric::ublas::symmetric_matrix
286 const Distance &sphereRadius)
const;
299 void ComputeLocalRadius();
300 void InitCovariance();
304 void FreeAllocatedMemory();
311 boost::numeric::ublas::symmetric_matrix
312 <double,boost::numeric::ublas::upper> *p_rectCovar;
314 boost::numeric::ublas::symmetric_matrix
315 <double,boost::numeric::ublas::upper> *p_sphereCovar;
double kilometers() const
Get the distance in kilometers.
Definition: Distance.cpp:106
bool operator==(const SurfacePoint &other) const
Definition: SurfacePoint.cpp:1929
void SetRectangular(const Displacement x, const Displacement y, const Displacement z, const boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > &covar)
void SetRectangular(const Displacement &x, const Displacement &y, const Displacement &z, const Distance &xSigma=Distance(), const Distance &ySigma=Distance(), const Distance &zSigma=Distance())
Set surface point in rectangular body-fixed coordinates wtih optional sigmas.
Definition: SurfacePoint.cpp:283
double MetersToLatitude(double latLength)
This method returns an angular measure of a distance in the direction of and relative to the latitude...
Definition: SurfacePoint.cpp:1248
~SurfacePoint()
Destroys a SurfacePoint object/.
Definition: SurfacePoint.cpp:186
double LonToDouble(Longitude lon, CoordUnits units)
This method returns a double version of a Longitude in the specified units.
Definition: SurfacePoint.cpp:1415
Displacement GetX() const
Definition: SurfacePoint.cpp:1436
boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > GetSphericalMatrix(SurfacePoint::CoordUnits units=SurfacePoint::Meters) const
Definition: SurfacePoint.cpp:1785
const double PI
The mathematical constant PI.
Definition: Constants.h:40
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:51
void SetSpherical(const Latitude &lat, const Longitude &lon, const Distance &radius, const Angle &latSigma=Angle(), const Angle &lonSigma=Angle(), const Distance &radiusSigma=Distance())
Set surface point and covariance matrix in planetocentric coordinates and convert to rectangular (Lat...
Definition: SurfacePoint.cpp:518
double GetSigma(CoordinateType type, CoordIndex index, CoordUnits units)
This method returns a sigma of a SurfacePoint coordinate.
Definition: SurfacePoint.cpp:1029
Distance GetLonSigmaDistance() const
Return the longitude sigma in meters.
Definition: SurfacePoint.cpp:1763
Distance GetDistanceToPoint(const SurfacePoint &other) const
Computes and returns the distance between two surface points.
Definition: SurfacePoint.cpp:1880
Distance GetLatSigmaDistance() const
Return the latitude sigma as a Distance.
Definition: SurfacePoint.cpp:1747
void SetRectangularCoordinates(const Displacement &x, const Displacement &y, const Displacement &z)
Set surface point in rectangular coordinates.
Definition: SurfacePoint.cpp:327
double GetZWeight() const
Return Z weight for bundle adjustment Units are 1/(kilometers)^2.
Definition: SurfacePoint.cpp:1589
double GetYWeight() const
Return Y weight for bundle adjustment Units are 1/(kilometers)^2.
Definition: SurfacePoint.cpp:1571
void SetRectangularMatrix(const boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > &covar, SurfacePoint::CoordUnits units=SurfacePoint::Meters)
Set rectangular covariance matrix and store in units of km**2.
Definition: SurfacePoint.cpp:376
@ Two
Definition: SurfacePoint.h:151
void SetSphericalMatrix(const boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > &covar, SurfacePoint::CoordUnits units=SurfacePoint::Meters)
Set spherical covariance matrix.
Definition: SurfacePoint.cpp:637
Distance GetXSigma() const
Definition: SurfacePoint.cpp:1457
Displacement GetZ() const
Definition: SurfacePoint.cpp:1450
@ Radians
Definition: SurfacePoint.h:147
Latitude GetLatitude() const
Return the body-fixed latitude for the surface point.
Definition: SurfacePoint.cpp:1665
@ Three
Definition: SurfacePoint.h:152
Distance GetZSigma() const
Definition: SurfacePoint.cpp:1471
void ResetLocalRadius(const Distance &radius)
This method resets the local radius of a SurfacePoint.
Definition: SurfacePoint.cpp:914
boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > GetRectangularMatrix(SurfacePoint::CoordUnits units=SurfacePoint::Meters) const
Definition: SurfacePoint.cpp:1603
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
static QString coordinateTypeToString(CoordinateType type)
Converts the given SurfacePoint::CoordinateType enumeration to a string.
Definition: SurfacePoint.cpp:1389
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
std::vector< double > LatitudinalDerivative(CoordIndex index)
Compute partial derivative of the conversion of the latitudinal coordinates to body-fixed rectangular...
Definition: SurfacePoint.cpp:798
void SetRectangularSigmas(const Distance &xSigma, const Distance &ySigma, const Distance &zSigma)
Set surface point and sigmas in rectangular coordinates and convert to planetocentric.
Definition: SurfacePoint.cpp:350
double GetCoord(CoordinateType type, CoordIndex index, CoordUnits units)
This method returns a coordinate of a SurfacePoint.
Definition: SurfacePoint.cpp:962
Distance measurement, usually in meters.
Definition: Distance.h:34
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:40
double LongitudeToMeters(double longitude) const
This method returns a length in meters version of a delta longitude angle in radians relative to the ...
Definition: SurfacePoint.cpp:1336
@ Kilometers
Definition: SurfacePoint.h:145
std::vector< double > RectangularDerivative(CoordIndex index)
Compute partial derivative of the body-fixed rectangular coordinates with respect to the indicated co...
Definition: SurfacePoint.cpp:840
Displacement is a signed length, usually in meters.
Definition: Displacement.h:31
double DisplacementToDouble(Displacement disp, CoordUnits units)
This method returns a double version of a Displacement in the specified units.
Definition: SurfacePoint.cpp:1160
void SetMatrix(CoordinateType type, const boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > &covar)
Set the covariance matrix.
Definition: SurfacePoint.cpp:749
double meters() const
Get the displacement in meters.
Definition: Displacement.cpp:73
@ Rectangular
Body-fixed rectangular x/y/z coordinates.
Definition: SurfacePoint.h:141
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
CoordinateType
Defines the coordinate typ, units, and coordinate index for some of the output methods.
Definition: SurfacePoint.h:139
bool Valid() const
Definition: SurfacePoint.cpp:947
double GetLocalRadiusWeight() const
Return radius weight for bundle adjustment Units are 1/(kilometers)^2.
Definition: SurfacePoint.cpp:1864
double LatToDouble(Latitude lat, CoordUnits units)
This method returns a double version of a Latitude in the specified units.
Definition: SurfacePoint.cpp:1216
double LatitudeToMeters(double latitude) const
This method returns a Displacement of an Angle relative to the current SurfacePoint latitude.
Definition: SurfacePoint.cpp:1310
@ One
Definition: SurfacePoint.h:150
double MetersToLongitude(double lonLength)
This method returns an angular measure in radians of a distance in the direction of and relative to t...
Definition: SurfacePoint.cpp:1276
bool isValid() const
Test if this distance has been initialized or not.
Definition: Distance.cpp:192
void FromNaifArray(const double naifValues[3])
A naif array is a c-style array of size 3.
Definition: SurfacePoint.cpp:891
@ Meters
Definition: SurfacePoint.h:146
Isis exception class.
Definition: IException.h:91
std::vector< double > Partial(CoordinateType type, CoordIndex index)
Compute partial derivative of conversion from body-fixed coordinates to the specified.
Definition: SurfacePoint.cpp:773
static CoordinateType stringToCoordinateType(QString type)
This method converts the given string value to a SurfacePoint::CoordinateType enumeration.
Definition: SurfacePoint.cpp:1363
Distance GetYSigma() const
Definition: SurfacePoint.cpp:1464
Defines an angle and provides unit conversions.
Definition: Angle.h:45
void SetSpherical(const Latitude &lat, const Longitude &lon, const Distance &radius, const boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > &covar)
double GetXWeight() const
Return X weight for bundle adjustment Units are 1/(kilometers)^2.
Definition: SurfacePoint.cpp:1553
SurfacePoint()
Constructs an empty SurfacePoint object.
Definition: SurfacePoint.cpp:26
Longitude GetLongitude() const
Return the body-fixed longitude for the surface point.
Definition: SurfacePoint.cpp:1685
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
double kilometers() const
Get the displacement in kilometers.
Definition: Displacement.cpp:94
SurfacePoint(const Latitude &lat, const Longitude &lon, const Distance &radius, const boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > &covar)
Distance GetLocalRadius() const
Return the radius of the surface point.
Definition: SurfacePoint.cpp:1732
Namespace for the standard library.
void SetSphericalCoordinates(const Latitude &lat, const Longitude &lon, const Distance &radius)
Update spherical coordinates (lat/lon/radius)
Definition: SurfacePoint.cpp:553
bool isValid() const
This indicates whether we have a legitimate angle stored or are in an unset, or invalid,...
Definition: Angle.cpp:95
CoordUnits
Definition: SurfacePoint.h:143
double meters() const
Get the distance in meters.
Definition: Distance.cpp:85
Angle GetLatSigma() const
Definition: SurfacePoint.cpp:1645
void ToNaifArray(double naifOutput[3]) const
A naif array is a c-style array of size 3.
Definition: SurfacePoint.cpp:870
double GetLonWeight() const
Return longitude weight for bundle adjustment Units are 1/(radians)^2.
Definition: SurfacePoint.cpp:1848
Distance GetSigmaDistance(CoordinateType type, CoordIndex index)
This method returns a sigma of a SurfacePoint coordinate as a Distance.
Definition: SurfacePoint.cpp:1094
Angle GetLonSigma() const
Definition: SurfacePoint.cpp:1653
double DistanceToDouble(Distance dist, CoordUnits units)
This method returns a double version of a Distance in the specified units.
Definition: SurfacePoint.cpp:1188
@ Latitudinal
Planetocentric latitudinal (lat/lon/rad) coordinates.
Definition: SurfacePoint.h:140
Adds specific functionality to C++ strings.
Definition: IString.h:165
CoordIndex
Definition: SurfacePoint.h:149
void SetSphericalSigmas(const Angle &latSigma, const Angle &lonSigma, const Distance &radiusSigma)
Set the spherical sigmas into the spherical variance/covariance matrix in diagonal units of radians^2...
Definition: SurfacePoint.cpp:573
void SetSphericalSigmasDistance(const Distance &latSigma, const Distance &lonSigma, const Distance &radiusSigma)
Set the spherical sigmas (in Distance units) into the spherical variance/covariance matrix.
Definition: SurfacePoint.cpp:617
double GetLatWeight() const
Return latitude weight for bundle adjustment Units are 1/(radians)^2.
Definition: SurfacePoint.cpp:1832
@ Degrees
Definition: SurfacePoint.h:144
double GetWeight(CoordinateType type, CoordIndex index)
This method returns the weight of a SurfacePoint coordinate Note: At this time a units argument is no...
Definition: SurfacePoint.cpp:1491
SurfacePoint & operator=(const SurfacePoint &other)
Definition: SurfacePoint.cpp:1970
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:132
Displacement GetY() const
Definition: SurfacePoint.cpp:1443
Distance GetLocalRadiusSigma() const
Definition: SurfacePoint.cpp:1776
SurfacePoint(const Displacement &x, const Displacement &y, const Displacement &z, const boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > &covar)
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
double radians() const
Convert an angle to a double.
Definition: Angle.h:226