| 
    Ocean
    
   | 
 
This class implements utility functions for the geometry test library. More...
#include <Utilities.h>
Static Public Member Functions | |
| static Vectors2 | imagePoints (const PinholeCamera &pinholeCamera, const size_t number, RandomGenerator *randomGenerator=nullptr) | 
| Creates a set of image points that are located inside a camera frame.   | |
| static Vectors3 | objectPoints (const Box3 &boundingBox, const size_t number, RandomGenerator *randomGenerator=nullptr) | 
| Creates a set of object points that are located inside a specified bounding box.   | |
| static HomogenousMatrix4 | viewPosition (const PinholeCamera &pinholeCamera, const Sphere3 &boundingSphere, const Vector3 &viewingDirection) | 
| Deprecated.   | |
| template<typename T > | |
| static HomogenousMatrixT4< T > | viewPosition (const AnyCameraT< T > &anyCamera, const SphereT3< T > &boundingSphere, const VectorT3< T > &viewingDirection) | 
| Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.   | |
| static HomogenousMatrix4 | viewPosition (const PinholeCamera &pinholeCamera, const Vectors3 &objectPoints, const Vector3 &viewingDirection, const bool circumcircle=true) | 
| Deprecated.   | |
| template<typename T > | |
| static HomogenousMatrixT4< T > | viewPosition (const AnyCameraT< T > &anyCamera, const VectorsT3< T > &objectPoints, const VectorT3< T > &viewingDirection, const bool circumcircle=true) | 
| Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.   | |
| static HomogenousMatrix4 | viewPosition (const PinholeCamera &pinholeCamera, const Vectors3 &objectPoints, const bool circumcircle=true, RandomGenerator *randomGenerator=nullptr) | 
| Deprecated.   | |
| template<typename T > | |
| static HomogenousMatrixT4< T > | viewPosition (const AnyCameraT< T > &anyCamera, const VectorsT3< T > &objectPoints, const bool circumcircle=true, RandomGenerator *randomGenerator=nullptr) | 
| Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.   | |
| static PinholeCamera | distortedCamera (const PinholeCamera &pinholeCamera, const bool principalPointDistortion=true, const bool radialDistortion=true, const bool tangentialDistortion=true, RandomGenerator *randomGenerator=nullptr, const Scalar maximalPrincipalPointOffset=Scalar(20), const Scalar maximalRadialDistortion=Scalar(0.1), const Scalar maximalTangentialDistortion=Scalar(0.01)) | 
| Modifies a provided camera and adds random radial and tangential distortion.   | |
| template<typename T = Scalar> | |
| static PinholeCameraT< T > | realisticPinholeCamera (const unsigned int index=0u) | 
| Returns one of two realistic pinhole camera profiles.   | |
| template<typename T = Scalar> | |
| static FisheyeCameraT< T > | realisticFisheyeCamera (const unsigned int index=0u) | 
| Returns one of two realistic fisheye camera profiles.   | |
| template<typename T = Scalar> | |
| static SharedAnyCameraT< T > | realisticAnyCamera (const AnyCameraType anyCameraType, const unsigned int index=0u) | 
| Returns one of two realistic camera profiles provided as an AnyCamera object.   | |
| static std::vector< AnyCameraType > | realisticCameraTypes () | 
| Returns all camera types for which a realistic camera object can be accessed.   | |
| static IndexSet32 | randomIndices (const size_t size, const size_t randomIndices, RandomGenerator *randomGenerator=nullptr) | 
| Creates a set of random indices.   | |
This class implements utility functions for the geometry test library.
      
  | 
  static | 
Modifies a provided camera and adds random radial and tangential distortion.
| pinholeCamera | The pinhole camera object that will be modified | 
| principalPointDistortion | True, to modify the principal point | 
| radialDistortion | True, to modify the radial distortion | 
| tangentialDistortion | True, to modify the tangential distortion | 
| randomGenerator | Optional random generator, nullptr to use a default random generator | 
| maximalPrincipalPointOffset | Maximal offset of the principal point, with range [0, infinity) | 
| maximalRadialDistortion | Maximal radial distortion, with range [0, infinity) | 
| maximalTangentialDistortion | Maximal tangential distortion, with range [0, infinity) | 
      
  | 
  static | 
