File: testtools.h

package info (click to toggle)
aoflagger 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,000 kB
  • sloc: cpp: 67,891; python: 497; sh: 242; makefile: 22
file content (27 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef TEST_ALGORITHMS_TESTTOOLS_H
#define TEST_ALGORITHMS_TESTTOOLS_H

#include "../../structures/image2d.h"
#include "../../structures/mask2d.h"

#include <functional>
#include <set>

namespace test_tools {

using SumThresholdFunction =
    std::function<void(const Image2D*, Mask2D*, Mask2D*, size_t, num_t)>;

void CompareVerticalSumThreshold(SumThresholdFunction algorithm,
                                 const std::set<size_t>& skips);

void CompareHorizontalSumThreshold(SumThresholdFunction algorithm);

void IntroduceGap(const Image2D& input, const Mask2D& mask, Image2D& mInput,
                  Mask2D& mMask, Mask2D& missing);

void RemoveGap(Mask2D& mask, const Mask2D& mMask);

}  // namespace test_tools

#endif