Author Topic: Flat Fielding for Film  (Read 13254 times)

Offline Radar

  • Newcomer
  • Posts: 45
  • Pro Astronomer
    • My Astro Space Astronomy - MASA
Flat Fielding for Film
« on: 2005 May 01 22:00:31 »
Hi,

I can see PixInsight is very powerful software. I'm still quite new to digital processing, but I am slowly getting my head around it.

Not sure if this question is ridiculous or not, but I'll ask anyway.

On the tutorial for 'Flat Fielding for Film Astrophotography' (see link).

http://pleiades-astrophoto.com/pixinsight/help/tutorials/filmflats-cmilovic/en02.html

It allows us to download the actual files from the tutorial. One of the files is the Synthetic Background Image.

When manipulating my own images, how do I generate a 'Synthetic Background Model'?

I don't understand where the synthetic background model comes from.

Also, is step two applied to both the Raw and Flat images?

And in step three where it says

"applying an inverse transform with respect to the initial midtones balance transform defined in Step 1."

I'm not really sure what this means when it says "with respect to the initial midtones". How do I apply an inverse transform please?

There is a link down the bottom of this page (see below)

filmflats.pi-psm

I opened that link with PixInsight but couldn't see anything different. What should I look for? What does it do?

I'm still a big noob with this stuff. Any help is appreciated.

Basically, I want to get rid of sky glow and bits of light pollution with PixInsight. I am also going to look into using the  DynamicBackgroundExtraction tool.

Which one works better? The DBE or the Flat Fielding technique?

Heres a link to an image I'm trying to improve.

http://www.members.westnet.com.au/raypalmer/milkyway.jpg

I want a dark background sky which is constant in color.

Thanks in advance.
www.TheCosmicArtGallery.com
www.MyAstroSpace.com
C14, AstroPhysics 1600GTO, Coronado SolarMax90 DSII BF30, Sirius Dome.

Offline Radar

  • Newcomer
  • Posts: 45
  • Pro Astronomer
    • My Astro Space Astronomy - MASA
Flat Fielding for Film
« Reply #1 on: 2005 May 02 04:21:49 »
Sorry to reply to my own post. I'm slowly chipping away at this.

I've figured out where the synthetic background image comes from. Now i'm just working out what the best way is to generate it.
www.TheCosmicArtGallery.com
www.MyAstroSpace.com
C14, AstroPhysics 1600GTO, Coronado SolarMax90 DSII BF30, Sirius Dome.

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re:
« Reply #2 on: 2005 May 02 07:15:43 »
Hi Ray

I'll "full" reply your previous post, becouse someone may benefit from the answers... thanks for posting!

> Not sure if this question is ridiculous or not, but I'll ask anyway.

Not at all. You just had to read the documentation ;-)

>On the tutorial for 'Flat Fielding for Film Astrophotography' (see link).
>http://pleiades-astrophoto.com/pixinsight/help/tutorials/filmflats-cmilovic/en02.html
>It allows us to download the actual files from the tutorial. One of the files is the Synthetic Background Image.
>When manipulating my own images, how do I generate a 'Synthetic Background Model'?
>I don't understand where the synthetic background model comes from.

In the image processing jargon, sometimes we refer to this model as a "pseudo-flat". Having said that, the best way to create such pseudo-flat in PixInsight is to use the DynamicBackgroundExtraction (DBE) process. There you put sample boxes in your image, and the software interpolates a suitable function that will model the background. So, the result is a new image, that contains only this pseudo-flat.

Sorry if I was a bit confusious about that in my tutorial. I wrote it months before Juan decided to include DBE in the LE release, so that explains the lack of more direct references. I'll write a short tutorial about DBE, using the same image as an example, and I'll update this flat fielding tutorial.


> Also, is step two applied to both the Raw and Flat images?

Are you talking about the division with PixelMath? No. It is applied to the original image only (after linearization, of course). The linearization process is applied to both image and pseudo flat.

>And in step three where it says
>"applying an inverse transform with respect to the initial >midtones balance transform defined in Step 1."
>I'm not really sure what this means when it says "with respect >to the initial midtones". How do I apply an inverse transform >please?

I was trying to explain that we must "undo" the first midtones adjustement, made with Histograms. We want to apply Histograms again, and find a suitable midtones transfer curve that does the job.

As an inverse transform we call the adjustement that undoes the previous adjustement. For example, if you apply a midtones balance adjustement of 0.25, the inverse midtones adjustement is 0.75, becouse that will lead you to exactly the same image that you had previously to both processes.

In PixInsight's implementation of the midtones balance adjustement, the inverse transform is defined as 1-X, where X stands for the previuosly used value.


>There is a link down the bottom of this page (see below)
>filmflats.pi-psm
>I opened that link with PixInsight but couldn't see anything >different. What should I look for? What does it do?

You have to open it right-clicking in the main window's background and selecting the "Load Process Icons" option. A group of process icons will be opened in the background. If you cannot see them, becouse we have different screen sizes, press the "Arrange Icons" option. PixInsight will move the icons and arrange them in the bottom right corner of the window.

Now, double click any process icon (wich are "shortcuts" to process containers) and the interfase window of the process container will be opened. There you will see a list of the applied processes. To open them, and modify, double click over it's name.
Please read the documentation sections related to process icons and process containers to better understand how to work with them.

>I'm still a big noob with this stuff. Any help is appreciated.
>Basically, I want to get rid of sky glow and bits of light >pollution with PixInsight. I am also going to look into using the >DynamicBackgroundExtraction tool.
>Which one works better? The DBE or the Flat Fielding >technique?

They are two different things. DBE extracts the background, i.e. generates the pseudo-flat. Later, you can substract of divide by it (as described in my technique).

>Heres a link to an image I'm trying to improve.
>http://www.members.westnet.com.au/raypalmer/milkyway.jpg
>I want a dark background sky which is constant in color.

I remember it... Avoid to getting too close to the MW, becouse there are some "natural" gradients. Put your samples specially in the lower right quadrant of the image, and in all corners. Make use of symetries to fill the gasps.
Regards,

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

Offline Radar

  • Newcomer
  • Posts: 45
  • Pro Astronomer
    • My Astro Space Astronomy - MASA
Flat Fielding for Film
« Reply #3 on: 2005 May 02 07:27:22 »
Thanks Carlos.

I'm very new to all this. But I have managed to learn how to remove vignetting and uneven skyglow.

Yeah, I like the software. I just had to spend some time absorbing your tutorials.

I'm happy with the results that I am getting.

Its good to know that vignetting and uneven skyglow can be overcome so easily.

Thanks for your help so far. I'm sure i'll have more questions soon.

Ray

Image for comparison  
www.members.westnet.com.au/raypalmer/MilkyWayPixInsightFinal2.jpg
www.TheCosmicArtGallery.com
www.MyAstroSpace.com
C14, AstroPhysics 1600GTO, Coronado SolarMax90 DSII BF30, Sirius Dome.

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Flat Fielding for Film
« Reply #4 on: 2005 May 07 23:51:45 »
Hi Radar

I was unable to see your result last time... the link was broken :-S

Well, it looks much better than the original, in my opinion. Congratulations.
Have you substracted or divided by the pseudo-flat?


A final question: Why are in there so many bright features? Was it made from a negative film? Looks like dust. You may treat them as high frecuency noise, and try to remove them with wavelets and sgbnr... but I think that you'll have a big headache fine tunning the paramethers :-D
I suggest you to try a clone stamp to delete the brightest ones.
Regards,

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