# OTB Usage

**URL:** https://forum.orfeo-toolbox.org/c/otb-usage/5.md

[Latest](https://forum.orfeo-toolbox.org/latest.md) · [Categories](https://forum.orfeo-toolbox.org/categories.md)

---

## [About the OTB Usage category](https://forum.orfeo-toolbox.org/t/about-the-otb-usage-category/12)

<div class="topic-metadata">

**Author:** [@sdinot](https://forum.orfeo-toolbox.org/u/sdinot)\
**Replies:** 0

</div>

Discussions about the Orfeo Toolbox usage.

---

## [Manually merging labeled segments](https://forum.orfeo-toolbox.org/t/manually-merging-labeled-segments/3420)

<div class="topic-metadata">

**Author:** [@bvanhuizen](https://forum.orfeo-toolbox.org/u/bvanhuizen)\
**Replies:** 0\
**Last updated:** [January 30, 2026, 3:27pm UTC](https://forum.orfeo-toolbox.org/t/manually-merging-labeled-segments/3420 "2026-01-30T15:27:00Z")

</div>

Context \*Hi there, I am trying to generate a segmented image to be used in a landuse classification random forest model. I am running this on a high performance cluster, however I am limited to 8 hour session time limit…

---

## [The otb log level can't be changed after importing otbApplication in Python code](https://forum.orfeo-toolbox.org/t/the-otb-log-level-cant-be-changed-after-importing-otbapplication-in-python-code/3403)

<div class="topic-metadata">

**Author:** [@mlucas](https://forum.orfeo-toolbox.org/u/mlucas)\
**Replies:** 3\
**Last updated:** [December 19, 2025, 2:37pm UTC](https://forum.orfeo-toolbox.org/t/the-otb-log-level-cant-be-changed-after-importing-otbapplication-in-python-code/3403 "2025-12-19T14:37:05Z")

</div>

Context I am trying to change the otb log level (not the pyotb log level) after importing otbApplication. Configuration setup My system: Redhat 8 Version of the OTB: 9.1.0 I installed the OTB with: I am using the otb …

---

## [Edit / change ortho aerial radiometric values with conditions ( shadows mask / low values of a digital height model)?](https://forum.orfeo-toolbox.org/t/edit-change-ortho-aerial-radiometric-values-with-conditions-shadows-mask-low-values-of-a-digital-height-model/3409)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 0\
**Last updated:** [December 17, 2025, 10:33am UTC](https://forum.orfeo-toolbox.org/t/edit-change-ortho-aerial-radiometric-values-with-conditions-shadows-mask-low-values-of-a-digital-height-model/3409 "2025-12-17T10:33:33Z")

</div>

Dear all, I work with Otb, Qgis and grass via the processing toolbox. I have for my area of interest: color infrared orthographic aerial (3 spectral bands: Near-infrared, red, green). For information, which I have do…

---

## [Set new pixel radiometric values based on neighborhood?](https://forum.orfeo-toolbox.org/t/set-new-pixel-radiometric-values-based-on-neighborhood/3400)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 1\
**Last updated:** [December 5, 2025, 9:39am UTC](https://forum.orfeo-toolbox.org/t/set-new-pixel-radiometric-values-based-on-neighborhood/3400 "2025-12-05T09:39:04Z")

</div>

Dear all, I work with Orfeo (especially via Qgis processing tools. I’m performing segmentations on infrared aerial images (3 bands : NIR, R, G). One of the problems comes from shadow (especially from trees) which affec…

---

## [Clustering segmentation (kmeans) with orfeo?](https://forum.orfeo-toolbox.org/t/clustering-segmentation-kmeans-with-orfeo/3332)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 1\
**Last updated:** [December 1, 2025, 10:02am UTC](https://forum.orfeo-toolbox.org/t/clustering-segmentation-kmeans-with-orfeo/3332 "2025-12-01T10:02:25Z")

</div>

Dear all, Does it possible with Orfeo to perform a clustering segmentation base method ? As far as i understood, with orfeo, we can perform several methods : region, edge, threshold (Mean shift), Connected components, …

---

## [Issue with image segementation](https://forum.orfeo-toolbox.org/t/issue-with-image-segementation/3396)

<div class="topic-metadata">

**Author:** [@monasound](https://forum.orfeo-toolbox.org/u/monasound)\
**Replies:** 0\
**Last updated:** [November 12, 2025, 12:17pm UTC](https://forum.orfeo-toolbox.org/t/issue-with-image-segementation/3396 "2025-11-12T12:17:30Z")

</div>

I am conducting image segmentation using otbcli\_LargeScaleMeanShift on a series of Sentinel-1 time series images (30 images) that have been preprocessed. My goal is to use this segmentation to apply a Random Forest model…

---

## [Use Case: Segmentation (for photo-interprétation) without Classification?](https://forum.orfeo-toolbox.org/t/use-case-segmentation-for-photo-interpretation-without-classification/3340)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 1\
**Last updated:** [October 2, 2025, 8:44am UTC](https://forum.orfeo-toolbox.org/t/use-case-segmentation-for-photo-interpretation-without-classification/3340 "2025-10-02T08:44:30Z")

</div>

Hello, i’m taking the liberty to post a message in order to share an use case. Our need/purpose is to find existing methods/tools that would allow to perform segmentations with the aim of helping botanists for pre-map …

---

## [Role of \`S coefficient\` in Bayesian pansharpening](https://forum.orfeo-toolbox.org/t/role-of-s-coefficient-in-bayesian-pansharpening/3386)

<div class="topic-metadata">

**Author:** [@TomKenda](https://forum.orfeo-toolbox.org/u/TomKenda)\
**Replies:** 2\
**Last updated:** [October 2, 2025, 8:00am UTC](https://forum.orfeo-toolbox.org/t/role-of-s-coefficient-in-bayesian-pansharpening/3386 "2025-10-02T08:00:34Z")

</div>

Hi, I am currently working with a few WorldView2 satellite images that I would to pan-sharpen from the 1.6m native resolution to 0.4m using OTB. I have been able to do the whole process correctly but there is one thing…

---

## [OTB 9 (windows) : how to use Generic region merging segmentation? (external module)](https://forum.orfeo-toolbox.org/t/otb-9-windows-how-to-use-generic-region-merging-segmentation-external-module/3252)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 4\
**Last updated:** [August 14, 2025, 12:20pm UTC](https://forum.orfeo-toolbox.org/t/otb-9-windows-how-to-use-generic-region-merging-segmentation-external-module/3252 "2025-08-14T12:20:10Z")

</div>

Good morning, I work on a windows 11 station. I succeed in installing OTB-9.1.0-Win64 and connecting it with my 3.34.13-Prizren qgis version. I would like use “GRM” : Generic region merging segmentation", the baatz and …

---

## [Georeferencing Historical Image (2004) Using Recent Image (2025) in QGIS/OTB](https://forum.orfeo-toolbox.org/t/georeferencing-historical-image-2004-using-recent-image-2025-in-qgis-otb/3347)

<div class="topic-metadata">

**Author:** [@YureI](https://forum.orfeo-toolbox.org/u/YureI)\
**Replies:** 0\
**Last updated:** [July 3, 2025, 6:56am UTC](https://forum.orfeo-toolbox.org/t/georeferencing-historical-image-2004-using-recent-image-2025-in-qgis-otb/3347 "2025-07-03T06:56:49Z")

</div>

Hello everyone, I’m working on a project involving historical images, and I need help with georeferencing. I have: A 2025 image that is already georeferenced. A 2004 image that has no georeferencing. I would like to…

---

## [Limit a raster processing to a subset/region/mask area?](https://forum.orfeo-toolbox.org/t/limit-a-raster-processing-to-a-subset-region-mask-area/3338)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 2\
**Last updated:** [June 19, 2025, 1:29pm UTC](https://forum.orfeo-toolbox.org/t/limit-a-raster-processing-to-a-subset-region-mask-area/3338 "2025-06-19T13:29:14Z")

</div>

Dear all, I’m working in a QGIS environment (graphical interface). Specifically, I’m using a QGIS modeler. Thanks to the processing toolbar provides, i have access to QGIS, Grass, Saga, and Orfeo toolbox tools algo. My …

---

## [Aerial/sattelite image Segmentation: Not Modeling Shadows?](https://forum.orfeo-toolbox.org/t/aerial-sattelite-image-segmentation-not-modeling-shadows/3333)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 1\
**Last updated:** [June 19, 2025, 1:16pm UTC](https://forum.orfeo-toolbox.org/t/aerial-sattelite-image-segmentation-not-modeling-shadows/3333 "2025-06-19T13:16:50Z")

</div>

Dear all, With OTB via QGIS, I’m able to generate some interesting segmentations, particularly using the Generic Region Merging tool. The input image is one 20 cms aerial Ortho Infrared Color (green, red, and near infra…

---

## [otbcli\_ManageNoData multiband image buildmask](https://forum.orfeo-toolbox.org/t/otbcli-managenodata-multiband-image-buildmask/3306)

<div class="topic-metadata">

**Author:** [@cesardb](https://forum.orfeo-toolbox.org/u/cesardb)\
**Replies:** 4\
**Last updated:** [May 14, 2025, 7:16am UTC](https://forum.orfeo-toolbox.org/t/otbcli-managenodata-multiband-image-buildmask/3306 "2025-05-14T07:16:25Z")

</div>

Hi, I try to build the nodata mask from a multiband image. It outputs a single band image with the value 241. Is it expected? Is there a way to produce a mask with as many band as the input image? OTB-9.1.0-Linux/bi…

---

## [OTBTF PatchesExtraction on multiple separated images for a single CNN model](https://forum.orfeo-toolbox.org/t/otbtf-patchesextraction-on-multiple-separated-images-for-a-single-cnn-model/3289)

<div class="topic-metadata">

**Author:** [@emiliapafumi](https://forum.orfeo-toolbox.org/u/emiliapafumi)\
**Replies:** 2\
**Last updated:** [April 15, 2025, 12:13pm UTC](https://forum.orfeo-toolbox.org/t/otbtf-patchesextraction-on-multiple-separated-images-for-a-single-cnn-model/3289 "2025-04-15T12:13:25Z")

</div>

Hello, I am trying to apply a semantic segmentation using a CNN with images from multiple geographically separated study areas. Following the OTBTF/Keras tutorial, I am using the PatchesExtraction function to extract tr…

---

## [Baatz & Schape segmentation : LSGRM or LSOBIA (windows?)](https://forum.orfeo-toolbox.org/t/baatz-schape-segmentation-lsgrm-or-lsobia-windows/3272)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 1\
**Last updated:** [March 28, 2025, 4:21pm UTC](https://forum.orfeo-toolbox.org/t/baatz-schape-segmentation-lsgrm-or-lsobia-windows/3272 "2025-03-28T16:21:31Z")

</div>

Dear all, i work on windows. I would like GRM for large images : I found this post : It deals with about an official “large scale version” in development : is it possible to have an update ? Which tool should I p…

---

## ['LargeScaleMeanShift segmentation : error permission](https://forum.orfeo-toolbox.org/t/largescalemeanshift-segmentation-error-permission/3271)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 1\
**Last updated:** [March 28, 2025, 3:50pm UTC](https://forum.orfeo-toolbox.org/t/largescalemeanshift-segmentation-error-permission/3271 "2025-03-28T15:50:59Z")

</div>

Hello, With OTB 9, i have just tried to run one LargeSclaeMeanShift segmentation. But i get this following error message : The problem seems deal with permissions. It would be possible to edit/change the temporary pat…

---

## [Nix package for OTB](https://forum.orfeo-toolbox.org/t/nix-package-for-otb/3194)

<div class="topic-metadata">

**Author:** [@Pratyush](https://forum.orfeo-toolbox.org/u/Pratyush)\
**Replies:** 6\
**Last updated:** [March 19, 2025, 2:19pm UTC](https://forum.orfeo-toolbox.org/t/nix-package-for-otb/3194 "2025-03-19T14:19:07Z")

</div>

Hi Community, I would like share that I have added OTB to Nix packages, so now it is currently available as a package via Nix unstable channel.This is build from source based on version 9.1.0 with all modules activated …

---

## [Segmentation Vector smoothing (polygons): topology/geometry problems](https://forum.orfeo-toolbox.org/t/segmentation-vector-smoothing-polygons-topology-geometry-problems/3274)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 9:27am UTC](https://forum.orfeo-toolbox.org/t/segmentation-vector-smoothing-polygons-topology-geometry-problems/3274 "2025-03-18T09:27:57Z")

</div>

Dear all, I performed a raster segmentation from a Spot6 satellite image with OTB. I polygonized/vectorized this raster segmentation in order to get a vector file. To limit the pixelation of this cover, I was thinking of…

---

## [Alternative to GRM for big images?](https://forum.orfeo-toolbox.org/t/alternative-to-grm-for-big-images/3265)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 0\
**Last updated:** [March 10, 2025, 12:02pm UTC](https://forum.orfeo-toolbox.org/t/alternative-to-grm-for-big-images/3265 "2025-03-10T12:02:24Z")

</div>

Good afternoon, With the GRM segmentation module, i obtain interesting results for small images/area , for instance for one input ortho image (3 bands) . Please see result below : i would like to get this kind of re…

---

## [Segmentation : how to add texture criterion ? (not only colour/spectral variable)](https://forum.orfeo-toolbox.org/t/segmentation-how-to-add-texture-criterion-not-only-colour-spectral-variable/3263)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 2\
**Last updated:** [March 5, 2025, 6:40pm UTC](https://forum.orfeo-toolbox.org/t/segmentation-how-to-add-texture-criterion-not-only-colour-spectral-variable/3263 "2025-03-05T18:40:32Z")

</div>

Hello. My goal is to generate a relevant segmentation that would delimit the main physiopnomic units (homogenous areas). Up to now, I have done several tests with qgis and orfeotoolbox 9 with the OTB Generic Region merg…

---

## [TrainVectorClassifier RAM CACHE and Processing time](https://forum.orfeo-toolbox.org/t/trainvectorclassifier-ram-cache-and-processing-time/3255)

<div class="topic-metadata">

**Author:** [@Prins](https://forum.orfeo-toolbox.org/u/Prins)\
**Replies:** 3\
**Last updated:** [March 4, 2025, 7:11pm UTC](https://forum.orfeo-toolbox.org/t/trainvectorclassifier-ram-cache-and-processing-time/3255 "2025-03-04T19:11:19Z")

</div>

Hi, Am using OTB in QGIS to make a classification based upon a segmentation and this has worked previously - although I could see that the system was under pressure for RAM, CACHE as the processing time ect take some ti…

---

## [OTB 9 / Qgis 3.34 : 'GenericRegionMerging' memory problem](https://forum.orfeo-toolbox.org/t/otb-9-qgis-3-34-genericregionmerging-memory-problem/3256)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 1\
**Last updated:** [February 27, 2025, 3:08pm UTC](https://forum.orfeo-toolbox.org/t/otb-9-qgis-3-34-genericregionmerging-memory-problem/3256 "2025-02-27T15:08:55Z")

</div>

Hello, I’m taking the liberty to post a message. I work with windows 11, Qgis 3.34.13. I work with OrfeoToolbox 9 via Qgis interface (GenericRegionMerging segmentation module). Please find below the characteristics of m…

---

## [OTB 9.1.0 / windows 11 Pro : window disappears](https://forum.orfeo-toolbox.org/t/otb-9-1-0-windows-11-pro-window-disappears/3250)

<div class="topic-metadata">

**Author:** [@image80](https://forum.orfeo-toolbox.org/u/image80)\
**Replies:** 2\
**Last updated:** [February 20, 2025, 5:15pm UTC](https://forum.orfeo-toolbox.org/t/otb-9-1-0-windows-11-pro-window-disappears/3250 "2025-02-20T17:15:37Z")

</div>

Good afternoon, I’m taking the liberty to post a message. I tried to download and install the last 9.1.0 orfeotoolbox application on my windows professionnal 11. When i try to open for instance the otbcli\_Segmentation.…

---

## [Error while importing otbApplication on Windows 11](https://forum.orfeo-toolbox.org/t/error-while-importing-otbapplication-on-windows-11/3248)

<div class="topic-metadata">

**Author:** [@RomainN](https://forum.orfeo-toolbox.org/u/RomainN)\
**Replies:** 2\
**Last updated:** [February 17, 2025, 9:21am UTC](https://forum.orfeo-toolbox.org/t/error-while-importing-otbapplication-on-windows-11/3248 "2025-02-17T09:21:57Z")

</div>

Hello all, For a few days now, I have tried to configurate the Python interface for OTB cause I want to segment automatically images via OTB. Here is my conda work environnement : Windows 11 Python 3.10.16 OTB 9.1 B…

---

## [Orthorectification module](https://forum.orfeo-toolbox.org/t/orthorectification-module/3235)

<div class="topic-metadata">

**Author:** [@francescaf](https://forum.orfeo-toolbox.org/u/francescaf)\
**Replies:** 2\
**Last updated:** [February 12, 2025, 10:51am UTC](https://forum.orfeo-toolbox.org/t/orthorectification-module/3235 "2025-02-12T10:51:16Z")

</div>

Hi, I have tested the Ortorectification module of Orfeotoolbox 9.0.0, but I have some problems with different images. In detail: for the projected Pleides/SPOT6 products (PRJ images) the output is equal to the input i…

---

## [Guidance OTB 9.0.0 installation on mac silicon M1 through Docker](https://forum.orfeo-toolbox.org/t/guidance-otb-9-0-0-installation-on-mac-silicon-m1-through-docker/3199)

<div class="topic-metadata">

**Author:** [@giolotar](https://forum.orfeo-toolbox.org/u/giolotar)\
**Replies:** 9\
**Last updated:** [December 23, 2024, 9:18am UTC](https://forum.orfeo-toolbox.org/t/guidance-otb-9-0-0-installation-on-mac-silicon-m1-through-docker/3199 "2024-12-23T09:18:31Z")

</div>

Context Trying to install OTB through docker on M1 silicon Configuration setup My system: MacOS M1 pro Ventura 13.0.1 Version of the OTB: 9.0.0 I installed the OTB with: trying with Binaries, Docker If relevant, you…

---

## [Image registration](https://forum.orfeo-toolbox.org/t/image-registration/3187)

<div class="topic-metadata">

**Author:** [@JulesFleury](https://forum.orfeo-toolbox.org/u/JulesFleury)\
**Replies:** 0\
**Last updated:** [November 26, 2024, 1:34pm UTC](https://forum.orfeo-toolbox.org/t/image-registration/3187 "2024-11-26T13:34:18Z")

</div>

Hi all, Context \*I try to register two Pleiades images that come from an orthorectification process and that are around 3m offseted. I’ve tried 2 methods : Residual Registration workflow, and FineRegistration. One rais…

---

## [Otbenv.profile at startup](https://forum.orfeo-toolbox.org/t/otbenv-profile-at-startup/3184)

<div class="topic-metadata">

**Author:** [@JulesFleury](https://forum.orfeo-toolbox.org/u/JulesFleury)\
**Replies:** 3\
**Last updated:** [November 26, 2024, 2:54pm UTC](https://forum.orfeo-toolbox.org/t/otbenv-profile-at-startup/3184 "2024-11-26T14:54:08Z")

</div>

Hello, Context I’d like to use OTB seamlessly each time I start a terminal. Configuration setup My system: Ubuntu 22.04 Version of the OTB: 9.1 I installed the OTB with: the binaries Description of my issue \*I’d li…

---

## [Help: artifacts in semantic segmentation output using OTBTF/Keras tutorial](https://forum.orfeo-toolbox.org/t/help-artifacts-in-semantic-segmentation-output-using-otbtf-keras-tutorial/3171)

<div class="topic-metadata">

**Author:** [@emiliapafumi](https://forum.orfeo-toolbox.org/u/emiliapafumi)\
**Replies:** 3\
**Last updated:** [November 13, 2024, 5:25pm UTC](https://forum.orfeo-toolbox.org/t/help-artifacts-in-semantic-segmentation-output-using-otbtf-keras-tutorial/3171 "2024-11-13T17:25:35Z")

</div>

Hello, I am trying to apply the semantic segmentation method from the OTBTF/Keras tutorial on my own data and I am encountering some issues. Here is the tutorial I am following: GitHub - remicres/otbtf\_keras\_tutorial: …

[Next page](https://forum.orfeo-toolbox.org/c/otb-usage/5.md?page=1)
