<commit_before>#pragma once

#include <ceres/ceres.h>
#include <ceres/rotation.h>
#include <openMVG/geometry/pose3.hpp>
#include <openMVG/cameras/Camera_Pinhole_Radial.hpp> //todo: not generic
                         // only Pinhole_Intrinsic_Radial_K3 is currently supported
                         // todo: allows internal parameters refinement


namespace openMVG {
namespace rig {

class ResidualErrorMainCameraFunctor
{
public :
  ResidualErrorMainCameraFunctor(
          const cameras::Pinhole_Intrinsic_Radial_K3 & intrinsics,
          const Vec2 & x,
          const Vec3 & X)
  {
    // Set the intrinsics
     _K = intrinsics.K();
     
     _params.reserve(3);
     _params.push_back(intrinsics.getParams()[3]);
     _params.push_back(intrinsics.getParams()[4]);
     _params.push_back(intrinsics.getParams()[5]);
     
    // Set the observation
    _observation[0] = x[0];
    _observation[1] = x[1];
    <commit_msg>[rig] include order<commit_after>#pragma once

#include <openMVG/geometry/pose3.hpp>
#include <openMVG/cameras/Camera_Pinhole_Radial.hpp> //todo: not generic
                         // only Pinhole_Intrinsic_Radial_K3 is currently supported
                         // todo: allows internal parameters refinement
#include <ceres/ceres.h>
#include <ceres/rotation.h>


namespace openMVG {
namespace rig {

class ResidualErrorMainCameraFunctor
{
public :
  ResidualErrorMainCameraFunctor(
          const cameras::Pinhole_Intrinsic_Radial_K3 & intrinsics,
          const Vec2 & x,
          const Vec3 & X)
  {
    // Set the intrinsics
     _K = intrinsics.K();
     
     _params.reserve(3);
     _params.push_back(intrinsics.getParams()[3]);
     _params.push_back(intrinsics.getParams()[4]);
     _params.push_back(intrinsics.getParams()[5]);
     
    // Set the observation
    _observation[0] = x[0];
    _observation[1] = x[1];
    
{'fraction_non_alphanumeric': 0.10779082177161152, 'fraction_numerical': 0.013874066168623266, 'mean_word_length': 2.8187372708757636, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6697583', 'n_tokens_mistral': 631, 'n_tokens_neox': 603, 'n_words': 114}