facebook360_dep
Facebook360 Depth Estimation Pipeline
Classes | Public Member Functions | Public Attributes | List of all members
fb360_dep::depth_estimation::PyramidLevel< PixelType > Struct Template Reference

#include <PyramidLevel.h>

Classes

struct  Dst
 
struct  Proj
 
struct  Src
 

Public Member Functions

int findDstIdx (const std::string &dstId) const
 
 PyramidLevel (const int frameIdxIn, const std::string &frameNameIn, const int numFramesIn, const int levelIn, const int numLevelsIn, const std::map< int, cv::Size > &levelSizesIn, const Camera::Rig &rigSrcIn, const Camera::Rig &rigDstIn, const std::vector< int > &dst2srcIdxsIn, const std::vector< cv::Mat_< PixelType >> &srcColorsIn, const std::vector< cv::Mat_< bool >> &srcForegroundMasksIn, const std::vector< cv::Mat_< bool >> &dstFovMasksIn, const std::vector< cv::Mat_< float >> &dstBackgroundDisparitiesIn, const int widthFullSizeIn, const int heightFullSizeIn, const std::string &color, const float varNoiseFloor, const float varHighThresh, const bool useForegroundMasks, const std::string &outputRoot, const int threads)
 
void checkParams ()
 
template<typename T >
void createIfEmpty (cv::Mat_< T > &mat, const cv::Size &size, const T &val)
 
template<typename T >
void createOrReleaseMat (cv::Mat_< T > &mat, const bool createOrRelease, const cv::Size &size, const T &val)
 
void createOrReleaseLevelMats (const bool createOrRelease)
 
void createLevelMats ()
 
void computeVariances ()
 
cv::Mat_< PixelType > & srcColor (const int srcId)
 
const cv::Mat_< PixelType > & srcColor (const int srcId) const
 
cv::Mat_< PixelType > & dstColor (const int dstId)
 
const cv::Mat_< PixelType > & dstColor (const int dstId) const
 
cv::Mat_< float > & dstDisparity (const int dstId)
 
const cv::Mat_< float > & dstDisparity (const int dstId) const
 
cv::Mat_< bool > & dstMismatchedDisparityMask (const int dstId)
 
const cv::Mat_< bool > & dstMismatchedDisparityMask (const int dstId) const
 
cv::Mat_< bool > & dstFovMask (const int dstId)
 
const cv::Mat_< bool > & dstFovMask (const int dstId) const
 
cv::Mat_< float > & dstCost (const int dstId)
 
const cv::Mat_< float > & dstCost (const int dstId) const
 
cv::Mat_< float > & dstBackgroundDisparity (const int dstId)
 
const cv::Mat_< float > & dstBackgroundDisparity (const int dstId) const
 
cv::Mat_< bool > & srcForegroundMask (const int srcId)
 
const cv::Mat_< bool > & srcForegroundMask (const int srcId) const
 
cv::Mat_< bool > & srcForegroundMaskDilated (const int srcId)
 
const cv::Mat_< bool > & srcForegroundMaskDilated (const int srcId) const
 
cv::Mat_< bool > & dstForegroundMask (const int dstId)
 
const cv::Mat_< bool > & dstForegroundMask (const int dstId) const
 
cv::Mat_< float > & srcVariance (const int srcId)
 
const cv::Mat_< float > & srcVariance (const int srcId) const
 
cv::Mat_< float > & dstVariance (const int dstId)
 
const cv::Mat_< float > & dstVariance (const int dstId) const
 
cv::Mat_< float > & dstConfidence (const int dstId)
 
const cv::Mat_< float > & dstConfidence (const int dstId) const
 
cv::Mat_< int > & dstOverlap (const int dstId)
 
const cv::Mat_< int > & dstOverlap (const int dstId) const
 
int getDstSrcIdx (const int dstId, const int srcId) const
 
int getDstSrcIdx (const int dstId) const
 
cv::Mat_< cv::Vec2f > & dstProjWarp (const int dstId, const int srcId)
 
const cv::Mat_< cv::Vec2f > & dstProjWarp (const int dstId, const int srcId) const
 
cv::Mat_< cv::Vec2f > & dstProjWarpInv (const int dstId, const int srcId)
 
