ssd: Sum of squared differences (SSD)

Description Usage Arguments

View source: R/zncc.r

Description

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

Usage

1
ssd(master, slave, u1, v1, u2, v2, n = 3)

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.