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:creating_operators [2009/10/08 12:46]
tkorting
interimage:creating_operators [2009/12/03 17:35] (current)
gilson
Line 1: Line 1:
-====== Creating an operator ======+[[interimage:​|InterIMAGE wiki]]  
 +====== ​InterIMAGE: ​Creating an operator ======
  
 TerraAIDA project aims to build InterIMAGE operators using the TerraLib library following the GNU LGLP license model. More information at http://​www.dpi.inpe.br/​terraaida/​. TerraAIDA project aims to build InterIMAGE operators using the TerraLib library following the GNU LGLP license model. More information at http://​www.dpi.inpe.br/​terraaida/​.
Line 18: Line 19:
 The operator main file will call the operator function, which checks the parameters and produces the output. The operator function header can also communicate with InterIMAGE GUI in order to be called directly. Here we create a simple operator, which gets an image by input, and outputs the regions according a certain threshold defined by the user. The operator main file will call the operator function, which checks the parameters and produces the output. The operator function header can also communicate with InterIMAGE GUI in order to be called directly. Here we create a simple operator, which gets an image by input, and outputs the regions according a certain threshold defined by the user.
  
-Download source-code ​[[here]].+Download source-code ​{{interimage:​ta_threshold.zip|here}}.
  
 +===== Operator .op file =====
 +
 +The following code represents the .op file to be loaded into InterIMAGE GUI.
 +
 +<code xml>
 +<​operator type=topdown class=gis name=TerraAIDA_Threshold
 +  cmd="​ta_threshold \"​@geoWest@\"​ \"​@geoNorth@\"​ \"​@geoEast@\"​ \"​@geoSouth@\"​ \"​@output@\"​ \"​@class@\"​ \"​@tmpdir@\"​ \"​@mask_file@\"​ \"​@image_name@\"​ \"​@image_channel@\"​ \"​@threshold_min@\"​ \"​@threshold_max@\"​ \"​@reliability@\"​ "
 +  runglobal=false tip="​Threshold one image by min and max values"​ >
 +  <​attribute name=image_name type=file ext="​tif;​jpg"​ label="​Input Image">​
 +  <​attribute name=image_channel label="​Image channel/​band"​ type=int value=0>
 +  <​attribute name=threshold_min label="​Threshold Min" type=double value=0 >
 +  <​attribute name=threshold_max label="​Threshold Max" type=double value=255 >
 +  <​attribute name=reliability label="​Reliability"​ type=double value=1.0>​
 +</​operator>​
 +</​code>​
 +
 +The resultant set of parameters will appear in InterIMAGE like the next figure.
 +
 +{{interimage:​op_parameters.png|}}
  
 ===== Operator Main File ===== ===== Operator Main File =====

Navigation