Author Topic: Linear Fit/Invalid Geometry  (Read 1842 times)

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Linear Fit/Invalid Geometry
« on: 2018 November 29 08:53:16 »
I'm trying to do a linear fit between my L image which is binned 1x1 and my R which is binned 2x2, and I get the invalid geometry error. Probably a dumb question, but is this something that you just cannot do if the images are binned differently? If so, is there any way to achieve the same thing?
Thanks,
Alan
« Last Edit: 2018 November 29 11:51:16 by alanrock »

Offline ngc1535

  • PixInsight Old Hand
  • ****
  • Posts: 326
Re: Linear Fit/Invalid Geometry
« Reply #1 on: 2018 November 29 09:28:09 »
Yep, the images need to be the same size. Linear Fit does a pixel-to-pixel match in each image. This doesn't work if the images are different sizes. You can resample one of the images (likely upsample the binned image) to get things to work out.
-adam

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Re: Linear Fit/Invalid Geometry
« Reply #2 on: 2018 November 29 10:33:23 »
And how does one upsample an image?

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Linear Fit/Invalid Geometry
« Reply #3 on: 2018 November 29 10:50:41 »
Alan

PI has 2 tools for re-sampling. IntegerResample and Resample. For your use case IntergerResample would be the one to use.


Mike

Offline alanrock

  • PixInsight Enthusiast
  • **
  • Posts: 85
Re: Linear Fit/Invalid Geometry
« Reply #4 on: 2018 November 29 11:50:26 »
Thank you! I assume I need to downsample the R,G and B before I can combine, is that right?