Skip to content

Instantly share code, notes, and snippets.

@dbuscombe-usgs
Last active December 20, 2015 06:19
Show Gist options
  • Save dbuscombe-usgs/6085328 to your computer and use it in GitHub Desktop.
Save dbuscombe-usgs/6085328 to your computer and use it in GitHub Desktop.
Classify images based on TAS features
features = np.zeros([len(imlist),162])
for i,f in enumerate(imlist):
im = np.array(Image.open(f))
h=mahotas.features.tas(im)
features[i] = h.flatten()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment