Problem when trying to orthorectify an image issued from SuperImpose application (OTB 8)
Description
Some OTB 8 users reported us the fact that it was impossible to orthorectify an image that was computed by Superimpose application. The use-case can be describe as following :
- [optional] Extract an ROI of some georeferenced data
- superimpose that data onto a PHR image in its raw sensor geometry
- orthorectify that image => we expect that final step to produce an image co-registered with our initial data.
This problem can be reproduced for example with OTB PHR images from Workshop Data. With OTB 7.4, the behaviour was correct but with OTB 8.x, the image issued from Superimpose does not contain the right metadata to compute orthorectification.
Steps to reproduce
To reproduce that problem on different images, I wrote that little script :
#!/bin/sh
DIR=$1
IM_GEO=$2
IM_SENSOR=$3
mkdir -p ${DIR}/step2_extractroi
mkdir -p ${DIR}/step3_superimpose
mkdir -p ${DIR}/step4_ortho
otbcli_ExtractROI -in ${IM_GEO} -out ${DIR}/step2_extractroi/xt_ortho.tif -startx 500 -starty 500 -sizex 500 -sizey 500
otbcli_Superimpose -inr ${IM_SENSOR} -inm ${DIR}/step2_extractroi/xt_ortho.tif -out ${DIR}/step3_superimpose/xt_sensor.tif
otbcli_OrthoRectification -io.in ${DIR}/step3_superimpose/xt_sensor.tif -io.out ${DIR}/step4_ortho/xt_ortho.tif
Configuration information
OTB 8.x or OTB 7.4 (binaries)