Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
interimage:batch_processing [2014/04/06 17:24]
rsilva
interimage:batch_processing [2014/04/09 06:01] (current)
rsilva
Line 1: Line 1:
 [[interimage:​|InterIMAGE wiki]] ​ [[interimage:​|InterIMAGE wiki]] ​
- 
- 
- 
- 
- 
- 
- 
- 
  
 ====== Batch Processing ====== ====== Batch Processing ======
  
-As for the version 1.41 it is possible to run InterIMAGE in batch mode. With this new operation mode it is possible to create an interpretation project and then run +As for the version 1.39 it is possible to run InterIMAGE in batch mode. With this new operation mode it is possible to create an interpretation project and then run 
 it several times without having to interact with the user interface. This was mainly done  it several times without having to interact with the user interface. This was mainly done 
 to allow the execution of the so called pipelines. So, for example, now it is possible to  to allow the execution of the so called pipelines. So, for example, now it is possible to 
Line 20: Line 12:
 different ROIs without having to change them using the interface. In fact, it is possible to write a  different ROIs without having to change them using the interface. In fact, it is possible to write a 
 batch file that executes different InterIMAGE instances to classify hundreds of images ​ batch file that executes different InterIMAGE instances to classify hundreds of images ​
-with little user interaction. ​+with little user interaction
 + 
 +Finally, using some options it is possible to run slightly different configurations of the same operator or decision rule (this could be used to tune automatically the parameters values)
  
-To execute InterIMAGE in batch mode one should call it from the command line with at +To execute InterIMAGE in batch mode it's necessary to create a project through the user interface. After that one should call it from the command line with at 
 least these two following parameters: ​ least these two following parameters: ​
  
Line 53: Line 47:
 The semantic network file (.net) is the one that stores the classes that are expected to  The semantic network file (.net) is the one that stores the classes that are expected to 
 be found in a scene and also the operators that will be executed during the  be found in a scene and also the operators that will be executed during the 
-interpretation. It is possible, for example, to interpret a scene from different point of +interpretation. With this option the original semantic network will be replaced. It is possible, for example, to interpret a scene from different point of 
 views (land cover / land use).  views (land cover / land use). 
  
Line 90: Line 84:
  
 In this case the operator parameter value should be set to @scale@ in the interface. When the project is executed in batch, the system will replace the parameter value accordingly. In this case the operator parameter value should be set to @scale@ in the interface. When the project is executed in batch, the system will replace the parameter value accordingly.
 +
  
  
Line 100: Line 95:
  
 With this option it is possible to change the value of a decision rule parameter. ​ With this option it is possible to change the value of a decision rule parameter. ​
-Note that in this case the //​parameter_value_mask// ​must be unique and ordered numbers in this format 00001, 00002 etc. With this option it is possible to run slightly different configurations of the same decision rule (this could be used to tune automatically the decision rule parameters values).+Note that in this case the parameter value masks must be unique and ordered numbers in this format 00001, 00002 etc. With this option it is possible to run slightly different configurations of the same decision rule (this could be used to tune automatically the decision rule parameters values).
  
 **Example**:​ //​**interimage** ... "​parameterDecisionRule=00001#​75"//​ **Example**:​ //​**interimage** ... "​parameterDecisionRule=00001#​75"//​
Line 108: Line 103:
  
 =====Examples===== =====Examples=====
 +
  
  
Line 120: Line 116:
 It's possible to run an interpretation on a different image. It's possible to run an interpretation on a different image.
  
-//​**interimage** "​projectFile=project_name\project_name.gap"​ "​outputDecisionRule=decision_rule.dt"​ "​outputShapeFile=results.shp"​ "​resourceImage=image_key,new_image"//​+//​**interimage** "​projectFile=project_name\project_name.gap"​ "​outputDecisionRule=decision_rule.dt"​ "​outputShapeFile=results.shp"​ "​resourceImage=image_key#new_image"//​
  
   * //​project_name//​ is the name of your project;   * //​project_name//​ is the name of your project;
Line 127: Line 123:
   * //​image_key//​ is the key given to the image when the project was created;   * //​image_key//​ is the key given to the image when the project was created;
   * //​new_image//​ is the new image file path.   * //​new_image//​ is the new image file path.
 +
  
  
Line 134: Line 131:
 It's possible to run an interpretation using a different shapefile. If the shapefile is used in a project to define a ROI, this parameter could be used to interpret a different ROI. It's possible to run an interpretation using a different shapefile. If the shapefile is used in a project to define a ROI, this parameter could be used to interpret a different ROI.
  
-//​**interimage** "​projectFile=project_name\project_name.gap"​ "​outputDecisionRule=decision_rule.dt"​ "​outputShapeFile=results.shp"​ "​resourceShape=shape_key,new_shape"//​+//​**interimage** "​projectFile=project_name\project_name.gap"​ "​outputDecisionRule=decision_rule.dt"​ "​outputShapeFile=results.shp"​ "​resourceShape=shape_key#new_shape"//​
  
   * //​project_name//​ is the name of your project;   * //​project_name//​ is the name of your project;
Line 156: Line 153:
   * The //​decision_rule//​ file should be created at the creation of the project;   * The //​decision_rule//​ file should be created at the creation of the project;
   * //​new_semantic_network//​ is the new semantic network path.   * //​new_semantic_network//​ is the new semantic network path.
 +
 +
  
  
Line 161: Line 160:
 ====Changing Operator and Decision Rule Parameters==== ====Changing Operator and Decision Rule Parameters====
  
-It's possible to run an interpretation changing the values of specific parameters in the interpretation project.+It's possible to run an interpretation changing the values of specific parameters in the interpretation project. With these options it is possible to run slightly different configurations of the same operator or decision rule (this could be used to tune automatically the parameters values)
  
 //​**interimage** "​projectFile=project_name\project_name.gap"​ "​outputDecisionRule=decision_rule.dt"​ "​outputShapeFile=results.shp"​ "​parameterOperator=@scale@#​20"​ "​parameterDecisionRule=00001#​75"//​ //​**interimage** "​projectFile=project_name\project_name.gap"​ "​outputDecisionRule=decision_rule.dt"​ "​outputShapeFile=results.shp"​ "​parameterOperator=@scale@#​20"​ "​parameterDecisionRule=00001#​75"//​
Line 169: Line 168:
   * The //​decision_rule//​ file should be created at the creation of the project;   * The //​decision_rule//​ file should be created at the creation of the project;
   * //@scale@// is an operator parameter value mask set at the creation of the project;   * //@scale@// is an operator parameter value mask set at the creation of the project;
-  * //00001// is a decision rule parameter value mask set at the creation of the project;+  * //00001// is a decision rule parameter value mask set at the creation of the project.

Navigation