24#ifndef _PANODATA_IMAGEVARIABLE_H
25#define _PANODATA_IMAGEVARIABLE_H
184 if (m_ptr ==
link->m_ptr)
186 DEBUG_INFO(
"Attempt to link already linked variables");
199 m_ptr.reset(
new Type(*m_ptr));
205 return m_ptr.use_count() > 1;
An ImageVariable stores a value that can be linked to other ImageVariables of the same type.
bool isLinkedWith(const ImageVariable< Type > *otherVariable) const
Find out if this variable is linked to a given variable.
Type getData() const
get the variable's value
ImageVariable()
constructor
~ImageVariable()
destructor
void setData(const Type data)
Set the variable groups' value.
void linkWith(ImageVariable< Type > *link)
Create a link.
void removeLinks()
remove all links
bool isLinked() const
Find out if there are other linked variables.
std::shared_ptr< Type > m_ptr
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.