Move Gaussian drawing function from WSClean
1 unresolved thread
1 unresolved thread
This is a first refactoring step to get a function DrawGaussianToLm()
in schaapcommon. I'll also need a DrawGaussianToXy()
function later on, hence the Lm in the name.
The fft
module has also been renamed to the more generic name math
, as the presence of convolution operation in fft is already a bit dubious.
Edited by Andre Offringa
Merge request reports
Activity
assigned to @offringa
requested review from @nimalan-m
I can't add comments on renamed files.
https://git.astron.nl/RD/schaapcommon/-/blob/move-draw-gaussian/src/math/restoreimage.cc#L22 https://git.astron.nl/RD/schaapcommon/-/blob/move-draw-gaussian/src/math/restoreimage.cc#L78
if (beam_major_axis == 0.0 && beam_minor_axis == 0.0)
if (beam_major_axis == 0.0L && beam_minor_axis == 0.0L)
- src/math/drawgaussian.cc 0 → 100644
1 #include "drawgaussian.h" 2 3 #include <cmath> 4 5 #include <aocommon/imagecoordinates.h> 6 7 using aocommon::ImageCoordinates; 8 9 namespace { 10 long double Gaussian(long double x, long double sigma) { changed this line in version 4 of the diff
Thanks @nimalan-m , all good comments. Should be all fixed.
mentioned in commit 94c40260
Please register or sign in to reply