[[interimage:|InterIMAGE wiki]] ====== InterIMAGE Examples: Supervised Classification Using Decision Trees ====== This example shows how to perform a supervised classification of pools and roofs in a small image, through the C4.5 decision-tree classifier. The InterIMAGE interpretation project can be downloaded here: {{wiki:thales:ta_classifier.zip|download}} The image used in this example is the following: {{wiki:thales:input_image.png|}} InterIMAGE performs supervised classification through the C4.5 decision tree classifier. In order to perform the classification, the user must train the algorithm by providing samples of every class. In this way, the classification algorithm is able to create a decision tree and apply it into the whole set of objects, classifying them. Here is an example of training file, in xml format: File //training_set.xml// Such file contains the information that two elements from class //roofs// have the attribute //ratio_b1// with values "0.409163" and "0.405262", respectively. The same happends for classes //pools// and //background//. On the InterIMAGE interface, the user must create such classes, and set the property **TopDown Multi-Class** as //true//. {{wiki:thales:multi_class_true.png?400|}} One of the nodes should perform segmentation and attributes extraction. This is done by the node //pools//, like the following figure. {{wiki:thales:segmenter_node.png?400|}} {{wiki:thales:setting_one_attribute.png?350|}} After creating all classes present in the xml training file, setting all parameters, you can start your process, and visualize the results. {{wiki:thales:c45_results.png?400|}} Future versions of InterIMAGE will have the interface for training.