mahal function

when i am using mahal(Y,X) function it is giving error "Undefined function or method 'qr' for input arguments of type 'uint8'." when i examined mahal.h it is using [Q,R] = qr(C,0); at 49th line which is not defined in matlab. so what ot do for this error. Whether there is an option to get mahalanobis distance of the current color value at each pixel from the background model of that pixel. plz help me Thanks

Respuestas (1)

Oleg Komarov
Oleg Komarov el 1 de Jun. de 2012

1 voto

Try
mahal(double(x),double(y))

1 comentario

Xi Chen
Xi Chen el 3 de Ag. de 2015
not working ds = mahal(double([X Y]), double([X Y])); Undefined function 'mahal' for input arguments of type 'double'

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Jun. de 2012

Comentada:

el 3 de Ag. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by