sad: Sum of absolute differences (SAD)

Description Usage Arguments

View source: R/zncc.r

Description

Calculates the sum of absolute differences (SAD) between two SAR-class objects. This method also works for RasterLayer-class objects. The minimum SAD value determines disparity.

Usage

1
sad(master, slave, u1, v1, u2, v2, n)

Arguments

master

SAR-class object (or a subclass e.g. Sentinel-class or TSX-class).

slave

SAR-class object (or a subclass e.g. Sentinel-class or TSX-class).

u1

Integer. Column, i.e. y coordinate of master pixel.

v1

Integer. Row, i.e. x coordinate of master pixel.

u2

Integer. Column, i.e. y coordinate of slave pixel.

v2

Integer. Row, i.e. x coordinate of slave pixel.

n

Integer. (Window size-1)/2 in x and y direction.


ragram documentation built on May 2, 2019, 4:42 p.m.