facebook360_dep
Facebook360 Depth Estimation Pipeline
|
Namespaces | |
background_subtraction | |
bc7_util | |
binary_fusion | |
calibration | |
color | |
cv_util | |
depth_estimation | |
image_util | |
isp | |
math_util | |
mesh_util | |
point_cloud_util | |
render | |
rephoto_util | |
system_util | |
Classes | |
struct | AsyncFile |
struct | AsyncLoader |
struct | Camera |
struct | Canopy |
struct | CanopyScene |
struct | DerpTest |
struct | Match3D |
struct | MatchCornersTest |
struct | PointCloudFunctor |
struct | ReprojectionScene |
class | ReprojectionTable |
struct | ReprojectionTexture |
struct | RigScene |
struct | StripedFile |
struct | ThreadPool |
struct | TransformationFunctor |
struct | VideoFile |
Typedefs | |
using | MatrixDepth = Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > |
using | PixelType = cv::Vec4b |
using | ssize_t = ptrdiff_t |
Enumerations | |
enum | ImageType { ImageType::ENUM_VALUE } |
Functions | |
template<typename T > | |
cv::Mat_< T > | reproject (const int width, const int height, const GLenum internalFormat, const GLenum format, const GLenum type, const ReprojectionTexture &reprojection, const GLuint srcTexture, const float disparity) |
uint64_t | align (uint64_t offset, uint64_t alignment) |
uint8_t * | align (uint8_t *p, uint64_t alignment) |
template<typename T > | |
GLuint | createCubemapTexture (const T &scene, const int edge, const Eigen::Vector3f &position, const float ipd, const bool alphaBlend) |
cv::Mat_< cv::Vec4f > | alphaFov (const cv::Mat_< cv::Vec4f > &color, Camera camera) |
template<typename T > | |
cv::Mat_< cv::Vec4f > | disparityColor (const cv::Mat_< float > &disparity, Camera camera, const Eigen::Vector3f &position, const T &functor) |
template<typename T > | |
std::vector< cv::Mat_< cv::Vec4f > > | disparityColors (const Camera::Rig &cameras, const std::vector< cv::Mat_< float >> &disparities, const Eigen::Vector3f &position, const T &functor) |
cv::Vec4f | metersToGrayscale (float meters) |
void | recycleTexture (const GLuint texture) |
GLuint | bindRecycledTexture () |
void | emptyRecycling () |
const Eigen::Transform< double, 3, Eigen::Affine > | generateTransform (const Camera::Vector3 &rotation, const Camera::Vector3 &translation, const Eigen::UniformScaling< double > &scale, const bool applyInReverse=false) |
const Eigen::Transform< double, 3, Eigen::Affine > | generateTransform (double const *const rotation, double const *const translation, double const *const scale, const bool applyInReverse=false) |
void | solve (ceres::Problem &problem) |
Camera::Rig | transformRig (const Camera::Rig &rig, const Camera::Vector3 &rotation, const Camera::Vector3 &translation, const Eigen::UniformScaling< double > &scale, const bool applyInReverse=false) |
Camera::Rig | alignRig (const Camera::Rig &rig, const Camera::Rig &referenceRig, bool lockRotation=false, bool lockTranslation=false, bool lockScale=false) |
Camera | transformCamera (const Camera &camera, double const *const rotation, double const *const translation, double const *const scale, const bool applyInReverse=false) |
std::vector< Camera::Vector2 > | loadCorners (const std::string &path) |
cv::Mat_< PixelType > | rotateImage (const cv::Mat_< PixelType > &image, const float angle) |
Camera::Vector2 | rotatePoint (const cv::Mat_< PixelType > &image, const Camera::Vector2 &pt, const float angle) |
cv::Mat_< PixelType > | translate (const cv::Mat_< PixelType > &image, const float t_x, const float t_y) |
void | insertIfInsideImage (std::vector< Camera::Vector2 > &trueCorners, const cv::Mat_< PixelType > &image, const Camera::Vector2 &corner) |
TEST (MatchCornersTest, TestTransformationDetection) | |
TEST_F (DerpTest, TestUtilFilterDestinations) | |
template<typename T > | |
std::vector< T > | readRawImage (const filesystem::path &rawImageFilename, const CameraIsp &cameraIsp) |
std::unique_ptr< CameraIsp > | cameraIspFromConfigFileWithOptions (const filesystem::path &configFilename, int pow2DownscaleFactor, DemosaicFilter demosaicFilter, bool applyToneCurve) |
template<typename T > | |
cv::Mat_< cv::Vec< T, 3 > > | rawToRgb (const std::vector< T > &rawImage, CameraIsp &cameraIsp) |
template cv::Mat_< cv::Vec< uint8_t, 3 > > | rawToRgb (const std::vector< uint8_t > &, CameraIsp &) |
template cv::Mat_< cv::Vec< uint16_t, 3 > > | rawToRgb (const std::vector< uint16_t > &, CameraIsp &) |
template<typename T > | |
cv::Mat_< cv::Vec< T, 3 > > | rawToRgb (const filesystem::path &rawImageFilename, const filesystem::path &ispConfigFilename, int pow2DownscaleFactor, DemosaicFilter demosaicFilter, bool applyToneCurve) |
cv::Mat | rawToRgb (const boost::filesystem::path &rawImageFilename, const boost::filesystem::path &ispConfigFilename, int pow2DownscaleFactor, DemosaicFilter demosaicFilter, bool applyToneCurve) |
void | writeIfd (const uint16_t tag, const uint16_t type, const uint32_t count, const uint32_t offset, const uint32_t offsetInc, uint32_t &dOffset, FILE *fDng) |
template<typename T > | |
bool | writeDng (const filesystem::path &rawImageFilename, const filesystem::path &outputFilename, CameraIsp &cameraIsp) |
bool | writeDng (const filesystem::path &rawImageFilename, const filesystem::path &outputFilename, const filesystem::path &ispConfigFilename) |
template bool | writeDng< uint8_t > (const filesystem::path &, const filesystem::path &, const filesystem::path &) |
template bool | writeDng< uint16_t > (const filesystem::path &, const filesystem::path &, const filesystem::path &) |
enum DemosaicFilter unsigned int const DemosaicFilter kDefaultDemosaicFilterForRawToRgb std::unique_ptr< CameraIsp > | cameraIspFromConfigFileWithOptions (const boost::filesystem::path &configFilename, int pow2DownscaleFactor=1, DemosaicFilter demosaicFilter=kDefaultDemosaicFilterForRawToRgb, bool applyToneCurve=true) |
template<typename T > | |
bool | writeDng (const boost::filesystem::path &rawImageFilename, const boost::filesystem::path &outputFilename, const boost::filesystem::path &ispConfigFilename="") |
template<typename T > | |
constexpr ssize_t | ssize (const T &container) |
template<class T , ssize_t N> | |
constexpr ssize_t | ssize (const T(&array)[N]) |
int | getThreadCount () |
Variables | |
const uint64_t | kPageSize = 4096 |
std::string | canopyVS |
std::string | canopyFS |
std::string | canopyFS_SVD |
std::string | accumulateFS |
std::string | unpremulFS |
std::string | equirectFS |
const float | kUnit = 1.0f |
const float | kWhiteZ = 1.0f |
const float | kR = 1.0f / kUnit |
const int | kDirections = 128 |
const std::string | imageTypes [] |
const DemosaicFilter | kDefaultDemosaicFilterForRawToRgb = DemosaicFilter::BILINEAR |
Copyright 2004-present Facebook. All Rights Reserved.
This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
using fb360_dep::MatrixDepth = typedef Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> |
using fb360_dep::PixelType = typedef cv::Vec4b |
using fb360_dep::ssize_t = typedef ptrdiff_t |
|
strong |
uint64_t fb360_dep::align | ( | uint64_t | offset, |
uint64_t | alignment | ||
) |
uint8_t* fb360_dep::align | ( | uint8_t * | p, |
uint64_t | alignment | ||
) |
Camera::Rig fb360_dep::alignRig | ( | const Camera::Rig & | rig, |
const Camera::Rig & | referenceRig, | ||
bool | lockRotation = false , |
||
bool | lockTranslation = false , |
||
bool | lockScale = false |
||
) |
cv::Mat_<cv::Vec4f> fb360_dep::alphaFov | ( | const cv::Mat_< cv::Vec4f > & | color, |
Camera | camera | ||
) |
GLuint fb360_dep::bindRecycledTexture | ( | ) |
|
strong |
std::unique_ptr<CameraIsp> fb360_dep::cameraIspFromConfigFileWithOptions | ( | const filesystem::path & | configFilename, |
int | pow2DownscaleFactor, | ||
DemosaicFilter | demosaicFilter, | ||
bool | applyToneCurve | ||
) |
GLuint fb360_dep::createCubemapTexture | ( | const T & | scene, |
const int | edge, | ||
const Eigen::Vector3f & | position, | ||
const float | ipd, | ||
const bool | alphaBlend | ||
) |
cv::Mat_<cv::Vec4f> fb360_dep::disparityColor | ( | const cv::Mat_< float > & | disparity, |
Camera | camera, | ||
const Eigen::Vector3f & | position, | ||
const T & | functor | ||
) |
std::vector<cv::Mat_<cv::Vec4f> > fb360_dep::disparityColors | ( | const Camera::Rig & | cameras, |
const std::vector< cv::Mat_< float >> & | disparities, | ||
const Eigen::Vector3f & | position, | ||
const T & | functor | ||
) |
void fb360_dep::emptyRecycling | ( | ) |
const Eigen::Transform< double, 3, Eigen::Affine > fb360_dep::generateTransform | ( | const Camera::Vector3 & | rotation, |
const Camera::Vector3 & | translation, | ||
const Eigen::UniformScaling< double > & | scale, | ||
const bool | applyInReverse = false |
||
) |
const Eigen::Transform< double, 3, Eigen::Affine > fb360_dep::generateTransform | ( | double const *const | rotation, |
double const *const | translation, | ||
double const *const | scale, | ||
const bool | applyInReverse = false |
||
) |
|
inline |
void fb360_dep::insertIfInsideImage | ( | std::vector< Camera::Vector2 > & | trueCorners, |
const cv::Mat_< PixelType > & | image, | ||
const Camera::Vector2 & | corner | ||
) |
std::vector<Camera::Vector2> fb360_dep::loadCorners | ( | const std::string & | path | ) |
|
inline |
cv::Mat_< cv::Vec< T, 3 > > fb360_dep::rawToRgb | ( | const std::vector< T > & | rawImage, |
CameraIsp & | cameraIsp | ||
) |
template cv::Mat_<cv::Vec<uint8_t, 3> > fb360_dep::rawToRgb | ( | const std::vector< uint8_t > & | , |
CameraIsp & | |||
) |
template cv::Mat_<cv::Vec<uint16_t, 3> > fb360_dep::rawToRgb | ( | const std::vector< uint16_t > & | , |
CameraIsp & | |||
) |
template cv::Mat_< cv::Vec< uint16_t, 3 > > fb360_dep::rawToRgb | ( | const filesystem::path & | rawImageFilename, |
const filesystem::path & | ispConfigFilename, | ||
int | pow2DownscaleFactor, | ||
DemosaicFilter | demosaicFilter, | ||
bool | applyToneCurve | ||
) |
cv::Mat fb360_dep::rawToRgb | ( | const boost::filesystem::path & | rawImageFilename, |
const boost::filesystem::path & | ispConfigFilename, | ||
int | pow2DownscaleFactor, | ||
DemosaicFilter | demosaicFilter, | ||
bool | applyToneCurve | ||
) |
std::vector<T> fb360_dep::readRawImage | ( | const filesystem::path & | rawImageFilename, |
const CameraIsp & | cameraIsp | ||
) |
void fb360_dep::recycleTexture | ( | const GLuint | texture | ) |
cv::Mat_<T> fb360_dep::reproject | ( | const int | width, |
const int | height, | ||
const GLenum | internalFormat, | ||
const GLenum | format, | ||
const GLenum | type, | ||
const ReprojectionTexture & | reprojection, | ||
const GLuint | srcTexture, | ||
const float | disparity | ||
) |
cv::Mat_<PixelType> fb360_dep::rotateImage | ( | const cv::Mat_< PixelType > & | image, |
const float | angle | ||
) |
Camera::Vector2 fb360_dep::rotatePoint | ( | const cv::Mat_< PixelType > & | image, |
const Camera::Vector2 & | pt, | ||
const float | angle | ||
) |
void fb360_dep::solve | ( | ceres::Problem & | problem | ) |
constexpr ssize_t fb360_dep::ssize | ( | const T & | container | ) |
constexpr ssize_t fb360_dep::ssize | ( | const T(&) | array[N] | ) |
fb360_dep::TEST | ( | MatchCornersTest | , |
TestTransformationDetection | |||
) |
fb360_dep::TEST_F | ( | DerpTest | , |
TestUtilFilterDestinations | |||
) |
Camera fb360_dep::transformCamera | ( | const Camera & | camera, |
double const *const | rotation, | ||
double const *const | translation, | ||
double const *const | scale, | ||
const bool | applyInReverse = false |
||
) |
Camera::Rig fb360_dep::transformRig | ( | const Camera::Rig & | rig, |
const Camera::Vector3 & | rotation, | ||
const Camera::Vector3 & | translation, | ||
const Eigen::UniformScaling< double > & | scale, | ||
const bool | applyInReverse = false |
||
) |
cv::Mat_<PixelType> fb360_dep::translate | ( | const cv::Mat_< PixelType > & | image, |
const float | t_x, | ||
const float | t_y | ||
) |
bool fb360_dep::writeDng | ( | const boost::filesystem::path & | rawImageFilename, |
const boost::filesystem::path & | outputFilename, | ||
const boost::filesystem::path & | ispConfigFilename = "" |
||
) |
bool fb360_dep::writeDng | ( | const filesystem::path & | rawImageFilename, |
const filesystem::path & | outputFilename, | ||
CameraIsp & | cameraIsp | ||
) |
bool fb360_dep::writeDng | ( | const filesystem::path & | rawImageFilename, |
const filesystem::path & | outputFilename, | ||
const filesystem::path & | ispConfigFilename | ||
) |
template bool fb360_dep::writeDng< uint16_t > | ( | const filesystem::path & | , |
const filesystem::path & | , | ||
const filesystem::path & | |||
) |
template bool fb360_dep::writeDng< uint8_t > | ( | const filesystem::path & | , |
const filesystem::path & | , | ||
const filesystem::path & | |||
) |
void fb360_dep::writeIfd | ( | const uint16_t | tag, |
const uint16_t | type, | ||
const uint32_t | count, | ||
const uint32_t | offset, | ||
const uint32_t | offsetInc, | ||
uint32_t & | dOffset, | ||
FILE * | fDng | ||
) |
std::string fb360_dep::accumulateFS |
std::string fb360_dep::canopyFS |
std::string fb360_dep::canopyFS_SVD |
std::string fb360_dep::canopyVS |
std::string fb360_dep::equirectFS |
const std::string fb360_dep::imageTypes[] |
const DemosaicFilter fb360_dep::kDefaultDemosaicFilterForRawToRgb = DemosaicFilter::BILINEAR |
const int fb360_dep::kDirections = 128 |
const uint64_t fb360_dep::kPageSize = 4096 |
const float fb360_dep::kR = 1.0f / kUnit |
const float fb360_dep::kUnit = 1.0f |
const float fb360_dep::kWhiteZ = 1.0f |
std::string fb360_dep::unpremulFS |