Commit a0425532 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: pixel type for tiled inputs.

No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
...@@ -171,6 +171,7 @@ def segmentation_big_tiles(seg_in, seg_out, tmp_fld, params, tile_layout=[2,2], ...@@ -171,6 +171,7 @@ def segmentation_big_tiles(seg_in, seg_out, tmp_fld, params, tile_layout=[2,2],
rois[-1].SetParameterInt('sizey', roi[3]) rois[-1].SetParameterInt('sizey', roi[3])
seg_in_tmp.append(os.path.join(tmp_fld, os.path.basename(seg_in).replace('.tif', '_%d.tif' % i))) seg_in_tmp.append(os.path.join(tmp_fld, os.path.basename(seg_in).replace('.tif', '_%d.tif' % i)))
rois[-1].SetParameterString('out', seg_in_tmp[-1]) rois[-1].SetParameterString('out', seg_in_tmp[-1])
rois[-1].SetParameterOutputImagePixelType('out', otb.ImagePixelType_uint16)
rois[-1].ExecuteAndWriteOutput() rois[-1].ExecuteAndWriteOutput()
seg_out_tmp.append(os.path.join(tmp_fld, os.path.basename(seg_out).replace('.tif', '_%d.tif' % i))) seg_out_tmp.append(os.path.join(tmp_fld, os.path.basename(seg_out).replace('.tif', '_%d.tif' % i)))
cmd = ['otbcli_LSGRM', '-in', seg_in_tmp[-1], '-threshold', params[0], '-criterion.bs.cw', params[1], cmd = ['otbcli_LSGRM', '-in', seg_in_tmp[-1], '-threshold', params[0], '-criterion.bs.cw', params[1],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment