FOUND
Loading...
Searching...
No Matches
edge.cpp File Reference
#include "distance/edge.hpp"
#include <unordered_map>
#include <algorithm>
#include <memory>
#include <vector>
#include <functional>
#include <unordered_set>
#include "common/style.hpp"
#include "common/decimal.hpp"
Include dependency graph for edge.cpp:

Namespaces

namespace  found
 

Functions

bool found::LabelPresent (int label, int *adjacentLabels, int size)
 Checks if a label is present in the list of adjacent labels.
 
void found::UpdateComponent (Component &component, uint64_t index, Vec2 &pixel)
 Updates the component with the given pixel.
 
int found::NWayEquivalenceAdd (const Image &image, uint64_t index, int &L, int adjacentLabels[4], int size, std::unordered_map< int, Component > &components, std::unordered_map< int, int > &equivalencies)
 Adds a pixel to some component, creating a new component if necessary.
 
Components found::ConnectedComponentsAlgorithm (const Image &image, std::function< bool(uint64_t, const Image &)> Criteria)
 Computes the groups of components within the image.