costWd: costWd

View source: R/registration.R

costWdR Documentation

costWd

Description

Objective function to minimize when using GMMs

Usage

costWd(Tr, X, Y, CX, CY, w1 = NULL, w2 = NULL, S = NULL)

Arguments

Tr

Transformation vector as translation vector + rotation (angle in 2d, quaternion in 3d))

X

matrix of means of first GMM (i.e. reference point set)

Y

matrix of means of second GMM (i.e. moving point set)

CX

array of covariance matrices of first GMM such that X[i,] has covariance matrix CX[,,i]

CY

array of covariance matrices of second GMM such that Y[i,] has covariance matrix CY[,,i]

w1

(optional) vector of mixture weights of first GMM.

w2

(optional) vector of mixture weights of second GMM.

S

(optional) array of pre-computed sqrtm(sqrtm(CX[,,i]) %*% CY[,,j] %*% sqrtm(CX[,,i]))

Value

cost value


LOMAR documentation built on June 24, 2024, 5:16 p.m.