
July 8, 2013
11:55 a.m.
On Mon, Jul 8, 2013 at 9:56 AM, Neil <yager.neil@gmail.com> wrote:
1. There may be a slight difference between the RGB to grayscale conversion formulas used by matlab and skimage. It you want identical results, you'll have to confirm this.
That's true. The Matlab conversion is probably done as follows: image = np.uint8(0.2989 * python[..., 0] + 0.5870 * python[..., 1] + 0.1140 * python[..., 2]) I'm not sure whether they round or discard the fraction.
3. It looks like matlab normalizes the GLCM matrix (although the docs don't say).
This should probably raise a warning in graycoprops--it doesn't make much sense to calculate these without normalization. Stéfan