const cv::Mat_< cv::Vec2f > & dstProjWarpInv (const int dstId, const int srcId) const
 
cv::Mat_< PixelType > & dstProjColor (const int dstId, const int srcId)
 
const cv::Mat_< PixelType > & dstProjColor (const int dstId, const int srcId) const
 
cv::Mat_< PixelType > & dstProjColorBias (const int dstId, const int srcId)
 
const cv::Mat_< PixelType > & dstProjColorBias (const int dstId, const int srcId) const
 
cv::Mat_< PixelType > & dstProjColor (const int dstId)
 
const cv::Mat_< PixelType > & dstProjColor (const int dstId) const
 
cv::Mat_< PixelType > & dstProjColorBias (const int dstId)
 
const cv::Mat_< PixelType > & dstProjColorBias (const int dstId) const
 
void saveDstImage (const int dstIdx, const ImageType imageType, const float scale=1.0f)
 
void saveDebugImages ()
 
cv::Mat_< cv::Vec4f > overlayMismatchedDstDisparityMask (const int dstIdx)
 
void saveResults (const std::string &outputFormatsStr)
 

Public Attributes

int frameIdx
 
std::string frameName
 
int numFrames
 
int level
 
int numLevels
 
cv::Size sizeLevel
 
std::map< int, cv::Size > levelSizes
 
Camera::Rig rigSrc
 
Camera::Rig rigDst
 
std::vector< int > dst2srcIdxs
 
std::vector< Srcsrcs
 
std::vector< Dstdsts
 
std::vector< Projprojs
 
filesystem::path srcColorsPath
 
int widthFullSize
 
int heightFullSize
 
float varNoiseFullSize
 
float varNoiseFloor
 
float varHighThresh
 
bool hasForegroundMasks
 
filesystem::path outputDir
 
int numThreads
 

Constructor & Destructor Documentation

◆ PyramidLevel()

template<typename PixelType >
fb360_dep::depth_estimation::PyramidLevel< PixelType >::PyramidLevel ( const int  frameIdxIn,
const std::string &  frameNameIn,
const int  numFramesIn,
const int  levelIn,
const int  numLevelsIn,
const std::map< int, cv::Size > &  levelSizesIn,
const Camera::Rig rigSrcIn,
const Camera::Rig rigDstIn,
const std::vector< int > &  dst2srcIdxsIn,
const std::vector< cv::Mat_< PixelType >> &  srcColorsIn,
const std::vector< cv::Mat_< bool >> &  srcForegroundMasksIn,
const std::vector< cv::Mat_< bool >> &  dstFovMasksIn,
const std::vector< cv::Mat_< float >> &  dstBackgroundDisparitiesIn,
const int  widthFullSizeIn,
const int  heightFullSizeIn,
const std::string &  color,
const float  varNoiseFloor,
const float  varHighThresh,
const bool  useForegroundMasks,
const std::string &  outputRoot,
const int  threads 
)
inline

Member Function Documentation

◆ checkParams()

template<typename PixelType >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::checkParams ( )
inline

◆ computeVariances()

template<typename PixelType >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::computeVariances ( )
inline

◆ createIfEmpty()

template<typename PixelType >
template<typename T >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::createIfEmpty ( cv::Mat_< T > &  mat,
const cv::Size &  size,
const T &  val 
)
inline

◆ createLevelMats()

template<typename PixelType >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::createLevelMats ( )
inline

◆ createOrReleaseLevelMats()

template<typename PixelType >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::createOrReleaseLevelMats ( const bool  createOrRelease)
inline

◆ createOrReleaseMat()

template<typename PixelType >
template<typename T >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::createOrReleaseMat ( cv::Mat_< T > &  mat,
const bool  createOrRelease,
const cv::Size &  size,
const T &  val 
)
inline

◆ dstBackgroundDisparity() [1/2]

template<typename PixelType >
cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstBackgroundDisparity ( const int  dstId)
inline

◆ dstBackgroundDisparity() [2/2]

template<typename PixelType >
const cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstBackgroundDisparity ( const int  dstId) const
inline

◆ dstColor() [1/2]

template<typename PixelType >
cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstColor ( const int  dstId)
inline

◆ dstColor() [2/2]

template<typename PixelType >
const cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstColor ( const int  dstId) const
inline

◆ dstConfidence() [1/2]

