OPAL
Public Types | Public Member Functions | List of all members
OPAL Class Reference

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
 

Detailed Description

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:

Constructor & Destructor Documentation

§ OPAL()

OPAL::OPAL ( const OPALSettings settings,
const DatabaseType database 
)
Parameters
[in]settingsSet of OPAL options.
[in]databaseSet of input images and their segmentations. Image to be segmented is database[0].

Member Function Documentation

§ ConstrainedInitialization()

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).

§ getFieldT()

const Image<size_t>& OPAL::getFieldT ( ) const
inline
Returns
Indexes of images in database nearest neighbors belong to.

§ getFieldX()

const Image<int>& OPAL::getFieldX ( ) const
inline
Returns
X-coordinate offsets between nearest neighbor patches.

§ getFieldY()

const Image<int>& OPAL::getFieldY ( ) const
inline
Returns
Y-coordinate offsets between nearest neighbor patches.

§ GetOutput()

SegType OPAL::GetOutput ( ) const
inline
Returns
The result segmentation of input image.

§ getSSDMap()

const Image<SSDType>& OPAL::getSSDMap ( ) const
inline
Returns
Map of SSD values between patches.

§ Run()

void OPAL::Run ( )

Run OPAL algorithm.

Executes all stages successively.


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