====== Example 2 - Performing a intra-regions segmentation ====== This example shows how to perform a simple segmentation and teaches some basic concepts about the interpretation process. ===== Database ===== {{interimage:examples:example2_data.zip|Example 2 - Database}} This zip file contains: * tijuca.tif * quadras.shp (city blocks) ===== Step by step ===== * Start InterIMAGE. Click on //File// -> //New Project// and fill the fields according to the following: {{interimage:examples:example2_1.png|Adding an image}} * Check the //Default Image// checkbox and click the //Add// button. * Add the shapefile quadras.shp. Click the //Add// button. After, click OK. {{interimage:examples:example2_22.png|Adding a shapefile}} * Select the //Shape// tab and click the //Add// button. Set its //Color// to red, then click //Save//. {{interimage:examples:example2_32.png|Adding a shape layer}} -> {{interimage:examples:example2_42.png|Adding a shape layer}} * Now, you should see something like this: {{interimage:examples:example2_52.png|Layer rendered.}} * After, uncheck the //Visible// checkbox of the shape layer. * Create a semantic net like this one: {{interimage:examples:example2_6.png|Semantic Net}} * Associate the //TA_Shapefile_Import// operator to the //Blocks// node. Set the operator parameters according to the image below. The //CODIGO// attribute is the block code in the shapefile. {{interimage:examples:example2_7.png|Selecting the top-down operator}} -> {{interimage:examples:example2_8.png|Setting the operator parameters}} * Associate a segmentation top-down operator to the //Segmentation// node. We will use the //TA_Baatz_Segmenter// operator in this example. Set the operator parameters according to the following: {{interimage:examples:example2_9.png|Selecting the top-down operator}} -> {{interimage:examples:example2_10.png|Setting the operator parameters}} * Click on //File// → //Save Project//. Click the //Execute// button. After the execution you should see something like this: {{interimage:examples:example2_11.png|Analisys ready}} * Collapse the //Blocks// node. Once it's collapsed, select an object and see its attributes in the //Object Information// widget. Note that each block turned into a separate object and that the //CODIGO// attribute was successfully imported by the operator. {{interimage:examples:example2_12.png|Blocks node collapsed}} -> {{interimage:examples:example2_13.png|Select an object}} -> {{interimage:examples:example2_14.png|Object Information widget}} * Expand back the //Blocks// node, select it and click the //TopDown Decision Rule// button. {{interimage:examples:example2_15.png|Top-down decision rule}} * In the dialog that appears click the //Class// button and select the //Blocks// class. Click OK. Make sure that the //Merge All// option is selected and click OK again. {{interimage:examples:example2_16.png|Decision Rule dialog}} -> {{interimage:examples:example2_17.png|Insert Class}} * Save the project and re-execute the interpretation. * Once the analysis is ready, collapse the //Blocks// node. Select an object and see its attributes in the //Object Information// widget. You should note that all blocks were merged into a single object. That's what the //Merge All// feature does. {{interimage:examples:example2_18.png|Blocks merged into a single object}} * The previous behavior can be achieved again by selecting //No Merge// in the //TopDown Decision Rule// dialog. * Add a //Roads// node to the semantic net: {{interimage:examples:example2_19.png|Semantic Net}} * Save the project and re-execute the interpretation. The result is explained by the default operator associated to the //Roads// node: //Dummy Top-Down//. It produces a hypothesis of //Roads// over the entire scene, so what's not //Blocks// (the gaps in the previous result) will automatically be classified as //Roads//. {{interimage:examples:example2_20.png|Gaps are classified as Roads}} * The result can be better viewed if the //Blocks// node is collapsed. Try it out!