Author Topic: TGVInpaint for star removal?  (Read 2947 times)

Offline drmikevt

  • PixInsight Addict
  • ***
  • Posts: 112
TGVInpaint for star removal?
« on: 2017 June 19 19:31:53 »
I am reading about this process in some posts from last year.  I am looking to improve star removal techniques (if anyone has a recent tutorial, I'd love to know about it).

I can't find this process in the current build - is it still available?

Thanks
Mike

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: TGVInpaint for star removal?
« Reply #1 on: 2017 June 19 20:15:05 »
Mike

Here is a link to the original posting from Carlos about his replacement TGV module that includes TGVInpaint.
https://pixinsight.com/forum/index.php?topic=8970

One thing I would tell you is that the module has not been updated in sometime and that a Mac OSX or FreeBSD version was never released to my knowledge. The replacement module with TGVInpaint currently does not work with the upcoming release of PI version 1.8.5.  I do not know if it ever will as this replacement module was never an official PI module.

All that being said it is a module I use not just for the Inpaint part but I find the replacement TGVDenoise tool to be excellent. I do hope that Carlos will someday release a new version of the module that is compatible with 1.8.5.

If you do decide to install this module please be very careful as you are removing the original TGV module and installing a different module. Read Carlos's instruction closely. One more important fact, tutorials using the standard TGVDenoise module might not work the same way with this replacement TGVDenoise module. There are new parameters so the module can sometimes respond differently from the original.


Mike

Offline drmikevt

  • PixInsight Addict
  • ***
  • Posts: 112
Re: TGVInpaint for star removal?
« Reply #2 on: 2017 June 19 21:02:10 »
I am on a Mac so I'll have to skip it.  Thanks, though. 

TVGInpaint sounds similar in function to Morph Trans in Erosion, no?

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: TGVInpaint for star removal?
« Reply #3 on: 2017 June 20 02:30:40 »
Hi guys,

I'm working on a replacement module that uses a different algorithm to solve the functional. In practice, this means that some of the parameters will change the behavior, while the whole algorithm will converge much faster to the solution (expect 5 to 10 times faster solutions). Also, the new module will have an option to use the classic TV regularization, wich is also faster (approx 3 times compared to TGV), and may help to find the initial parameters for TGV. TV will create piece-wise constant images instead of piece-wise smooth as in TGV... while this is usually not good, because of staircaising artifacts, the results may look sharper, and the background flatter.

I have not tested an inpainting implementation with the new algorithm, but I can't see why it should not work.
drmikevt, inpainting is the name used to the techniques that reconstruct missing data from images. You define a mask, and the algorithm completes the missing information using prior knowledge given by the algorithm. In the case of TGV, this is that the image is piece-wise smooth, to it will try to follow the image's gradients to complete the voids. Not the best solution for inpainting (it does not have information about the actual texture), but works well for relative small areas, or when noise is low.
,
Regards,

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

Offline aworonow

  • PixInsight Addict
  • ***
  • Posts: 258
    • Faint Light Photography
Re: TGVInpaint for star removal?
« Reply #4 on: 2017 June 20 05:05:38 »
Not specifically "star removal," but might be of some relevance: http://www.qdigital-astro.com/pixinsightscripts

Alex