Creates a set of image points that are located inside a camera frame.
| pinholeCamera | The pinhole camera profile that is applied | 
| number | The number of the resulting image points, with range [1, infinity) | 
| randomGenerator | Optional random generator | 
      
  | 
  static | 
Creates a set of object points that are located inside a specified bounding box.
| boundingBox | 3D bounding box | 
| number | The number of the resulting object points, with range [1, infinity) | 
| randomGenerator | Optional random generator | 
      
  | 
  static | 
Creates a set of random indices.
| size | The size of the entire element, with range [1, infinity) | 
| randomIndices | Number of random indices, with range [1, size] | 
| randomGenerator | Optional random generator | 
      
  | 
  static | 
Returns one of two realistic camera profiles provided as an AnyCamera object.
| anyCameraType | The type of the camera to be created, must be valid | 
| index | The index of the camera profile to be returned, with range [0, 1] | 
| T | The data type of the scalar to be used, either 'float' or 'double' | 
      
  | 
  static | 
Returns all camera types for which a realistic camera object can be accessed.
      
  | 
  static | 
Returns one of two realistic fisheye camera profiles.
| index | The index of the camera profile to be returned, with range [0, 1] | 
| T | The data type of the scalar to be used, either 'float' or 'double' | 
      
  | 
  static | 
Returns one of two realistic pinhole camera profiles.
| index | The index of the camera profile to be returned, with range [0, 1] | 
| T | The data type of the scalar to be used, either 'float' or 'double' | 
      
  | 
  static | 
Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.
| anyCamera | The camera profile defining the projection, must be valid | 
| boundingSphere | Bounding sphere that has to be visible in the final view, can have radius 0, must be valid | 
| viewingDirection | Viewing direction of the resulting camera with unit length | 
| T | The data type of the scalar to use, either 'float' or 'double' | 
      
  | 
  static | 
Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.
| anyCamera | The camera profile defining the projection, must be valid | 
| objectPoints | Object points for that the camera position will be determined | 
| circumcircle | True, to ensure that all object points will project into the frame, otherwise some sole points will project outside the image frame | 
| randomGenerator | Optional random generator | 
| T | The data type of the scalar to use, either 'float' or 'double' | 
      
  | 
  static | 
Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.
| anyCamera | The camera profile defining the projection, must be valid | 
| objectPoints | Object points for that the camera position will be determined | 
| viewingDirection | Viewing direction of the resulting camera with unit length | 
| circumcircle | True, to ensure that all object points will project into the frame, otherwise some sole points will project outside the image frame | 
| T | The data type of the scalar to use, either 'float' or 'double' | 
      
  | 
  static | 
Deprecated.
Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.
| pinholeCamera | The pinhole camera profile defining the projection, must be valid | 
| boundingSphere | Bounding sphere that has to be visible in the final view, can have radius 0, must be valid | 
| viewingDirection | Viewing direction of the resulting camera with unit length | 
      
  | 
  static | 
Deprecated.
Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.
| pinholeCamera | The pinhole camera profile defining the projection, must be valid | 
| objectPoints | Object points for that the camera position will be determined | 
| circumcircle | True, to ensure that all object points will project into the frame, otherwise some sole points will project outside the image frame | 
| randomGenerator | Optional random generator | 
      
  | 
  static | 
Deprecated.
Determines a viewing position for a given camera for a set of 3D object points so that all point project into the camera frame.
| pinholeCamera | The pinhole camera profile defining the projection, must be valid | 
| objectPoints | Object points for that the camera position will be determined | 
| viewingDirection | Viewing direction of the resulting camera with unit length | 
| circumcircle | True, to ensure that all object points will project into the frame, otherwise some sole points will project outside the image frame |