gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #15801] Point-based interpolation method for rebinning


From: Mohammad Akhlaghi
Subject: [task #15801] Point-based interpolation method for rebinning
Date: Mon, 26 Oct 2020 07:04:20 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0

Follow-up Comment #1, task #15801 (project gnuastro):

This is part of what we discussed privately but can be relevant:

Most existing interpolation methods (for example those in Scipy
<https://scipy-cookbook.readthedocs.io/items/Rebinning.html>, that Raul
initially referenced) are interpolation-based: assuming each pixel as a point
in its center on the coordinate grid. Then finding the new grid values based
on the positions of the centers of the pixels of the new grid.

But so far, Warp doesn't use this type of interpolation (even though it is so
much easier to implement!) because it is terrible for low signal-to-noise
images and generally interpolation always adds so many systematics and adds
noise.

What Warp currently does is to put the new pixel over the old one, find the
polygon within each input pixel that overlaps with each output pixel.
calculate that polygon's area, and multiply the fractional area by the pixel
value (to get the fractional value) and finally to put that fractional value
into the value of the output pixel. There is thus no interpolation involved
and everything is robust and accurate and the signal-to-noise increases, its
like a small convolution. 

But I am not against using a point-based interpolation method of rebinning if
someone else is interested to add it (I just don't have time to implement it
myself)!

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?15801>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]