Ferramentas do usuário

Ferramentas do site


interimage:creating_operators

Diferenças

Aqui você vê as diferenças entre duas revisões dessa página.

Link para esta página de comparações

Ambos lados da revisão anteriorRevisão anterior
Próxima revisão
Revisão anterior
interimage:creating_operators [2009/10/08 15:45] tkortinginterimage:creating_operators [2009/12/03 19:35] (atual) gilson
Linha 1: Linha 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/.
Linha 18: Linha 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 {{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 =====
interimage/creating_operators.1255016718.txt.gz · Última modificação: 2009/10/08 15:45 por tkorting