mahal function

10 次查看(过去 30 天)
swati
swati 2012-6-1
评论: Xi Chen 2015-8-3
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

回答(1 个)

Oleg Komarov
Oleg Komarov 2012-6-1
Try
mahal(double(x),double(y))
  1 个评论
Xi Chen
Xi Chen 2015-8-3
not working ds = mahal(double([X Y]), double([X Y])); Undefined function 'mahal' for input arguments of type 'double'

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by