Extracting texture features from images

Texture is the spatial and visual quality of an image. In this recipe, we will take a look at Haralick texture features. These features are based on the co-occurrence matrix (11.5) defined as follows:

Extracting texture features from images

In equation 11.5, i and j are intensities, while p and q are positions. The Haralick features are 13 metrics derived from the co-occurrence matrix, some of them given in equation 11.6. For a more complete list, refer to http://murphylab.web.cmu.edu/publications/boland/boland_node26.html (retrieved December 2015).

We will calculate the Haralick features with the mahotas API and apply them to the handwritten digits ...

Get Python Data Analysis Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.