Author Topic: Resample Lanczos-4 problem  (Read 3717 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Resample Lanczos-4 problem
« on: 2012 April 10 15:25:10 »
I am seeing an intermittent problem with Resample when using Lanczos-4 interpolation.

Files are in 'Forum Shared Files/mschuster/lanczos-4'. Open target.fit, drag its view selector to create a clone, and then drag the icon to apply the Resample process to the clone.

The results produced most of the time are fine, but occasionally I see some bad pixel values generated (white pixels along the top of the image). The other fit files in the folder show good and bad results.

The problem seems to be specific to Lanczos-4. I have not seen this problem with the other interpolation modes.

01.07.06.793 Starbuck (eng x86-64) on Win7.

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Resample Lanczos-4 problem
« Reply #1 on: 2012 April 10 18:43:35 »
I believe the announcement of the Lanczos interpolation included a warning that under some conditions artifacts can be introduced. I haven't compared your images to those warnings, sorry.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Resample Lanczos-4 problem
« Reply #2 on: 2012 April 10 19:18:03 »
Hi Sander, could be, but when I run the same process multiple times I get differing results, so maybe this is different.

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Resample Lanczos-4 problem
« Reply #3 on: 2012 April 10 19:27:43 »
Hi Mike,

I look forward to hearing from the experts.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Resample Lanczos-4 problem
« Reply #4 on: 2012 April 11 02:28:06 »
Hi Mike,

Bug confirmed. This should not happen with any interpolation algorithm.

This is one of the weirdest things I've seen in a long time. Since the artifacts are variable and the problem is intermittent, It looks like the typical thread synchronization error. However, the bug happens exactly the same way with parallel execution disabled. With only one thread running one would expect the same result on each execution, so something very strange is happening.

Thank you for detecting this problem. I'll investigate and fix it as soon as possible.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Resample Lanczos-4 problem
« Reply #5 on: 2012 April 11 10:57:50 »
some kind of weird floating point bug perhaps? too bad we don't have other architectures besides x86 anymore to get sanity checks on stuff like this.

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Resample Lanczos-4 problem
« Reply #6 on: 2012 April 11 17:44:25 »
Please check Lanczos-3 also. It looks like it suffers the same problem as Lanczos-4. The problem is very rare however, by far most of the time it works fine.