====== 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 ===== {{:interimage:examples:ta_interimage_examples_rule_based_classification.zip}} ===== Step-by-step ===== Start InterIMAGE, click on //File//, //New Project//, and type the fields according to the following: {{:interimage:examples:new_project_rule_based_classification.png?400}} 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. {{:interimage:examples:nodes_rule_based_classification.png?600}} All nodes, including node //Scene//, will have the Bottom Up operator //Generic Bottom Up//, with the following rule: {{:interimage:examples:rule_based_classification_bottomups.png?400}} 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. {{:interimage:examples:rule_based_classification_background_rules.png?400}} After inserting the rules and starting the project, the resulting classification will look as follows: {{:interimage:examples:result_rule_based_classification.png?600}}