44 if (image.YawisLinked())
48 if (image.YawisLinkedWith(pano.
getImage(
j)))
59 for (
size_t i = 0;
i < cps.size(); ++
i)
72 const unsigned int nrImages =
overlap.getNrOfImages();
75 for (
size_t i = 0;
i < nrImages-1; ++
i)
77 for (
size_t j =
i + 1;
j < nrImages; ++
j)
88template<
typename VALUETYPE>
120 comp.resize(counter);
121 for (
size_t imgNr = 0; imgNr <
marks.size(); ++imgNr)
150 while (!queue.empty())
152 const size_t vertex = queue.front();
185 std::queue<size_t> queue;
class for calculating overlap of images
virtual const CPVector & getCtrlPoints() const =0
get all control point of this Panorama
virtual const SrcPanoImage & getImage(std::size_t nr) const =0
get a panorama image, counting starts with 0
virtual std::size_t getNrOfImages() const =0
number of images.
All variables of a source image.
abstract base functor for breadth first search in ImageGraph
Components GetComponents()
find all connected components
std::vector< HuginBase::UIntSet > GraphList
stores adjacency list for graph
ImageGraph(const HuginBase::PanoramaData &pano, bool ignoreLinkedPosition=false)
constructor, build internal representation of graph
void VisitAllImages(const size_t startImg, bool forceAllComponents, BreadthFirstSearchVisitor *visitor)
visit all images via a breadth first search algorithm for each visited images, the functor visitor is...
bool IsConnected()
check if all images are connected
std::vector< HuginBase::UIntSet > Components
stores the components of the graph
std::vector< ControlPoint > CPVector
std::set< unsigned int > UIntSet
void BreadthFirstSearchVisit(const ImageGraph::GraphList &graph, std::queue< size_t > &queue, std::vector< bool > &visited, BreadthFirstSearchVisitor *visitor)
void DepthFirstSearch(const ImageGraph::GraphList &graph, std::vector< VALUETYPE > &marks, const size_t vertex, const VALUETYPE setType, const VALUETYPE unvisitedType)
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.