template<typename PixelType >
cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstConfidence ( const int  dstId)
inline

◆ dstConfidence() [2/2]

template<typename PixelType >
const cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstConfidence ( const int  dstId) const
inline

◆ dstCost() [1/2]

template<typename PixelType >
cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstCost ( const int  dstId)
inline

◆ dstCost() [2/2]

template<typename PixelType >
const cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstCost ( const int  dstId) const
inline

◆ dstDisparity() [1/2]

template<typename PixelType >
cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstDisparity ( const int  dstId)
inline

◆ dstDisparity() [2/2]

template<typename PixelType >
const cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstDisparity ( const int  dstId) const
inline

◆ dstForegroundMask() [1/2]

template<typename PixelType >
cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstForegroundMask ( const int  dstId)
inline

◆ dstForegroundMask() [2/2]

template<typename PixelType >
const cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstForegroundMask ( const int  dstId) const
inline

◆ dstFovMask() [1/2]

template<typename PixelType >
cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstFovMask ( const int  dstId)
inline

◆ dstFovMask() [2/2]

template<typename PixelType >
const cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstFovMask ( const int  dstId) const
inline

◆ dstMismatchedDisparityMask() [1/2]

template<typename PixelType >
cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstMismatchedDisparityMask ( const int  dstId)
inline

◆ dstMismatchedDisparityMask() [2/2]

template<typename PixelType >
const cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstMismatchedDisparityMask ( const int  dstId) const
inline

◆ dstOverlap() [1/2]

template<typename PixelType >
cv::Mat_<int>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstOverlap ( const int  dstId)
inline

◆ dstOverlap() [2/2]

template<typename PixelType >
const cv::Mat_<int>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstOverlap ( const int  dstId) const
inline

◆ dstProjColor() [1/4]

template<typename PixelType >
cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjColor ( const int  dstId,
const int  srcId 
)
inline

◆ dstProjColor() [2/4]

template<typename PixelType >
const cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjColor ( const int  dstId,
const int  srcId 
) const
inline

◆ dstProjColor() [3/4]

template<typename PixelType >
cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjColor ( const int  dstId)
inline

◆ dstProjColor() [4/4]

template<typename PixelType >
const cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjColor ( const int  dstId) const
inline

◆ dstProjColorBias() [1/4]

template<typename PixelType >
cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjColorBias ( const int  dstId,
const int  srcId 
)
inline

◆ dstProjColorBias() [2/4]

template<typename PixelType >
const cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjColorBias ( const int  dstId,
const int  srcId 
) const
inline

◆ dstProjColorBias() [3/4]

template<typename PixelType >
cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjColorBias ( const int  dstId)
inline

◆ dstProjColorBias() [4/4]

template<typename PixelType >
const cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjColorBias ( const int  dstId) const
inline

◆ dstProjWarp() [1/2]

template<typename PixelType >
cv::Mat_<cv::Vec2f>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjWarp ( const int  dstId,
const int  srcId 
)
inline

◆ dstProjWarp() [2/2]

template<typename PixelType >
const cv::Mat_<cv::Vec2f>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjWarp ( const int  dstId,
const int  srcId 
) const
inline

◆ dstProjWarpInv() [1/2]

template<typename PixelType >
cv::Mat_<cv::Vec2f>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjWarpInv ( const int  dstId,
const int  srcId 
)
inline

◆ dstProjWarpInv() [2/2]

template<typename PixelType >
const cv::Mat_<cv::Vec2f>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstProjWarpInv ( const int  dstId,
const int  srcId 
) const
inline

◆ dstVariance() [1/2]

template<typename PixelType >
cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstVariance ( const int  dstId)
inline

◆ dstVariance() [2/2]

template<typename PixelType >
const cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::dstVariance ( const int  dstId) const
inline

◆ findDstIdx()

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::findDstIdx ( const std::string &  dstId) const
inline

◆ getDstSrcIdx() [1/2]

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::getDstSrcIdx ( const int  dstId,
const int  srcId 
) const
inline

◆ getDstSrcIdx() [2/2]

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::getDstSrcIdx ( const int  dstId) const
inline

◆ overlayMismatchedDstDisparityMask()

