Re: Performing computation of distance Mahalanobis



I found that it exists in Matlab a fonction for computing directly the distance of Mahalanobis.


I discovered myself in Statistic Toolbox the Mahalanobis distance.

doc mahal

I want to compute the Mahalanobis distance for a big rgb image. But first I resized my image. The distance mahalanobis has 2 parameters the first is the matrix associated for my image in this case is J and the second is a parameter that performs computation of distance Mahalanobis for each line of my matrix. I don't know how tu use computation of mahal function the mathematical principe I understood and it's presented in my description.


What have I done in command window:

I=imread('poza1.jpg');imshow(I);
whos I
Name Size Bytes Class

I 960x1280x3 3686400 uint8 array
J=imresize(I, [100 100])

whos J
Name Size Bytes Class

J 100x100x3 30000 uint8 array

mahal(J,X)

And I want that in parameter X performs me the distance Mahalanobis for each line of my matrix so in X I want to be stored 100 values which represents the distance Mahalanobis for each line of my matrix.

I want your response with this!

I'm stuck using : >>doc mahal
.



Relevant Pages

  • Re: Combining multiple parameters as DOE response
    ... > of a designed experiment. ... I've used Mahalanobis-Taguchi methods to ... My first thought was to then calculate a Mahalanobis ... > treatment based on the Mahalanobis distance. ...
    (sci.stat.math)
  • Mahalanobis distance
    ... Can someone please clarify for me which is the formula for the Mahalanobis ... where S^-1 the inverse of the covariance matrix and m the mean of the ... M=sumwhere b are the parameters of the PCA and lamda the ... However, I have seen formula for the Mahalanobis distance, with the ...
    (sci.image.processing)
  • Re: distance distribution between similar images
    ... distribution of the distance (which may be Euclidean, Mahalanobis or city block) between the two? ... Or, another way of putting it is: If I have two images that are just white noise, what is the distribution of the distance between the two? ...
    (sci.image.processing)
  • Re: Mahalanobis distance
    ... >Can someone please clarify for me which is the formula for the Mahalanobis ... >where S^-1 the inverse of the covariance matrix and m the mean of the ... >However, I have seen formula for the Mahalanobis distance, with the ...
    (sci.image.processing)
  • Re: Under what condition is Mahalanobis distance OPTIMAL?
    ... > Is there a way one can show under what conditions the Mahalanobis ... > distance is the optimal distance metric? ... > or when the axes are correlated. ... nonsingular linear transformations. ...
    (sci.stat.math)

Loading