#include <Camera.h>
|
enum | Type { Type::FTHETA,
Type::RECTILINEAR,
Type::EQUISOLID,
Type::ORTHOGRAPHIC
} |
|
using | Real = double |
|
using | Vector2 = Eigen::Matrix< Real, 2, 1 > |
|
using | Vector3 = Eigen::Matrix< Real, 3, 1 > |
|
using | Matrix3 = Eigen::Matrix< Real, 3, 3 > |
|
using | Ray = Eigen::ParametrizedLine< Real, 3 > |
|
using | Distortion = Eigen::Matrix< Real, 3, 1 > |
|
using | Rig = std::vector< Camera > |
|
◆ Distortion
◆ Matrix3
◆ Ray
◆ Real
◆ Rig
◆ Vector2
◆ Vector3
◆ Type
Enumerator |
---|
FTHETA | |
RECTILINEAR | |
EQUISOLID | |
ORTHOGRAPHIC | |
◆ Camera() [1/2]
fb360_dep::Camera::Camera |
( |
const Type |
type, |
|
|
const Vector2 & |
resolution, |
|
|
const Vector2 & |
focal |
|
) |
| |
◆ Camera() [2/2]
fb360_dep::Camera::Camera |
( |
const folly::dynamic & |
json | ) |
|
|
explicit |
◆ cameraToPixel()
Vector2 fb360_dep::Camera::cameraToPixel |
( |
const Vector3 & |
camera | ) |
const |
|
inline |
◆ distort()
Real fb360_dep::Camera::distort |
( |
Real |
r | ) |
const |
|
inline |
◆ findCameraById()
const Camera & fb360_dep::Camera::findCameraById |
( |
const std::string |
id, |
|
|
const Camera::Rig & |
rig |
|
) |
| |
|
static |
◆ forward()
Vector3 fb360_dep::Camera::forward |
( |
| ) |
const |
|
inline |
◆ getDefaultCosFov()
◆ getDistortion()
const Distortion& fb360_dep::Camera::getDistortion |
( |
| ) |
const |
|
inline |
◆ getDistortionMax()
Real fb360_dep::Camera::getDistortionMax |
( |
| ) |
const |
|
inline |
◆ getFov()
◆ getRotation()
◆ getScalarFocal()
◆ isBehind()
bool fb360_dep::Camera::isBehind |
( |
const Vector3 & |
rig | ) |
const |
|
inline |
◆ isDefaultFov()
bool fb360_dep::Camera::isDefaultFov |
( |
| ) |
const |
◆ isNormalized()
bool fb360_dep::Camera::isNormalized |
( |
| ) |
const |
◆ isOutsideFov()
bool fb360_dep::Camera::isOutsideFov |
( |
const Vector3 & |
rig | ) |
const |
|
inline |
◆ isOutsideImageCircle()
bool fb360_dep::Camera::isOutsideImageCircle |
( |
const Vector2 & |
pix | ) |
const |
|
inline |
◆ isOutsideSensor()
bool fb360_dep::Camera::isOutsideSensor |
( |
const Vector2 & |
pix | ) |
const |
|
inline |
◆ loadRig()
Camera::Rig fb360_dep::Camera::loadRig |
( |
const filesystem::path & |
filename | ) |
|
|
static |
◆ loadRigFromJsonString()
Camera::Rig fb360_dep::Camera::loadRigFromJsonString |
( |
const std::string & |
json | ) |
|
|
static |
◆ normalize()
void fb360_dep::Camera::normalize |
( |
| ) |
|
◆ normalizeRig()
void fb360_dep::Camera::normalizeRig |
( |
Camera::Rig & |
rig | ) |
|
|
static |
◆ overlap()
Real fb360_dep::Camera::overlap |
( |
const Camera & |
other | ) |
const |
|
inline |
◆ perturbCameras()
void fb360_dep::Camera::perturbCameras |
( |
std::vector< Camera > & |
cameras, |
|
|
const double |
posAmount, |
|
|
const double |
rotAmount, |
|
|
const double |
principalAmount, |
|
|
const double |
focalAmount |
|
) |
| |
|
static |
◆ pixel()
◆ pixelToCamera()
Vector3 fb360_dep::Camera::pixelToCamera |
( |
const Vector2 & |
pixel | ) |
const |
|
inline |
◆ rescale()
Camera fb360_dep::Camera::rescale |
( |
const Vector2 & |
newResolution = {1, 1} | ) |
const |
◆ rig() [1/2]
Ray fb360_dep::Camera::rig |
( |
const Vector2 & |
pixel | ) |
const |
|
inline |
◆ rig() [2/2]
◆ right()
Vector3 fb360_dep::Camera::right |
( |
| ) |
const |
|
inline |
◆ rigNearInfinity()
Vector3 fb360_dep::Camera::rigNearInfinity |
( |
const Vector2 & |
pixel | ) |
const |
|
inline |
◆ saveRig()
void fb360_dep::Camera::saveRig |
( |
const std::string & |
filename, |
|
|
const Rig & |
rig, |
|
|
const std::vector< std::string > & |
comments = {} , |
|
|
const int |
doubleNumDigits = -1 |
|
) |
| |
|
static |
◆ sees() [1/2]
bool fb360_dep::Camera::sees |
( |
const Vector3 & |
rig, |
|
|
Vector2 & |
pix |
|
) |
| const |
|
inline |
◆ sees() [2/2]
bool fb360_dep::Camera::sees |
( |
const Vector3 & |
rig | ) |
const |
|
inline |
◆ serialize()
folly::dynamic fb360_dep::Camera::serialize |
( |
| ) |
const |
◆ setDefaultDistortion()
void fb360_dep::Camera::setDefaultDistortion |
( |
| ) |
|
◆ setDefaultFov()
void fb360_dep::Camera::setDefaultFov |
( |
| ) |
|
◆ setDistortion()
void fb360_dep::Camera::setDistortion |
( |
const Distortion & |
distortion | ) |
|
◆ setFov()
void fb360_dep::Camera::setFov |
( |
const Real & |
radians | ) |
|
◆ setRotation() [1/3]
void fb360_dep::Camera::setRotation |
( |
const Vector3 & |
forward, |
|
|
const Vector3 & |
up, |
|
|
const Vector3 & |
right |
|
) |
| |
◆ setRotation() [2/3]
void fb360_dep::Camera::setRotation |
( |
const Vector3 & |
forward, |
|
|
const Vector3 & |
up |
|
) |
| |
◆ setRotation() [3/3]
void fb360_dep::Camera::setRotation |
( |
const Vector3 & |
angleAxis | ) |
|
◆ setScalarFocal()
void fb360_dep::Camera::setScalarFocal |
( |
const Real & |
scalar | ) |
|
◆ undistort()
Real fb360_dep::Camera::undistort |
( |
const Real |
y | ) |
const |
|
inline |
◆ up()
Vector3 fb360_dep::Camera::up |
( |
| ) |
const |
|
inline |
◆ cosFov
Real fb360_dep::Camera::cosFov |
◆ focal
◆ group
std::string fb360_dep::Camera::group |
◆ id
std::string fb360_dep::Camera::id |
◆ kNearInfinity
◆ position
Vector3 fb360_dep::Camera::position |
◆ principal
Vector2 fb360_dep::Camera::principal |
◆ resolution
Vector2 fb360_dep::Camera::resolution |
◆ rotation
Matrix3 fb360_dep::Camera::rotation |
◆ type
The documentation for this struct was generated from the following files: