Hi all -
I am trying to use Pansharpening through the OTB Applications browser in
Monteverdi 2 0.8.0 on Ubuntu 12.04 and am getting an error when I try
to fuse Pan (1.5m) and MS (6m) SPOT 6 image bands. The error message is:
--
Inputs do not occupy the same physical space!
InputImage Origin: [8.5232700e+05, 7.9139910e+06], InputImage_1 Origin:
[8.5232475e+05, 7.9139932e+06]
Tolerance: 6.0000000e-06
InputImage Spacing: [6.0000000e+00, -6.0000000e+00], InputImage_1
Spacing: [1.5000000e+00, -1.5000000e+00]
Tolerance: 6.0000000e-06
--
I have a feeling this is caused by a conflict between the image origin
being defined by the pixel center or corner and perhaps a rounding
error. Here is a table of the X/Y coordinates using the coordinates for
the upper left pixel reported by gdalinfo and the error message from OTB
Pansharpening
--
Pan image
gdalinfo OTB Difference
852324 852324.75 -.75
7913994 7913993.20 .80
MS image
gdalinfo OTB Difference
852324 852327.00 -3.00
7913994 7913991.00 3.00
--
The output from gdalinfo lists "AREA_OR_POINT=Area" and in that case I
think the upper left corner of the pixel should be used as a reference.
If AREA_OR_POINT=Point the the center of the pixel would be used - at
least that is my understanding.
I also see there is a "Tolerance" in the OTB error output. For some
reason the difference between the gdalinfo and OTB Y coordinate for the
Pan image is 0.8 and it should be 0.75 is it is for the X coordinate.
Maybe this is the problem? Is it a rounding error?
Anyway, if anyone has suggestions about how I should deal with this
please let me know.
All the best,
Ned
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.