Classification of categories

Classifies object into categories using one of the following models:

  • PLS-DA

  • SIMCA

  • Machine Learning

  • Curve Separation

For more information on how to train a model see any the classification of nuts tutorials: Nut classification

Parameters

Model

Select the model created for the classification of the samples.

Category

Which category to apply the segmentation.

Classification type

  • Object average spectrum

    • Classifies the object by taking the average spectrum from all pixels included in the object.

  • Pixel class majority

    • Classifies the object by the majority of the pixels in the object.

Weights

The weights are used to control the importance of the pixels in an object for the classification using pixel class majority. This can be used to, for example, down-weigh objects' edge pixels because they may not be as representative as the core of the object.

Only applicable when Pixel class majority is selected

The weights are specified as a string with three values separated by semi-colon: E;M;C where

  • E is the weight for pixels at the edge of the object

  • M is the weight for pixels just inside the edge

  • C is the weight for pixels at the center of the object (i.e. not at, or just inside the edge as described earlier).

The values of the weights are relative to each other, so it doesn’t matter what values you use.

Some examples:

  • The default value for weights, 2;5;10, implies the center of the object is most representative of the spectrum (because of the 10) the edge values with 5 and 2 at the very edge are less representative.

  • The weight string 1;1;1 would make all pixels equally important.

Pixel prediction

✅ Includes prediction of each pixel and visualization of the pixel prediction on the object.

⬜ Do not include the prediction or visualization

Connection

Only applicable for Hierarchical classification

Set parent class for hierarchical model.

Show Train/Test column in table

Adds an additional column in table showing if the object was part of Train or Test set

✅ Add Train/Test column

⬜ Do not add Train/Test column