====== Example 5 - Debugging and exploration of attributes ====== This example shows how to debug and explore polygons attributes. ===== Database ===== {{interimage:examples:example5_data.zip|Example 5 - Database}} This zip file contains: * tijuca.tif ===== Step by Step ===== * Start InterIMAGE. Click on //File// → //New Project// and fill the fields according to the following: {{interimage:examples:example5_1.png|New Project}} * Check the //Default Image// checkbox and click the //Add// button. Click OK. * Open the //Shapefile Editor//. {{interimage:examples:example5_2.png|Open Shapefile Editor}} * In the window that comes up select the //Create Polygon// tool and draw a simple polygon. {{interimage:examples:example5_3.png|Create Polygon}} -> {{interimage:examples:example5_4.png|Drawing a polygon}} * After, click the //Save ESRI Shapefile// button. Give a name for your shapefile, roi.shp for example. Click //Save//. {{interimage:examples:example5_5.png|Save Shapefile}} * Close the //Shapefile Editor// window. * Click on //File// -> //Edit Project//. Fill the fields according to the following: {{interimage:examples:example5_6.png|Edit Project}} * Click the //Add// button. Click OK. * Create a sementic net like this one: {{interimage:examples:example5_7.png|Semantic net}} * Associate the //TA_Shapefile_Import// top-down operator to the //ROI// node. Set the operator parameters according to the following: {{interimage:examples:example5_8.png|Selecting the operator}} -> {{interimage:examples:example5_9.png|Setting its parameters}} * Associate the //TA_NDVI_Segmenter// top-down operator to the //Vegetation// node. Set the operator parameters according to the following: {{interimage:examples:example5_10.png|Selecting the operator}} -> {{interimage:examples:example5_11.png|Setting its parameters}} * Select the //Vegetation// node and click the //TopDown Decision Rule// button. {{interimage:examples:example5_16.png|}} * In the dialog that comes up click the //Class// button and select the //Vegetation// class. Click OK. Make sure that the //Merge All// option is selected and click OK again. {{interimage:examples:example5_17.png|Decision Rule dialog}} -> {{interimage:examples:example5_18.png|Insert Class}} * Save the project and execute the interpretation. {{interimage:examples:example5_12.png|Interpretation result}} * Now, add two nodes to the semantic net: //Tress// and //Grass//. {{interimage:examples:example5_13.png|Semantic net}} * Select the //Grass// node. Right-click it and clik on //Enable/Disable//, disabling it. * Now, select the //Trees// node and change the breakpoint field to //TopDown//. Select the //TA_Baatz_Segmenter// top-down operator and set the operator parameters according to the following: {{interimage:examples:example5_14.png|Setting the operator parameters}} * Select the //Trees// node and click the //TopDown Decision Rule// button. {{interimage:examples:example5_22.png|Open Decision Rule}} * In the dialog that comes up click the //Class// button and select the //Trees// class. Click OK. Make sure that the //No Merge// option is selected and click OK again. {{interimage:examples:example5_20.png|Decision Rule dialog}} -> {{interimage:examples:example5_21.png|Insert Class}} * Click the //Debug Mode// button and save the project. Execute the interpretation. {{interimage:examples:example5_15.png|Debug Mode}} * When the interpretation pauses, click the //Analysis Explorer// button. {{interimage:examples:example5_19.png|Open Analysis Explorer}} * In the window that appears add three //Expression// blocks according to the figure below. Then click //Run//. {{interimage:examples:example5_23.png|Decision Rule}} -> {{interimage:examples:example5_24.png|Click Run}} * Click the //Attribute View// button. Then select one of the new attributes and click //Apply//. Repeat the operation with the other attributes. {{interimage:examples:example5_25.png|Attribute View}} -> {{interimage:examples:example5_26.png|Select an attribute}} * You may want to use the //Zoom// and //Pan// tools to facilitate viewing the polygons. Increasing the //Output Layer// opacity may help too. {{interimage:examples:example5_27.png|Visualization tools}} * Click the //Analysis Tools// button and click //Apply//. {{interimage:examples:example5_28.png|Analysis Tools}} * In the window that appears click the //Histogram// button. Select one of the new attributes and click //Generate//. {{interimage:examples:example5_29_2.png|Analysis Tools - Histogram}} * Check the //Selection Threshold// checkbox. A red dot will appear over the histogram graph. This dot represents the "cut" value, polygons with attribute values above this threshold will be selected and the others rejected. Drag the red dot to change the threshold value and then click //Preview//. Repeat the operation with the other attributes. {{interimage:examples:example5_30_2.png|Selection Threshold}} * Now, click the //Scatter Plot// button. Select two of the new attributes and click //Generate//. {{interimage:examples:example5_31.png|Analysis Tools - Scatter Plot}} * Check the //Selection Line// checkbox. A red line will appear over the scatter plot. This lines represents the "cut" line, polygons with attribute values to the right of the line will be selected and the others rejected. Drag the line dots to change the selection. Repeat the operation with the other attributes. {{interimage:examples:example5_32.png|Selection Line}} * The idea here is, after adjusting the thresholds, to copy the criterion expression and insert it into the Decision Rule as a //Selection// block. * As an example, close the //Analysis Tools// window and change your decision rule this way: {{interimage:examples:example5_33.png|Decision Rule}} * After, click the //Selection View// button and click //Run//. {{interimage:examples:example5_34.png|Control Panel}} * Once the execution is finished, notice which objects were in the //Input Layer// (red polygons) and which remained in the //Output Layer// (green polygons). {{interimage:examples:example5_35.png|Selection result}} * If you are satisfied with the result, click OK. Otherwise, you can try to improve the classification result adjusting the thresholds. * Click OK. The system will execute your final decision rule and pause. Click //Continue// for the interpretation to continue until the end. {{interimage:examples:example5_37.png|Continuing the interpretation}} * Enable the //Grass// node and click the //Debug Mode// button, deselecting it. {{interimage:examples:example5_36.png|Exiting the Debug Mode}} * Save the project and run the interpretation.