Start to align images in a list.
- Parameters:
-
list | An enumerator on the list of images to align |
refItem | The reference image against which other images are aligned |
dark | The stacked dark frames |
flat | The stacked flat fields |
rect | The default square in which alignment is searched (some images can have the square placed elsewhere). |
cutoff | The frequency above which the spectrum is cleared to avoid spurious alignment on some systematic noise). |
threshold | The threshold on the correlation peak standard deviation (above it, the alignment is considered failed). |
The reference item spectrum is computed and stored. After return from this method, the processing starts. For each selected item given by the enumerator, its spectrum is computed and used to correlate against the reference.
The image data has the dark frame substracted from it, and is then divided by the flat field, before Fourier transform.
The correlation peak is the alignment offset which is sent back to the calling thread by means of the processDidProgress delegate.
References _bufferSpectrum, MyListProcessing::_cropRectangle, _cutoff, MyListProcessing::_darkFrame, MyListProcessing::_delegate, MyListProcessing::_flatField, _precisionThreshold, _referenceItem, _referenceOrigin, _referenceSpectrum, _refSpectrumAvailable, _refSpectrumLock, _side, allocate_spectrum(), cutoffSpectrum(), FOR_DIRECT, FOR_INVERSE, fourier(), getImageSample(), MyIntegerRect::origin, MyImageListItem::searchSquareOrigin, MyIntegerRect::size, FFT_DATA::spectrum, and MyIntegerSize::width.