1 /* 2 * Copyright (C) 2015 Alberto Irurueta Carro (alberto@irurueta.com) 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.irurueta.ar.sfm; 17 18 /** 19 * Type of 3D point triangulator. 20 * Homogeneous methods are suitable for any case 21 * Inhomogeneous ones are suitable only for cases where finite points and 22 * cameras are being used. If points or cameras are located very far or at 23 * infinity, triangulation will fail when using inhomogeneous methods. 24 */ 25 public enum Point3DTriangulatorType { 26 /** 27 * Triangulator using homogeneous method and an LMSE (the Least Mean Square 28 * Error) solution. 29 */ 30 LMSE_HOMOGENEOUS_TRIANGULATOR, 31 32 /** 33 * Triangulator using inhomogeneous method and an LMSE (the Least Mean Square 34 * Error) solution. 35 */ 36 LMSE_INHOMOGENEOUS_TRIANGULATOR, 37 38 /** 39 * Triangulator using homogeneous method and a weighted solution. 40 */ 41 WEIGHTED_HOMOGENEOUS_TRIANGULATOR, 42 43 /** 44 * Triangulator using inhomogeneous method and a weighted solution. 45 */ 46 WEIGHTED_INHOMOGENEOUS_TRIANGULATOR 47 }