Hi Andrea,
Juan, I've tried this method with two images and doesn't work; it seems PI is expecting at least three images.
Am I doing something wrong?
Not at all; ImageIntegration needs at least three images.
If you have just two images, you can use PixelMath. Assume you have both images open in PixInsight. Call one of them A and the other B. Follow these steps:
1. Use the NoiseEvaluation script to compute noise estimates for both images. Write down the noise standard deviation estimates. Let's suppose we have:
Noise estimate for image A: 2.225e-04
Noise estimate for image B: 2.708e-04
2. Open PixelMath.
3. In the Symbols field, you must define two constants with the above noise estimates, plus one variable. In this example it would be:
nA=2.225e-04, nB=2.708e-04, snB
4. In the RGB/K expression field, write this expression:
snB = nB*AvgDev(A)/AvgDev(B); A/nA/nA + B/snB/snB
This expression combines both images weighted according to their noise estimates. Weighting takes into account that the proportionality between signal and noise follows a quadratic relation. The AvgDev(A)/AvgDev(B) scales B to match the mean dispersion of A, so both noise estimates are statistically comparable.
5. The Rescale option must be enabled so you'll get an integrated image without any data clipping and maximized dynamic range usage.
6. In the Destination section, enable the "Create new image" option.
7. Apply the PixelMath process to either A or B, and you're done.
This procedure basically mimics what ImageIntegration does. Let me know how it works.