Neven Krčmarek’s Lighthouse script elegantly simplifies the surgical precision of wavelet sharpening, making high-end astronomical processing accessible to the dedicated community. It is a masterclass in balancing multi-scale detail enhancement with noise control through open-source innovation.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Free Lighthouse script for PixInsight Version 1.4 Update
Added:Hello beautiful people and welcome to my channel. Today I'm presenting a version 1.4 of Lighthouse Script. [music] Lighthouse is a completely free script for Pix Insight and I do plan to keep it that way. If you'd like to help support its development, you can buy me a coffee or join my Patreon page. The funds will support new features, testing, and it will allow more time for me to create even more tools for this Pixight community. So, thank you. Very excited to show you what's new in the version 1.4. [music] Let's start. Velet sharpening. It's an advanced type of sharpening per channel white balance. I fixed the picker to be more accurate while while white balancing the image. I've also added auto white balance so it's even easier to make the white balance if you need one. I've added multiple mask regions. Very excited to show you that.
Some of you asked for invert selection.
So, I've added that. [music] Of course, apply progress now has a percentage and what's going on the behind the scenes when you apply on a larger image. So, you have to wait a bit. Faster apply is an optimization for a speed up. And that's the last of the updates.
Let's start from top to bottom. The first thing is auto white balance and fixed picker.
If you have color calibrated your image, you don't have to color calibrate it again. But let's say you did some screw-ups and you didn't calibrate it right. You can see the histogram is not well aligned here.
So you can just click auto white balance and it will align the histogram. So you can have before after.
This is before and this is after.
So it's a little better image. Color fixed.
Also the picker is now more accurate. Let me pull out the moon image.
It's yellow. And the moon is not yellow.
We can pick. Let me just reset this.
If we go to auto white balance, it will try to improve, but it's still a bit yellow. It's okayish, but if we boost up the saturation, we see the yellowess coming out still. So, we can use now the picker to be more accurate. Let me find a good spot on the moon. We are aiming for a natural gray.
Okay, let's see.
This is great. Now it's much better color calibration of the moon.
And now the colors are better and accurate.
Cool. Big update is multiple mask region. [music] This is a must-h have option. You go to the luminosity masks, enable luminosity masks, and now you have some additional options here.
It's not [music] select region anymore.
It's add region. So you click on that and it's like in the last version. Just mark the part of the image that you want to select.
And you can now add another region. I want to mask this dis disc this in a sort of disk.
Okay, we have now two masks. Let me show you the masks.
Uh it's lights depth one and target.
Of course, we can hide ants and see. And we can also invert the masks.
The marching ants will change color to blue when it's inverted. So you know if you have blue ants the mask is inverted and you when you have yellow ants their mask is [music] normal. Of course you will also have a click on the invert. So you you'll know [music] when it's inverted by this also.
Okay. Now we can manipulate. [music] Let me hide the ants. We can manipulate the chosen mask. You can select the mask on the image for which you want to improve.
We are selecting this. And these two options are now for this disc this mask only.
You can lower the strength if it's too high.
We can manage the [clears throat] select feather and so on.
When we switch just click on this mask and we can now adjust a strength for this mask and feather for this mask.
Let's hide the masks. So you can manipulate what strength and feather you want for particular mask that you have on the image.
So that's cool. Let me remove this and we can I don't know we can tone down the exposure. Maybe this image is already processed, but you can see the before after. If I want to turn down these galaxies because they are too bright maybe.
Clickity clack.
Let me show the mask.
The strength for this I would like it more of strength for this because it's a brighter the strength for this is okay.
So we want to apply because it's brighter in the mask the slider the adjustments will be harder on the white masks.
Hide the ends. We can now remove show mask.
And now we'll have a harder exposure than before. So that's way that's how you can manipulate the mask regions when you have a couple of things that you want to change, but there are different brightness levels. So you can manage [music] it with the masks and the strength of the masks. Of course, you can go with the white white mask and click there. Here we can we can also change the white mask per selection.
We turn this into white mask. The strength also applies to the white mask.
So, if you have a brighter object that you want to tone down, you can have a stronger mask. And if you have a lower brightness object that you also want to tone down, but not exactly the same as this one, you can lower the strength and the effect will be smaller.
Okay, let me remove show mask hide ends.
Because it's a white mask, we have to create a bigger feather.
So, it hides the edges.
Before, after. It still has some edging, but it's not important right now.
Great, isn't it?
You can remove the mask. The one that is selected will be removed.
And now you can we can remove this mask.
And that's how you can remove all the masks one by one. Of course, if you want the effect to be applied on the background, uh let's add a region here.
Let's invert the mask. Now it's blue. We can show the mask feather is already on and let me strength will be. So this applies now on the inverted mask. These options are applying on the inverted mask because this is not masked. Everything outside is masked and that counts as a mask.
Right? So we are applying this options only on the background now.
So we want to protect this galaxy from some adjustments.
And when we uncclick the show mask, hide the ants.
You can now see if you turn down the background, this galaxy will stay bright as before.
show you before after of course I didn't mask it well but that's not the point now everything is tone toning down except the selected mask but it's not selected it's inverted you know what I mean you'll get it it's blue okay I know it's inverted it.
Click it. Click remove it and reset it all.
And we are back to beginning. So that's select multiple regions update. And now moving on to the last update. The most important one for me is wavelet sharpening.
You can click here. It has its own box and this is how it looks. So what is a wavelet sharpening? It's it's based on atro vlet transform that you have in pixight as a processing module and it slices the image uh into six wavelets and [snorts] they are based on the pixel size. So you can sharpen a first slice that is based on one pixel and you can sharpen the finest detail uh on a one pixel size.
So let me show you. It's very visible on the planets and the moon.
Before after. Okay, let me squeeze it some more.
And you can see the fine details of the moon are now sharpening.
But if you don't have fine details uh in the image and it's [music] a bit blurry, you don't have a good seeing that night, you can go to the rest of the wavelets and find the right spot for the sharpening of that particular region or planet or nebula etc. So we are now applying the sharpening on a two pixel size.
Let me show you how it looks on a four pixel size. It's getting bigger now.
It's similar to the clarity.
When you choose the clarity radius, you'll also choosing the pixel size that you want the clarity to be based on. But you can only pick one size for the one adjustment. And here you can pick six sizes and apply dnoising also to that particular wavellet layer.
We can go to four.
And now we having some artifacts that we don't want because this is a good image of the moon. And it's very sharp in the beginning. I can use the first two wavelets for it to get a sharper craters and details out. We can also use now auto white balance to have an accurate color of the moon.
bit of contrast.
Let me lighten up.
We can go to the whites. We can also use now because the background is black.
Press alt and move the blacks to the left.
So you see now the blacks will be black. That's how you can clean your backgrounds from planets and moon images.
So now we know that this part of the image is blacky black.
Bit of saturation.
It's still a bit greenish.
Let me choose a picker to have some better color balancing.
Okay, good enough. [music] And that's how you can sharpen the moon.
And this is particularly good on the planet images.
Let me show you. This is a recording of Jupiter.
As you can see, it's quite blurry. And we can use, by the way, the filter has two filters, the default and gaussian.
The differences are the default version is crispier. It uses a small smaller kernel shape uh three t three tap shape.
And the goian uses a five tap shape kernel and it's a a smoother effect of sharpening.
So when you see some artifacts on the default filter like oversharpening or maybe some halos, you can switch to the gaus gausian and it's likely that they will disappear or or turn down. So let's now sharp. If we go to the pixel one, we don't have any details in the pixel one wavelength because it's too blurry. It's not on that layer. This image of Jupiter is not on a one pixel scale level. So, we cannot sharpen it.
We will just sharpen the noise on that level.
The details are in other wavel uh layers.
They are also not in the second two pixel.
So let's write third third. So now we can see some details popping up. I have some artifact artifact here but it's not important now. So now we can see on the third wavelet we have sharpening of the Jupiter.
Now let's go to fourth.
Let's click on auto white balance so we can balance out the colors. We can even go this far to make it pop.
Let's go with the whites to make it even shinier.
And let's try now the fifth wavelet.
Okay, now it's maybe going overboard.
So now you can see that this image of Jupiter is on the third and fourth wavelet. The first two are not exactly doing anything.
We are I switched to go gausian accidentally, but now you can see the difference how the linear default version is crispier and gausian is more softer.
You'll get the hang of it. And now you can move on the strength.
If you oversharpen, you can play with the strength and [music] not go that far.
It's always good to not zoom in, but zoom out. But I can zoom out because it's a smaller image.
Now we can play with it. Even more sharpening. I will add on a third.
So the textures are popping out on the north and the south side. And this is the before after it's amazing amazingly better.
So you now you can see the power of the wavelet sharpening and how [music] how can you manipulate it uh via these wavelength layers of sharpening.
Also we can do is remove some noise immediately on that wavelet layer. So that's another thing you can do to make this image even better. Not this image but every image.
Is this okay?
It's much much better. Let me try.
to see if there is any. Now I'm introducing the noise. You can see by moving this slider too far, it's not needed because I don't sharpen any textures because there are none on that layer, only noise.
I hope you get the hang of this tool because I think it will be great for planets and the moon and for the nebulas also.
Let's try some nebula. Hello, Mr. Pacman.
Let me zoom in. Now you see in the Pac-Man we have some interesting stuff going on and we want to sharpen it.
And let's use a gausian.
Let's see on what layer are these details.
They are on level one some of it. But this is way too strong.
Before after before, after remember we are introducing noise when we are sharpening also. So we can do some D noise as well while sharpening.
Is this okay? I don't know if you can see it but let me move it some more.
So the first layer of sharpening is done. We are sharpening this black nebulas in the Pacman. Let me try the level two.
So we are now sharpening these parts of the nebula that didn't sharpen with the layer one.
Also maybe too hard.
Some noise reduction as well.
Before. After. Before. After let's now try level three. We have some large objects that we can sharpen. Of course, this has effect on also on this brighter stuff in the nebula.
Let me see some more.
We can go overboard so we can see what's going on.
We can now lower [music] it down. See the before after.
So now you can see how are we able to sharpen it via wavelets.
This this third wavelet layer is not affecting the first one. It will not affect this and this that we already sharpened with the first layer.
So, we can always always go back to the first one and make some changes if you don't like the noise or the sharpening details.
And now you can see how the contrast pops out and we can see more of this white bright nebula uh in the in the core.
You can play with sliders here to see what effects will give you. Of course, the fourth one is already too large and it will sharpen stuff that we don't want to sharpen.
So, we we will not use it. This part will be maybe you'll use it someday but usually you don't get to the fifth and sixth wavellet. If you have some very very blurry images then this uh wavellet uh layers will have an effect but usually you'll not use you did the adjustments and you're ready to apply. If you have a large image, this is a 25 megapixel image. Uh if you have mosaics, it will get even larger.
And when you hit apply, you will see now the percentage and the behind the scenes what he's doing. This is a real time preview. Now he's applying and you know what is he's applying and you can see now what's going on and don't have to guess if he's done or if the pix has an error. Okay, it's done and you have a finished image. So that's new. So that will conclude the updates for the version 1.4.
Hope you'll have some fun with it.
Comment, like, subscribe, and see you in another one. Bye-bye.
[music] [music] [music] >> [music]
Related Videos

