April 2020
Intermediate to advanced
438 pages
12h 2m
English
Download the texture images from http://slazebni.cs.illinois.edu/research/uiuc_texture_dataset.zip and unzip the data to get the texture images. There are 25 texture classes, each of which has separate folders and 41 images inside each folder. For demonstration purposes, we shall use 4 texture classes and rename the classes as woods, stones, bricks, and checks. First, let's import the required libraries using the following code snippet:
import numpy as npimport matplotlib.pyplot as pltfrom skimage.io import imreadfrom skimage.color import rgb2grayfrom skimage.filters import gabor_kernelimport scipy.ndimage as ndi
Read now
Unlock full access