So I have two RBG averages that I want to get a Mahalanobis distance for but the Mahalanobis function requires an inverse co-variance matrix. My question is how do I create a inverse co-variance matric for averages?
The averages would just be two 1x3 vectors but those averages come from a single image that's 27x27.
The image looks similar to this: http://imgur.com/a/kW5uM
One of the averages is for an estimate of the average RBG values for inside the circle and the other is outside the RBG values outside the circle. Is it as simple as creating two images one with the inside of the circle and filling the background with my average circle values and another with the background and filling in the circle with my average background values? From what I've read the inverse co-variance matrix would need to be a 3x3 so I don't think that can work...
↧