Optimized Belief Propagation (CPU and GPU)
BpFileHandling Class Reference

Class to retrieve path of stereo set files for reading and for output. More...

#include <BpFileHandling.h>

Public Member Functions

 BpFileHandling (const std::string &stereo_set_name)
 Constructor takes stereo set name as input, which must match the directory name of the stereo set. More...
 
std::filesystem::path RefImagePath () const
 Return path to reference image with valid extension if found, otherwise throw filesystem error. More...
 
std::filesystem::path TestImagePath () const
 Return path to test image with valid extension if found, otherwise throw filesystem error. More...
 
const std::filesystem::path GetCurrentOutputDisparityFilePathAndIncrement ()
 Return path to use for current output disparity and then increment (to support multiple computed output disparity maps) More...
 
const std::filesystem::path GroundTruthDisparityFilePath () const
 Get file path to ground truth disparity map. More...
 

Detailed Description

Class to retrieve path of stereo set files for reading and for output.

Definition at line 38 of file BpFileHandling.h.

Constructor & Destructor Documentation

◆ BpFileHandling()

BpFileHandling::BpFileHandling ( const std::string &  stereo_set_name)
inlineexplicit

Constructor takes stereo set name as input, which must match the directory name of the stereo set.

Parameters
stereo_set_name

Definition at line 46 of file BpFileHandling.h.

Member Function Documentation

◆ GetCurrentOutputDisparityFilePathAndIncrement()

const std::filesystem::path BpFileHandling::GetCurrentOutputDisparityFilePathAndIncrement ( )
inline

Return path to use for current output disparity and then increment (to support multiple computed output disparity maps)

Returns
File path for output disparity map

Definition at line 71 of file BpFileHandling.h.

Here is the caller graph for this function:

◆ GroundTruthDisparityFilePath()

const std::filesystem::path BpFileHandling::GroundTruthDisparityFilePath ( ) const
inline

Get file path to ground truth disparity map.

Returns
File path for ground truth disparity map of current stereo set

Definition at line 81 of file BpFileHandling.h.

Here is the caller graph for this function:

◆ RefImagePath()

std::filesystem::path BpFileHandling::RefImagePath ( ) const

Return path to reference image with valid extension if found, otherwise throw filesystem error.

Returns
File path of reference image for current stereo set

Definition at line 83 of file BpFileHandling.cpp.

Here is the caller graph for this function:

◆ TestImagePath()

std::filesystem::path BpFileHandling::TestImagePath ( ) const

Return path to test image with valid extension if found, otherwise throw filesystem error.

Returns
File path of test image for current stereo set

Definition at line 108 of file BpFileHandling.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: