Recombining Extracted Wavelets from MLT?

2 replies116 views
Cosgrove's Cosmos (Patrick Cosgrove) avatar
Hi Folks,

A question to the community. 

I can take an image, and using MLT,  I can set it up to use eight layers and a residual.  

I can then extract each layer, one at a time, and save the results so that I have images of L1 through L8 and the Residual image. 

I would have expected that I could then recombine these images using PixelMath, using a simple image addition:L1+L2+L3+L4+L5+L6+L7+L8+R

When I do this, I get a new image that is close to the original, but it looks smeared and less sharp.

Clearly, I am missing something here. 

Why do I not end up with y starting image?
Is there a different way of combining them that would allow me to recreate the original image?

I was looking at extracting the layers, processing some, and then recombining them -  Any help here would be muchly appreciated!

Thanks,
Pat
jewzaam avatar
How exactly are you creating the individual layer images?  Are you subtracting the resulting layer from the source/original image before extracting subsequent layers?
Cosgrove's Cosmos (Patrick Cosgrove) avatar
How exactly are you creating the individual layer images?  Are you subtracting the resulting layer from the source/original image before extracting subsequent layers?

No - I just disabled all of the layers but one and then applied that to a copy of the image.   I had assumed (I know this is where most troubles lie!) that the layer  thus extracted would stand alone. 

So I set MLT up to work with the number of layers I wanted.
Then I enabled a single layer while disabling all of the other layers.
I dragged the triangle onto a clone of the full image. 
Then I renamed the resulting image for the Layer extracted. 
I did the same with the residual image.


It seemed like this would decompose the image into its individual wavelet layers - and having done this, these could then be recombined to recreate the starting image.   

I have seen people try to do this with the wavelet layers extracted from the ExtractWaveletLayers script - but I understand that this is purely a visualization tool, and each layer extracted is also stretched for convenient visualization. 

However it is obvious that the extracted layers from MLT have no such stretch, so I was expecting a simple recombination was possible. 

Thanks,
Pat
Related discussions
Horizontally aligning planetary images taken with AZ mounts
Hi everyone, Since I own only an Alt-Az mount, I'm looking for a software or technique that can help me in aligning multiple (Jupiter) final images, so the resulting animation comprised of these images, does not reveal the field rotation caused b...
Image processing technique for aligning and rotating planetary images post-capture.
Sep 23, 2021