Matlab functions

The following functions have been tested on Matlab R14 sp 3 + Windows XP Home Edition 32bit sp 3

Feature extraction
Name
Description
Link
COOCMatrices.m
Computes co-occurrence matrices of a grey-scale image
COOCMatrices.m
GLCMFeatures.m
Computes co-occurrence features and normalizes them for rotation invariance
GLCMFeatures.m
GraycoProps.m
A modified version of Matlab's graycoprops.m
GraycoProps.m

General routines
Name
Description
Link
myBinomTest.m
Performs a binomial test
myBinomTest.m
DoClassification
Performs supervised classification
DoClassification.m
ExtractImageFeatures.m Extracts co-occurrence features from the input image ExtractImageFeatures.m
EvaluateCrossAccuracy.m
Estimates classification accuracy
EvaluateAccuracy.m
GenerateTrainAndTestNumbers.m
Generates random subdivisions into train and test set
GenerateTrainAndTestNumbers.m
GetFileNames.m Returns the names of the files contained in a directory
GetFileNames.m
PairwiseComparison.m
Pairwise statistical comparison of methods
PairwiseComparison.m
ParseFeatureType.m
Parses the feature type (for internal use)
ParseFeatureType.m
RetrieveDescriptorsIndices.m Retrieves descriptors indices (for internal use)
RetrieveDescriptorsIndices.m
SCRIPT.m
Sample script
SCRIPT.m

Dependencies

The following additional Matlab toolboxes need to be downloaded and installed:



Instructions

  1. Create a new directory (e.g.: ./mydir);
  2. Create a directory for Matlab code (./mydir/code);
  3. Save the Matlab functions listed above in ./mydir/code;
  4. Create a directory to store the required toolboxes (./mydir/code/Dependencies) or install them elsewhere. 
  5. Create a directory to store the images and other stuff (./mydir/data);
  6. Create the following empty subdirectories:
    • ./mydir/data/Classification;
    • ./mydir/data/ClassificationTime;
    • ./mydir/data/Datasets;
    • ./mydir/data/ExtractionTime;
    • ./mydir/data/Features;
    • ./mydir/data/Labels;
    • ./mydir/data/LaTeX;
    • ./mydir/data/Rankings;
  7. Download and unzip the images from here. In doing so, maintain the following structure:
    • ./mydir/data/Datasets/BRODATZ/{00,10,...,90}/...
    • ./mydir/data/Datasets/MONDIAL_MARMI/{00,05,10,...,90}/...
    • ./mydir/data/Datasets/OUTEX_45/{00,05,10,...,90}/...
    • ./mydir/data/Datasets/VECTORIAL/{00,10,...,90}/...
  8. Launch SCRIPT.m;
  9. Retrieve the results in LaTeX format in /mydir/data/LaTeX.



DISCLAIMER
The information and content on this Web site are provided with no warranty whatsoever. Any use for scientific or any other purpose is conducted at your own risk and under your own responsibility. The authors are not liable for any damages, including any consequential damages, of any kind that may result to the user from the use of the materials on this Web site or of any of the products or services described hereon.