Texture Problem Specification

Specification of a texture classification problem requires the following for each class ; several estimation images, several validation images, the prior probabilities, and a weight. The set of estimation and validation images for each class forms a representative sample of that class, but the number of estimation and validation images need not match the prior probability or the weight for that class. All this information (except the known class of the validation images) is supplied to the algorithm via a fixed format test file. The correct class of the validation images is supplied via a validation file. The format of each of these files is given below.

Test File Format

A test file may be considered to contain a header section and a body section. The header section contains general information about each class while the body specifies the image files associated with each class. A test file contains no blank lines. The first line of a test file states the number of classes in the problem, nClasses. The next nClasses lines specify general information about each class, specifically the class label (consecutive, upper-case letters starting with 'A' for the first class), the number of estimation images, the prior probability, and the weight. The last line of the header begins with a 'Z' to denote the validation images and simply specifies the number of validation images.

For example:
<nClasses>
<classLabel1> <nImages> <prior> <weight>
<classLabel2> <nImages> <prior> <weight>
...
Z <nImages>

The remaining lines in the file (the body) specify the names of the estimation images and the validation images, each preceded as before by the relevant label.

For example:
<classLabel1> <imageFile1>
<classLabel1> <imageFile2>
...
<classLabel2> <imageFile1>
<classLabel2> <imageFile2>
...
Z <imageFile1>
Z <imageFile2>
...

An example test file is shown below.

2
A 2 0.4 0.5
B 2 0.6 0.5
Z 4
A rock1.pgm
A rock2.pgm
B hardPlace1.pgm
B hardPlace2.pgm
Z hardPlace3.pgm
Z hardPlace4.pgm
Z rock4.pgm
Z rock3.pgm

Validation File Format

The header information for the validation file is similar to that of the corresponding test file, except the number of images in each class is not required and there is no validation images. The body of the validation is somewhat smaller than the corresponding test file because it contains only the validation images. The validation file identifies the true class of each of the validation images. The format is the same as for the known classes in the test file. The validation images MUST be in the same order as they were listed in the test file.

An example validation file is shown below.

2
A 0.4 0.5
B 0.6 0.5
B hardPlace3.pgm
B hardPlace4.pgm
A rock4.pgm
A rock3.pgm



Return to MeasTex Homepage
Return to TextureSynthesis Homepage


Guy Smith guy@it.uq.edu.au
Ian Burns burns@it.uq.edu.au

Last Modified: Tue May 27 17:34:32 EST 1997