Skip to content

Bug in ExtractROI (radius and extent modes)

Description

ExtractROI copy the full input image in the output image when using the extent and radius modes.

Steps to reproduce

example in command line

otbcli_ExtractROI -in S2A.tif -out /tmp/out.tif -mode radius -mode.radius.cx 100 -mode.radius.cy 150  -mode.radius.r 10
2019-06-28 17:03:49 (INFO) ExtractROI: Default RAM limit for OTB is 256 MB
2019-06-28 17:03:49 (INFO) ExtractROI: GDAL maximum cache size is 794 MB
2019-06-28 17:03:49 (INFO) ExtractROI: OTB will use at most 12 threads
2019-06-28 17:03:49 (INFO): Estimated memory for full processing: 5518.66MB (avail.: 256 MB), optimal image partitioning: 22 blocks
2019-06-28 17:03:49 (INFO): File /tmp/out.tif will be written in 23 blocks of 10980x478 pixels
Writing /tmp/out.tif...: 100% [**************************************************] (21s)

Configuration information

ubuntu 16.04, develop of 28/06/2019