Rule-Based Classification

This example shows how to perform a single classification of pools and roofs through rule-based classification.

This project is called “Rule_based_classification” and uses the Top Down operators TA_Baatz_Segmenter and Dummy Top Down, and the Bottom Up operator Generic Bottom Up.

Download

Step-by-step

Start InterIMAGE, click on File, New Project, and type the fields according to the following:

Now insert three nodes, namely pools, roofs and background. All these three nodes will have the Top Down operator TA_Baatz_Segmenter, as shown below.

All nodes, including node Scene, will have the Bottom Up operator Generic Bottom Up, with the following rule:

To classify, one can use the attribute ratio for band 1, as follows:

  • pools
    • ratio(band 1) < 0.3
  • roofs
    • ratio(band 1) > 0.4
  • background
    • ratio(band 1) >= 0.3 AND ratio(band 1) < = 0.4

Then one inserts these rules in the three nodes, by clicking in TopDown Decision Rule. Note: Select the option No Merge, as the Lower-level Rule for all Top Down nodes.

After inserting the rules and starting the project, the resulting classification will look as follows:


Navigation