File: rmsimage.h

package info (click to toggle)
wsclean 2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,196 kB
  • sloc: cpp: 34,504; ansic: 234; python: 174; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 790 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
#ifndef RMS_IMAGE_H
#define RMS_IMAGE_H

#include "image.h"

class RMSImage
{
public:
	static void Make(Image& rmsOutput, const Image& inputImage, double windowSize, long double beamMaj, long double beamMin, long double beamPA, long double pixelScaleL, long double pixelScaleM);
	
	static void SlidingMinimum(Image& output, const Image& input, size_t windowSize);
	
	static void SlidingMaximum(Image& output, const Image& input, size_t windowSize)
	{
		Image flipped(input);
		flipped.Negate();
		SlidingMinimum(output, flipped, windowSize);
		output.Negate();
	}
	
	static void MakeWithNegativityLimit(Image& rmsOutput, const Image& inputImage, double windowSize, long double beamMaj, long double beamMin, long double beamPA, long double pixelScaleL, long double pixelScaleM);
};

#endif