====== Example 1 - Performing a segmentation ====== This example shows how to perform a simple segmentation and teaches some basic concepts about the user interface. ===== Database ===== {{interimage:examples:example1_data.zip|Example 1 - 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:example1_1.png|New Project dialog}} \\ \\ ---- **Attention**! Make sure the resource key you type in this dialog doesn't match a class name in your semantic net, otherwise InterImage won't run properly. ---- \\ ---- **Attention**! Make sure the keys, names and paths in your project don't have white spaces or non-ASCII characters, otherwise InterImage won't run properly. ---- \\ * Check the //Default Image// checkbox and click the //Add// button. Click OK. * Try the visualization tools: Pan, Zoom etc. {{interimage:examples:example1_22.png|Visualization tools}} * Select the image layer and click the //Composition// button. Try different compositions. {{interimage:examples:example1_3.png|Image layer}} -> {{interimage:examples:example1_4.png|Color Composition dialog}} * Right-click the //Scene// node and click on //Insert Child// -> //Node//. Select the inserted node and set its //Class// to //Segmentation// and its //Color// to blue. This will be our semantic net for this project. {{interimage:examples:example1_5.png|Inserting a node}} -> {{interimage:examples:example1_6.png|Semantic Net}} * 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:example1_7.png|Selecting a top-down operator}} -> {{interimage:examples:example1_8.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:example1_92.png|Analysis ready}} * Select the result layer and try different border and opacity settings. {{interimage:examples:example1_10.png|Result layer}} * Now, you may want to try different values for the segmentation operator parameters. Just make the changes and re-execute the interpretation. You can also try another operators, our [[interimage:operators_documentation|Operators Documentation]] can be helpful. ==== Exporting a shapefile ==== * Select the result layer and click the //Export// button. {{interimage:examples:example1_11.png|Export result layer}} * In the dialog that appears click the //Class// button and select the //Segmentation// class. Click OK. {{interimage:examples:example1_12.png|Export Shapefile dialog}} -> {{interimage:examples:example1_13.png|Insert Class}} * Click OK and select a name for your shapefile. Click Save. {{interimage:examples:example1_14.png|Choose Shapefile}} ==== Loading the shapefile into the project ==== * Save the project. Once the project is saved click on //File// -> //Edit Project//. Fill the fields according to the following: {{interimage:examples:example1_15.png|Edit Project dialog}} * Click the //Add// button and then click OK. * Select the //Shape// tab and click the //Add// button. Change //Color// and //Opacity// properties if needed, then click //Save//. {{interimage:examples:example1_16.png|Adding a shape layer}} -> {{interimage:examples:example1_17.png|Adding a shape layer}}