This is a module for the Diapason processing with OTB
The module must be used with OTB Orfeo Toolbox (https://www.orfeo-toolbox.org/).
It is designed to work with OTB v6.2 (or higher).
It is designed to work with OTB v7.0 (or higher).
This module can be built as a remote module or as a standalone module
# Getting Started
DiapOTB is an OTB's official remote module. Its applications and processing chains are directly included inside OTB's package.
Thus, two main ways can be used to install DiapOTB :
* From OTB standalone package (the easy way)
* From scratch (source code)
## Installation
1. Clone the repository
### Installation from OTB standalone package
This installation provides standalone binaries for several OS. You can choose the wanted binaries at https://www.orfeo-toolbox.org/download/
On all platforms, the OTB standalone package contains everything: applications for command line and graphical user interface, python bindings, Monteverdi and also official remote modules (with **DiapOTB**). This installation is extermely simplify by following given instructions : https://www.orfeo-toolbox.org/CookBook/Installation.html
### Installation from scratch
To install DiapOTB from scratch (from source code), binaries and libraries have to be overrided inside the existing installation of OTB. This override involves installing a “personal” OTB.
Therefore, two main steps are required for a complete installation of DiapOTB form scratch :
**1. OTB installation**
Find further information at https://www.orfeo-toolbox.org/CookBook/CompilingOTBFromSource.html
`
NB: A Superbuild is available for OTB installation to handle dependencies. With this build, dependencies are directly downloading inside a given repository (-DDOWNLOAD_LOCATION) before being installed.
`
* Clone the repository and choose a branch (usually develop by default)
* Setup environment for all dependencies and cmake
* Configure for a normal build
Cmake command makes configuration with an example given below (<install_OTB_directory> represents the selected repository for the OTB installation and <root_OTB> the root for the source code):
NB: Configuration is sligthly different with superbuild. Please, find futher information at https://www.orfeo-toolbox.org/CookBook/CompilingOTBFromSource.html?highlight=superbuild
`
* Compile and install
```
% make
% make install
```
**2. DiapOTB installation**
* Clone the repository
```
%git clone
% git clone
For OTB Gitlab : git clone https://gitlab.orfeo-toolbox.org/remote_modules/diapotb.git
```
2. Go to source directory
* Go to source directory
```
%cd DiapOTBModule
%cd DiapOTB
```
3. Create build directory
* Create build directory
```
% mkdir build
% cd build
```
4. Setup OTB environment
* Setup environment for all dependencies and cmake
* Setup OTB environment by setting the following variables (with x.x = OTB version)