AliceVision
Photogrammetric Computer Vision Framework
Classes | Public Types | Public Member Functions | List of all members
aliceVision::GraphcutSeams Class Reference

Classes

struct  InputData
 

Public Types

using IndexedColor = std::pair< IndexT, image::RGBfColor >
 
using PixelInfo = std::vector< IndexedColor >
 

Public Member Functions

 GraphcutSeams (size_t outputWidth, size_t outputHeight)
 
std::pair< IndexT, image::RGBfColorfindIndex (const PixelInfo &pix, IndexT id)
 
bool existIndex (const PixelInfo &pix, IndexT id)
 
bool setOriginalLabels (const image::Image< IndexT > &existing_labels)
 
bool append (const image::Image< image::RGBfColor > &input, const image::Image< unsigned char > &inputMask, IndexT currentIndex, size_t offset_x, size_t offset_y)
 
void setMaximalDistance (int dist)
 
bool createInputOverlappingObservations (image::Image< PixelInfo > &graphCutInput, const BoundingBox &interestBbox)
 
bool fixUpscaling (image::Image< IndexT > &labels, const image::Image< PixelInfo > &graphCutInput)
 
bool computeInputDistanceMap (image::Image< int > &distanceMap, const image::Image< IndexT > &localLabels, IndexT inputId)
 
bool processInput (double &newCost, InputData &input)
 
bool process ()
 
double cost (const image::Image< IndexT > localLabels, const image::Image< PixelInfo > &input, IndexT currentLabel)
 
bool alphaExpansion (image::Image< IndexT > &labels, const image::Image< int > &distanceMap, const image::Image< PixelInfo > &input, IndexT currentLabel)
 
image::Image< IndexT > & getLabels ()
 

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