-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinkutils.hpp
More file actions
24 lines (18 loc) · 836 Bytes
/
linkutils.hpp
File metadata and controls
24 lines (18 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-FileCopyrightText: 2017 Petros Koutsolampros
//
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include "latticemap.hpp"
#include "genlib/exceptions.hpp"
#include <vector>
namespace sala {
class InvalidLinkException : public genlib::BaseException {
public:
InvalidLinkException(std::string message) : genlib::BaseException(std::move(message)) {}
};
std::vector<PixelRefPair> pixelateMergeLines(const std::vector<Line4f> &mergeLines,
LatticeMap ¤tMap);
void mergePixelPairs(const std::vector<PixelRefPair> &links, LatticeMap ¤tMap);
void unmergePixelPairs(const std::vector<PixelRefPair> &links, LatticeMap ¤tMap);
std::vector<SimpleLine> getMergedPixelsAsLines(LatticeMap ¤tMap);
} // namespace sala