OPAL
|
Class implementing the core of OPAL algorithm. More...
#include <OPAL.h>
Public Types | |
using | ImgPixelType = double |
using | SegPixelType = int |
using | DatabaseType = ImageDatabase< ImgPixelType, SegPixelType > |
using | ImgType = DatabaseType::ImgType |
using | SegType = DatabaseType::SegType |
using | SSDType = SSD< DatabaseType > |
Public Member Functions | |
OPAL (const OPALSettings &settings, const DatabaseType &database) | |
void | ConstrainedInitialization () |
Constraint initialization. More... | |
void | BuildSegmentation () |
SegType | GetOutput () const |
void | Run () |
Run OPAL algorithm. More... | |
const Image< int > & | getFieldX () const |
const Image< int > & | getFieldY () const |
const Image< size_t > & | getFieldT () const |
const Image< SSDType > & | getSSDMap () const |
Class implementing the core of OPAL algorithm.
Class responsible for the whole OPAL algorithm. Takes a database of images and a set of options to be constructed.
Implements three main steps of OPAL:
OPAL::OPAL | ( | const OPALSettings & | settings, |
const DatabaseType & | database | ||
) |
void OPAL::ConstrainedInitialization | ( | ) |
Constraint initialization.
First step of OPAL algorithm.
For each of the image located at (x, y) a random patch correspondence located at {(x',y'), t'} where t' is the index of template in the library is assigned. x' and y' are within the square initialization window around (x, y).
|
inline |
|
inline |
|
inline |
|
inline |
void OPAL::Run | ( | ) |
Run OPAL algorithm.
Executes all stages successively.