source: branches/PublicaMundi_David-devel/docs/_build/html/_sources/kernel/orfeotoolbox.txt @ 659

Last change on this file since 659 was 659, checked in by nbozon, 9 years ago

Massive update of zoo docs

File size: 4.3 KB
Line 
1.. _kernel-orfeotoolbox:
2   
3Optional Orfeo Toolbox support
4======================
5
6`Orfeo Toolbox <http://orfeo-toolbox.org/otb/>`_ provides simple to advanced algorithms for processing imagery available from remote sensors.
7The optional Orfeo Toolbox support is available since `ZOO-Project 1.5
8<http://zoo-project.org>`__. It allows to execute the `OTB Applications <http://orfeo-toolbox.org/otb/otb-applications.html>`_ directly as ZOO WPS Services thanks to a :ref:`kernel_index` specific internal mechanism which is detailed in this section.
9
10.. note::
11
12   |otb| `Orfeo Toolbox <https://www.orfeo-toolbox.org>`__ is an open source image processing library. Learn more by reading its `documentation <https://www.orfeo-toolbox.org/documentation/>`__.
13 
14
15.. |otb| image:: ../_static/orfeotoolbox.png
16       :height: 115px
17       :width: 150px
18       :scale: 30%
19       :alt: Orfeo Toolbox logo
20
21
22Installation and configuration
23------------------------------
24
25Follow the step described bellow in order to activate the ZOO-Project
26optional Orfeo Toolbox support.
27
28Prerequisites
29.............
30
31   * latest `ZOO-Kernel <http://zoo-project.org/trac/browser/trunk/zoo-project/zoo-kernel>`_ trunk version
32   * Orfeo Toolbox (`OTB 4.2.1 <http://orfeo-toolbox.org/otb/>`_ )
33   * Insight Segmentation and Registration Toolkit  (`ITK-4.7 <http://itk.org/ITK/resources/software.html/>`_ )
34
35Installation steps
36...........................
37
38.. Note:: These installation steps were successfully tested on Ubuntu 14.4 LTS
39
40.. Note:: For OTB and ITK, the CMAKE_C_FLAGS and CMAKE_CXX_FLAGS must first be set to ``-fPIC``
41
42Download lastest ZOO-Kernel code from SVN.
43
44.. code-block:: guess
45
46    svn checkout http://svn.zoo-project.org/svn/trunk/zoo-kernel zoo-kernel
47
48Then compile ZOO-Kernel using the needed configuration options as shown bellow:
49
50.. code-block:: guess
51
52     cd zoo-kernel
53     autoconf
54     ./configure  --with-otb=/usr/local --with-itk=/usr/local --with-itk-version=4.7
55     make
56     cp zoo_loader.cgi /usr/lib/cgi-bin
57
58Configuration steps
59*************************
60
61Main configuration file
62^^^^^^^^^^^^^^^^^^^^^^^
63
64Add the following content to your ``/usr/lib/cgi-bin/main.cfg`` file
65in the ``[env]`` section:
66
67.. code-block:: guess
68
69       ITK_AUTOLOAD_PATH=/usr/local/lib/otb/applications
70
71Services configuration file
72^^^^^^^^^^^^^^^^^^^^^^^^^^
73
74The build of the `otb2zcfg  <http://zoo-project.org/trac/browser/trunk/thirds/otb2zcfg>`_ utility is required to activate the available OTB Applications as WPS services. This can be done using the following command:
75
76.. code-block:: guess
77       
78         mkdir build
79         cd build
80         ccmake ..
81         make
82       
83Run the following command to generate all the needed zcfg files for the available OTB Application:
84
85.. code-block:: guess
86       
87         mkdir zcfgs
88         cd zcfgs
89         export ITK_AUTOLOAD_PATH=/your/path/to/otb/applications
90         ../build/otb2zcfg
91         mkdir /location/to/your/cgi-bin/OTB
92         cp *zcfg /location/to/your/cgi-bin/OTB
93       
94.. warning
95
96     The ITK_AUTOLOAD_PATH environment variable is required in the [env] section of your main.cfg.
97
98Test the ZOO OTB support
99^^^^^^^^^^^^^^^^^^^^^^^
100
101Once done, OTB Applications should be listed as available WPS Services when runing a GetCapabilities request
102
103.. code-block:: guess
104
105        http://localhost/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS
106
107Each OTB Service can then be described individually using the DescribeProcess request, as for example:
108
109.. code-block:: guess
110
111   http://localhost/cgi-bin/zoo_loader.cgi?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=OTB.BandMath
112
113As an example, here is a test request executing the OTB.BandMath Application with the OTB Cookbook sample data as input
114
115.. code-block:: guess
116
117   http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=OTB.BandMath&DataInputs=il=Reference@xlink:href=http://hg.orfeo-toolbox.org/OTB-Data/raw-file/ca154074b282/Examples/verySmallFSATSW.tif;il=Reference@xlink:href=http://hg.orfeo-toolbox.org/OTB-Data/raw-file/ca154074b282/Examples/verySmallFSATSW_nir.tif;out=float;exp=im1b3*cos%28im1b1%29,im1b2*cos%28im1b1%29,im1b1*cos%28im1b1%29&RawDataOutput=out@mimeType=image/png
118
119
120.. note::
121   When executing OTB applications as WPS Services, it is also possible to check the OTB process status, using the usual ZOO GetStatus request.
122
123
124
125   
126
127
128
129
130
131
Note: See TracBrowser for help on using the repository browser.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png