Author Topic: PixInsight Crashes when running TGVDenoise on 1 pixel wide image  (Read 1153 times)

Offline dnault42

  • PixInsight Addict
  • ***
  • Posts: 125
I have a non-astronomy application, which unfortunately I can't discuss, where using TGVDenoise on a 1 pixel wide (or tall) image would be very useful.  Right now when I try this PixInsight crashes ever time.  Is this simply impossible based on the nature of how PixInsight implements TGV or is this a bug?

Regards,
David

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Hi David

I would say that both. The algorithm is not designed for 1D data (although it is feasible if we rewrite the equations with that in mind). Since there are discrete differences in both dimensions involved, somewhere it crashed because it did not find data (hence the bug... it should check that the image contains more than 1px at both directions).

Could you replicate the data 2 times, to have at least 3 pixels wide? Then you could extract the central line, as it would be the desired result.
Regards,

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

Offline dnault42

  • PixInsight Addict
  • ***
  • Posts: 125
I can definitely give that a try Carlos.  Thanks.

Regards,
David