# Manually merging labeled segments

**URL:** <https://forum.orfeo-toolbox.org/t/manually-merging-labeled-segments/3420>\
**Category:** OTB Usage\
**Created:** [January 30, 2026, 3:26pm UTC](https://forum.orfeo-toolbox.org/t/manually-merging-labeled-segments/3420 "2026-01-30T15:26:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvanhuizen](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/b/ebca7d/32.png) [@bvanhuizen](https://forum.orfeo-toolbox.org/u/bvanhuizen)\
**Post date:** [January 30, 2026, 3:27pm UTC](https://forum.orfeo-toolbox.org/t/manually-merging-labeled-segments/3420/1 "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 limits. While running the LSMSSegmentation tool, it generated all of the individual tiles (92,584 in total, it is a big area) but it didn’t generate the merged labeled tif file. So I can’t run the next tool in the process which is the LSMSSmallRegionsMerging tool because it is looking for this merged tool.

Can I just merge all the individual tiles together? Or use a virtual raster? Or do I have to re-run the entire tool again?\*

### Configuration setup

**My system** : _Linux?_  
**Version of the OTB** : _9.0?_  
**I installed the OTB with** : _the binaries_

_If relevant, you may also provide:_  
**Python version** : _3.10 but in a virtual environment_

## Description of my issue

As mentioned, if the LSMSSegmentation tool is stopped before generating the final merged labeled tif file, can I just merge the individual tiles manually?
