Return to Post-BCD pages
 
Manual Contents
 
Getting Started
 
Input Files
 
Background Matching (overlap.pl)
 
Mosaicking (mosaic.pl)
 
Point Source Extraction (apex*.pl)
 
Basic Concepts
 
Appendix 1: Full List of MOPEX Scripts
 
Appendix 2: Fatal Bit Patterns
 
Appendix 3: Full Lit of MOPEX Modules

Basic Concepts: Background Matching Algorithm

Background matching of the overlapping input images is performed by the MOPEX script overlap.pl. It calculates and applies an additive correction to each image in the input stack in order to bring them to a common background level. This is often the first step in processing Spitzer imaging data, before mosaicking the frames together.

The images interpolated to a common grid can be subtracted pixel-by-pixel in order to match their backgrounds. We assume that the only correction required is a constant offset, εn, i.e. that the following corrections should be applied to the input image In

Here On is the output corrected image. The metric to be minimized is the combined uncertainty weighted difference between the overlapping parts of each pair of input BCD's:

Here m and n are image indicies; kn is the pixel number in image n. Minimization with respect to εn's

leads to the following set of Nimages-1 linear equations:

where

The symbol Omn respresents the fact that the summation is done over the overlap area of the m-th and n-th images. In Figure 1 the case of 2 overlapping images is shown. The matrix element M12 is in this case equal to

The actual ranges of indicies symbolized by Omn are calculated using the input table with the offsets and sizes of the interpolated images.

Since the problem is invariant under any arbitrary global shift δ of all images, one of the shifts can be picked to be the last one εNimages-1. It is set to 0 at first. The additional constraint that will fix the global shift is to have the total shift of all images add up to 0:

The ε's are analyzed before applying the above condition. The outliers amoung the ε's are found. The following parameters are used:
  • BOTTOM_THRESHOLD,TOP_THRESHOLD: the thresholds for outlier detection in terms of sigma
  • MIN_IMG_NUM: the minimum number of images required to detect outliers.

If Nimages is greater than or equal to MIN_IMG_NUM, then the outlier ε's are excluded from calculating δ, but δ is applied to all the ε's.



Figure 1: The overlap of Image1 and Image2 is an area of four pixels with the following pixel indices: k1= {36,37,38,39}; k2 = {0,1,2,3}, given that the first pixel has index = 0 and the x-direction is scanned first.





SPITZER HOME || SPITZER SCIENCE || INSTRUMENTS || SCIENCE USER SUPPORT || SEARCH

help@spitzer.caltech.edu

This file was last modified on Tue Jun 10 17:37:42 PDT 2008.

California Institute of Technology Jet Propulsion Laboratory NASA