template<typename PixelType >
cv::Mat_<cv::Vec4f> fb360_dep::depth_estimation::PyramidLevel< PixelType >::overlayMismatchedDstDisparityMask ( const int  dstIdx)
inline

◆ saveDebugImages()

template<typename PixelType >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::saveDebugImages ( )
inline

◆ saveDstImage()

template<typename PixelType >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::saveDstImage ( const int  dstIdx,
const ImageType  imageType,
const float  scale = 1.0f 
)
inline

◆ saveResults()

template<typename PixelType >
void fb360_dep::depth_estimation::PyramidLevel< PixelType >::saveResults ( const std::string &  outputFormatsStr)
inline

◆ srcColor() [1/2]

template<typename PixelType >
cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcColor ( const int  srcId)
inline

◆ srcColor() [2/2]

template<typename PixelType >
const cv::Mat_<PixelType>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcColor ( const int  srcId) const
inline

◆ srcForegroundMask() [1/2]

template<typename PixelType >
cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcForegroundMask ( const int  srcId)
inline

◆ srcForegroundMask() [2/2]

template<typename PixelType >
const cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcForegroundMask ( const int  srcId) const
inline

◆ srcForegroundMaskDilated() [1/2]

template<typename PixelType >
cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcForegroundMaskDilated ( const int  srcId)
inline

◆ srcForegroundMaskDilated() [2/2]

template<typename PixelType >
const cv::Mat_<bool>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcForegroundMaskDilated ( const int  srcId) const
inline

◆ srcVariance() [1/2]

template<typename PixelType >
cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcVariance ( const int  srcId)
inline

◆ srcVariance() [2/2]

template<typename PixelType >
const cv::Mat_<float>& fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcVariance ( const int  srcId) const
inline

Member Data Documentation

◆ dst2srcIdxs

template<typename PixelType >
std::vector<int> fb360_dep::depth_estimation::PyramidLevel< PixelType >::dst2srcIdxs

◆ dsts

template<typename PixelType >
std::vector<Dst> fb360_dep::depth_estimation::PyramidLevel< PixelType >::dsts

◆ frameIdx

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::frameIdx

◆ frameName

template<typename PixelType >
std::string fb360_dep::depth_estimation::PyramidLevel< PixelType >::frameName

◆ hasForegroundMasks

template<typename PixelType >
bool fb360_dep::depth_estimation::PyramidLevel< PixelType >::hasForegroundMasks

◆ heightFullSize

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::heightFullSize

◆ level

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::level

◆ levelSizes

template<typename PixelType >
std::map<int, cv::Size> fb360_dep::depth_estimation::PyramidLevel< PixelType >::levelSizes

◆ numFrames

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::numFrames

◆ numLevels

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::numLevels

◆ numThreads

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::numThreads

◆ outputDir

template<typename PixelType >
filesystem::path fb360_dep::depth_estimation::PyramidLevel< PixelType >::outputDir

◆ projs

template<typename PixelType >
std::vector<Proj> fb360_dep::depth_estimation::PyramidLevel< PixelType >::projs

◆ rigDst

template<typename PixelType >
Camera::Rig fb360_dep::depth_estimation::PyramidLevel< PixelType >::rigDst

◆ rigSrc

template<typename PixelType >
Camera::Rig fb360_dep::depth_estimation::PyramidLevel< PixelType >::rigSrc

◆ sizeLevel

template<typename PixelType >
cv::Size fb360_dep::depth_estimation::PyramidLevel< PixelType >::sizeLevel

◆ srcColorsPath

template<typename PixelType >
filesystem::path fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcColorsPath

◆ srcs

template<typename PixelType >
std::vector<Src> fb360_dep::depth_estimation::PyramidLevel< PixelType >::srcs

◆ varHighThresh

template<typename PixelType >
float fb360_dep::depth_estimation::PyramidLevel< PixelType >::varHighThresh

◆ varNoiseFloor

template<typename PixelType >
float fb360_dep::depth_estimation::PyramidLevel< PixelType >::varNoiseFloor

◆ varNoiseFullSize

template<typename PixelType >
float fb360_dep::depth_estimation::PyramidLevel< PixelType >::varNoiseFullSize

◆ widthFullSize

template<typename PixelType >
int fb360_dep::depth_estimation::PyramidLevel< PixelType >::widthFullSize

The documentation for this struct was generated from the following file: