• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * calibration_parser.h - parse fisheye calibration file
3  *
4  *  Copyright (c) 2016-2017 Intel Corporation
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *   http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * Author: Junkai Wu <junkai.wu@intel.com>
19  */
20 
21 #ifndef XCAM_CALIBRATION_PARSER_H
22 #define XCAM_CALIBRATION_PARSER_H
23 
24 #include <xcam_utils.h>
25 #include <interface/data_types.h>
26 
27 namespace XCam {
28 
29 class CalibrationParser
30 {
31 public:
32     explicit CalibrationParser ();
33 
34     XCamReturn parse_intrinsic_param(char *file_body, IntrinsicParameter &intrinsic_param);
35     XCamReturn parse_extrinsic_param(char *file_body, ExtrinsicParameter &extrinsic_param);
36 
37     //file generated by Scaramuzza's approach
38     XCamReturn parse_intrinsic_file(const char *file_path, IntrinsicParameter &intrinsic_param);
39     XCamReturn parse_extrinsic_file(const char *file_path, ExtrinsicParameter &extrinsic_param);
40 
41 private:
42     XCAM_DEAD_COPY (CalibrationParser);
43 };
44 
45 }
46 
47 #endif // XCAM_CALIBRATION_PARSER_H
48