Skip to content
Snippets Groups Projects
Select Git revision
  • 67e0d966e880d6ec86246c6dd386178253dc83a7
  • main default protected
  • oleg-alexandrov-patch-1
  • radtan
  • 2.0
  • Kelvinrr-patch-1
  • acpaquette-patch-1
  • gxp_testing
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • 1.7.0
  • 1.6.0
  • 1.5.2
  • 1.5.1
  • 1.5.0
  • 1.4.1
  • 1.4.0
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.1
  • 1.1.0
  • 1.0.0
24 results

UsgsAstroProjectedLsSensorModel.cpp

Blame
  • UsgsAstroProjectedLsSensorModel.cpp 33.34 KiB
    /** Copyright  © 2017-2022 BAE Systems Information and Electronic Systems Integration Inc.
    
    Redistribution and use in source and binary forms, with or without modification, are permitted
    provided that the following conditions are met:
    
    1. Redistributions of source code must retain the above copyright notice, this list of conditions
    and the following disclaimer.
    
    2. Redistributions in binary form must reproduce the above copyright notice, this list of
    conditions and the following disclaimer in the documentation and/or other materials provided
    with the distribution.
    
    3. Neither the name of the copyright holder nor the names of its contributors may be used to
    endorse or promote products derived from this software without specific prior written permission.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
    IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **/
    
    #include "UsgsAstroProjectedLsSensorModel.h"
    #include "Distortion.h"
    #include "Utilities.h"
    #include "EigenUtilities.h"
    
    #include <float.h>
    #include <math.h>
    #include <algorithm>
    #include <iostream>
    #include <sstream>
    
    #include <proj.h>
    
    #include <Error.h>
    #include <nlohmann/json.hpp>
    
    #include "ale/Util.h"
    
    #define MESSAGE_LOG(...)         \
      if (m_logger) {                \
        m_logger->log(__VA_ARGS__); \
      }
    
    using json = nlohmann::json;
    
    const std::string UsgsAstroProjectedLsSensorModel::_SENSOR_MODEL_NAME =
        "USGS_ASTRO_PROJECTED_LINE_SCANNER_SENSOR_MODEL";
    const int UsgsAstroProjectedLsSensorModel::NUM_PARAMETERS = 16;
    const std::string UsgsAstroProjectedLsSensorModel::PARAMETER_NAME[] = {
        "IT Pos. Bias   ",  // 0
        "CT Pos. Bias   ",  // 1
        "Rad Pos. Bias  ",  // 2
        "IT Vel. Bias   ",  // 3
        "CT Vel. Bias   ",  // 4
        "Rad Vel. Bias  ",  // 5
        "Omega Bias     ",  // 6
        "Phi Bias       ",  // 7
        "Kappa Bias     ",  // 8
        "Omega Rate     ",  // 9
        "Phi Rate       ",  // 10
        "Kappa Rate     ",  // 11
        "Omega Accl     ",  // 12
        "Phi Accl       ",  // 13
        "Kappa Accl     ",  // 14
        "Focal Bias     "   // 15
    };