Author Topic: Question about ATrousWaveletTransform  (Read 3600 times)

Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 345
Question about ATrousWaveletTransform
« on: 2012 March 09 13:49:18 »
Hello

When I apply ATWT to an image, suppressing only the residual layer above 7 and then subtract it form the original image, It is supposed tho get the same result as applying applying ATWT to the image and supressing layers 1-7 or am I wrong?

regards
Geert
Geert Vanhauwaert

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: Question about ATrousWaveletTransform
« Reply #1 on: 2012 March 09 14:16:30 »
Hi Geert,

No, it is not. You will get different results.

Saludos, Alejandro.

Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 345
Re: Question about ATrousWaveletTransform
« Reply #2 on: 2012 March 09 15:27:38 »
ok, but why?
Geert Vanhauwaert

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: Question about ATrousWaveletTransform
« Reply #3 on: 2012 March 09 15:42:10 »
ahh, shorter the question more difficult the answer!
I really do not know. May be someone else.

Saludos.

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: Question about ATrousWaveletTransform
« Reply #4 on: 2012 March 09 18:34:16 »
I'll try answering by doing some (hopefully educated) guessing: ATWT is not linear. In a picture, all the layers are not really independent from one another.
Philip de Louraille

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Question about ATrousWaveletTransform
« Reply #5 on: 2012 March 09 19:10:53 »
Hi Geert

From a mathematical point of view, yes, it is exactly the same. The inverse ATrous Waveletets transform is the addition of every layer, plus the residual. This is the key point of our scale separation method.

In practice, you may find some differences in both procedures, due the "image interpretation" of the data, instead of more abstract wavelet layers. More explicitly, wavelet layers have a "zero mean value". They have positive and negative values, according to dark or bright features, compared to the surroundings (at a particular scale level). The residual layer, on the other side, is a strongly blurred image, with the same mean value as the original image.
So, if you apply the ATWT process to a image, deleting the residual layer, you'll end with an image with a lot of zeros. All the dark features are clipped, and only bright features remain.
If you clone the image, and supress all wavelet layers but the residual, the residual will be displayed as it is, no clipping. Now, if you subtract it to the original image (using PixelMath), using the Rescale option enabled, you'll get the first layers, rescaled to the normalized range. The "zero value" will be shifted somewhere in that range, usually near the center. The result will look gray, with darker or brighter features preserved. If you disable the rescale option, you'll get the same result as in the first procedure. Dark features will be clipped, and the "zero mean value" of those layers will remain at zero.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: Question about ATrousWaveletTransform
« Reply #6 on: 2012 March 10 05:06:41 »
My (hopefully educated - but shown otherwise!) guess was wrong then!
Philip de Louraille

Offline gvanhau

  • PixInsight Old Hand
  • ****
  • Posts: 345
Re: Question about ATrousWaveletTransform
« Reply #7 on: 2012 March 10 07:57:26 »
Thanks Alejandro, Philip and specially Carlos for your interest.
Now it is a lot clearer to me.

Regards
Geert

Geert Vanhauwaert