File: simple_clean.h

package info (click to toggle)
wsclean 3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,296 kB
  • sloc: cpp: 129,246; python: 22,066; sh: 360; ansic: 230; makefile: 185
file content (35 lines) | stat: -rw-r--r-- 1,331 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
28
29
30
31
32
33
34
35
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef RADLER_ALGORITHMS_SIMPLE_CLEAN_H_
#define RADLER_ALGORITHMS_SIMPLE_CLEAN_H_

#include <cstring>

#ifdef __SSE__
#define USE_INTRINSICS
#endif

namespace radler::algorithms::simple_clean {

void SubtractImage(float* image, const float* psf, size_t width, size_t height,
                   size_t x, size_t y, float factor);

void PartialSubtractImage(float* image, const float* psf, size_t width,
                          size_t height, size_t x, size_t y, float factor,
                          size_t start_y, size_t end_y);

void PartialSubtractImage(float* image, size_t image_width, size_t image_height,
                          const float* psf, size_t psf_width, size_t psf_height,
                          size_t x, size_t y, float factor, size_t start_y,
                          size_t end_y);

#if defined __AVX__ && defined USE_INTRINSICS
void PartialSubtractImageAVX(double* image, size_t image_width,
                             size_t image_height, const double* psf,
                             size_t psf_width, size_t psf_height, size_t x,
                             size_t y, double factor, size_t start_y,
                             size_t end_y);
#endif

}  // namespace radler::algorithms::simple_clean
#endif  // RADLER_ALGORITHMS_SIMPLE_CLEAN_H_