Skip to content

Commit

Permalink
Add license header from mrcal (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 authored Aug 16, 2024
1 parent 806d07d commit d05b8ff
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/mrcal_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,14 @@ struct MrcalSolveOptions {
};

// lifted from mrcal-pywrap.c. Restrict a given selection to only valid options
// License for mrcal-pywrap.c:
// Copyright (c) 2017-2023 California Institute of Technology ("Caltech"). U.S.
// Government sponsorship acknowledged. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
static mrcal_problem_selections_t
construct_problem_selections(MrcalSolveOptions s, int Ncameras_intrinsics,
int Ncameras_extrinsics, int Nframes,
Expand Down Expand Up @@ -360,6 +368,14 @@ mrcal_result::~mrcal_result() {
return;
}

// Code taken from mrcal, license:
// Copyright (c) 2017-2023 California Institute of Technology ("Caltech"). U.S.
// Government sponsorship acknowledged. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
std::unique_ptr<mrcal_result> mrcal_main(
// List, depth is ordered array observation[N frames, object_height,
// object_width] = [x,y, weight] weight<0 means ignored)
Expand Down

0 comments on commit d05b8ff

Please sign in to comment.