File: combinatorialthresholder.h

package info (click to toggle)
aoflagger 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,868 kB
  • sloc: cpp: 52,164; python: 152; sh: 60; makefile: 17
file content (25 lines) | stat: -rw-r--r-- 698 bytes parent folder | download
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
#ifndef COMBINATORIAL_THRESHOLDER_H
#define COMBINATORIAL_THRESHOLDER_H

#include <cstddef>
#include <cstring>

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

class CombinatorialThresholder {
 public:
  static void VarThreshold(const Image2D* input, Mask2D* mask, size_t length,
                           num_t threshold);

  static void HorizontalVarThreshold(const Image2D* input, Mask2D* mask,
                                     size_t length, num_t threshold);

  static void VerticalVarThreshold(const Image2D* input, Mask2D* mask,
                                   size_t length, num_t threshold);

 private:
  CombinatorialThresholder() = delete;
};

#endif