
slave_nl,slave_ns,master_nl,master_ns
id1,slave_line,slave_sample,master_line,master_sample
id2,slave_line,slave_sample,master_line,master_sample
id3,slave_line,slave_sample,master_line,master_sample
.
.
.
.
.
.
idn,slave_line,slave_sample,master_line,master_sample
nl and ns are equal to the number of lines and samples in the slave and master images. The slave versus master line and sample locations can be selected several different ways. Typically the points can either be selected interactively using the image display device or automatically using the automatic control point procedure(see MASTERCTL). slave_nl,slave_ns
id1,slave_line,slave_sample,map_latitude,map_longitude
id2,slave_line,slave_sample,map_latitude,map_longitude
id3,slave_line,slave_sample,map_latitude,map_longitude
.
.
.
.
.
.
idn,slave_line,slave_sample,master_latitude,master_longitude
The maximum number of control points that the control point file can have is 3000(typically they have much fewer than 3000). Based on the control points specified by the user's file a set of mapping equations are calculated in order to generate the required transformation file. The equations are 2-variable polynomials with a user selected order of degree. That is, if the user selects a 2nd degree polynomial the equations would look something like this:sl = a1 + a2*ml + a3*ml*ml + a4*ms + a5*ml*ms + a6*ms*ms ss = b1 + b2*ml + b3*ml*ml + b4*ms + b5*ml*ms + b6*ms*msWhere,
sl,ss are the slave line/sample positions ml,ms are the master line/sample positions or map latitude/longitude a, b are coefficients calculated using least squaresThe degree can be as high a 10 but usually 2 or 3 is sufficient. The minimum number of control points needed is a function of the degree requested and can be calculated by :
(degree + 1) * (degree + 2) / 2Once the equations are calculated they are then used to produce a transformation file(TFILE). The transformation file has corresponding input line/sample and output line/sample values over a grid; the grid can be thought of as a grid that lays on top of the output image(master). In the example below the grid has four columns and three rows:
*-------*-------*-------*-------* | | | | | | | | | | | | | | | *-------*-------*-------*-------* | | | | | | | | | | | | | | | *-------*-------*-------*-------* | | | | | | | | | | | | | | | *-------*-------*-------*-------*At each intersection of the grid (*) the equation is used to calculate the slave line/sample position that corresponds to that output line/sample. The top left corner is position 1,1 in the output/master image. These are used as the values for ml(=1) and ms(=1) in the equations given above. Using those equation we can calculate sl and ss(the slave position for that intersection). This is done for all 20 intersections in the grid. Note that the bottom right corner is the position that corresponds to (nl,ns) number of lines/samples in the master image. The calculated values at all the intersections used to generate the transformation file that is used by the program GEOM to apply the transformation to the slave image. Also note that the number of rows and columns in the grid is user selectable; a denser grid usually makes the geomed image fit the control points better if high frequency distortions are present.
|
U.S. Department of the Interior |
U.S. Geological Survey |
Jobs
Home | Search | Disclaimers & Privacy Web Rings Send comments to webman@TerraWeb.wr.usgs.gov URL: Last Modified: Thu Oct 31 15:08:22 MST 2002 |