Author Topic: Apply results of linear fit to other images  (Read 513 times)

Offline samlising

  • Newcomer
  • Posts: 9
Apply results of linear fit to other images
« on: 2019 July 15 21:20:17 »
Hi,

I'd like to know if it is possible to apply the results from a linear fit process to other images.

in the log after apply a linear fit process to an image there is a linear fit function returned. Is it possible to apply this function to another image? Through pixelmath perhaps?

* Linear fit functions:
y_0 = -2.755335e-02 + 2.680050e+00*x_0 ± 9.538358e-04 n_0 =  99.99% (851518575)
Applying linear fit: done
02:31.43

Thanks.
Sam

Offline ngc1535

  • PixInsight Old Hand
  • ****
  • Posts: 326
Re: Apply results of linear fit to other images
« Reply #1 on: 2019 July 16 00:19:54 »
Yes.
You do not need the error term... so your PixelMath expression simply substitutes $T for the x.
e.g.   -.02755335 + 2.680050*$T

-adam

Offline samlising

  • Newcomer
  • Posts: 9
Re: Apply results of linear fit to other images
« Reply #2 on: 2019 July 16 09:41:47 »
Thank you very much Adam.

Worked perfectly!

Sam