From dc554eb356b1e5c8965295c31b04ccadbc7d7544 Mon Sep 17 00:00:00 2001 From: "raffaele.gaetano" <raffaele.gaetano@cirad.fr> Date: Thu, 28 Jul 2022 23:52:57 +0200 Subject: [PATCH] FIX: removed get_region. --- Common/otb_numpy_proc.py | 8 -------- VHR/segmentation.py | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Common/otb_numpy_proc.py b/Common/otb_numpy_proc.py index 431451f..1465d04 100644 --- a/Common/otb_numpy_proc.py +++ b/Common/otb_numpy_proc.py @@ -205,14 +205,6 @@ def to_otb_pipeline(obj): sys.exit("Impossible to convert object ot OTB pipeline") return ppl -def get_region(startx, starty, sizex, sizey): - r = otb.itkRegion() - r['index'][0] = startx - r['index'][1] = starty - r['size'][0] = sizex - r['size'][1] = sizey - return r - def do_something(fn): # Create a smoothing application app = otb.Registry.CreateApplication("ExtractROI") diff --git a/VHR/segmentation.py b/VHR/segmentation.py index 4bfca27..00389b7 100644 --- a/VHR/segmentation.py +++ b/VHR/segmentation.py @@ -2,7 +2,7 @@ import sys import numpy as np -from Common.otb_numpy_proc import to_otb_pipeline, get_region +from Common.otb_numpy_proc import to_otb_pipeline import os.path import otbApplication as otb import multiprocessing as mp -- GitLab