Sweating the small stuff ▸ KITP Colloquium by Coral Wheeler
KITP_UCSB
248 views•2019-04-30

Spiral Galaxies, Hubble Photos, Characteristics, Theories
GregClementsScience
211 views•2019-02-19

The Great Meteor Procession of 1913
JohnMichaelGodier
22K views•2017-05-07

SETI from Deep Space - Claudio Maccone (SETI Talks)
SETIInstitute
10K views•2009-12-07

The Invisible Universe
Ed_Macaulay
144 views•2025-08-25

The Solar System's "Shield" is Weakening as Cosmic Radiation and Earthquakes may soon SURGE
StefanBurns
277K views•2025-05-20

How It All Ends | Crash Course Pods: The Universe
crashcourse
62K views•2024-09-11

Your Flight to Neptune is Delayed... by 545 Years.
TechBeg
111 views•2026-04-27
Trending

Gremlin Arrives… While Dorothy May Takes Another Step Forward
The-moons
10K views•2026-07-23

Trump War Chief SCREWS UP by Posting Video Leading Judge to ORDER an EXPLANATION!!!
LegalAFMTN
110K views•2026-07-23

Playstation NO DISC/NO BUY Fight Is Over...
DavidJaffeGames
4K views•2026-07-23

Daystar: The Great Grift & Prostituting the Gospel
LauraLynnThompson
14K views•2026-07-23