Cross

Functionality

The Cross operation performs an overlay of two raster maps. Pixels on the same positions in both maps are compared; the occurring combinations of class names, identifiers or values of pixels in the first input map and those of pixels in the second input map are stored. These combinations give an output cross map and a cross table. The cross table includes the combinations of input values, classes or IDs, the number of pixels that occur for each combination and the area for each combination.

Input map requirements:

Domain and georeference of output map and table:

Cross creates an Identifier domain for the output map and table. This output domain obtains the same name as the output map and is filled with the combinations of class names, IDs or values or colors of both input maps.

When an input map has a class or ID domain in which the class names or IDs have codes, then these codes will appear in the output domain.

An output cross map uses the same georeference as the input maps.

Example:

Input map 1:

Input map 2:

Output cross map:

In the picture of the output map above, read B*S instead of BS, etc.

Output cross table:

Domain

Map1

Map2

NPix

Area

A * R

A

R

3

.....

A * T

A

T

2

.....

B * S

B

S

2

.....

B * T

B

T

1

.....

C * R

C

R

1

.....

C * S

C

S

3

.....

C * T

C

T

1

.....

D * S

D

S

2

.....

D * T

D

T

1

.....

The cross table lists:

Domain

the combination of class names, identifiers, values or group names of the first map with the second map's class names, IDs or values is returned as the output domain for the cross table. If class names or IDs in an input map have codes, then these codes will appear in the output domain.

Map1

the class names, identifiers, or values of pixels in the first input map.

Map2

the class names, identifiers, or values of pixels in the second input map.

NPix

the number of pixels that occur as a combination.

Area

the areas of the combinations as: NPix * pixel size * pixel size.

When you open a cross table, you can sort on columns, calculate with columns and perform column aggregations as usual.

 

Tip: When the input maps of a cross used a class or ID domain, the output cross table can also be shown as a matrix. Open the output cross table and choose Confusion Matrix from the Options menu of the table window. The matrix will show the number of pixels (NPix) as found for each combination, and the total number of pixels for each class/ID of the first input map.

  R S T Totals
A 3 0 2 5
B 0 2 1 3
C 1 3 1 5
D 0 2 1 3

Combinations with undefined values:

When you use the Cross operation through the Cross dialog box, combinations with undefined values will by default not appear in the output cross table, i.e. undefined values are ignored. If an output cross table should also list combinations with undefined values, clear one or both of the Ignore Undefs check boxes in the dialog box.

The combination Undefined value in the first input map and Undefined value in the second input map will never be listed.

See also: