Problems in complex image support with OTB 3.7
Mantis Issue 211, reported by mgrizonnet, assigned to msavinaud, created: 2010-11-26
-
We are no longer able to read complex float or double image (scalar image, vector works fine). Instead we read the modulus of the appropriate value into the real part of the complex image. The support for other complex types remains valid, because in this case we are using the old fashioned way (Emmanuel did only handle float and double cases).
-
If we try to read a complex float/double image into a VectorImage, we no longer retrieve a 2 bands image with separated real and imaginary part, but only one band with the real part.
Technical diagnosis (for developers) : http://groups.google.com/group/otb-developers/browse_thread/thread/dac2d1da28f7f607
Some tests that show the problem: http://hg.orfeo-toolbox.org/OTB/rev/cd74f0df2c5e
1290756843 - christopThere is also the issue of the Image<complex> (not vector image), cf tests: ioTvImageComplexFloatTest ioTvImageComplexDoubleTest (these tests do not test for the VectorImage case mentioned above)
1290757700 - christopJust added test for the VectorImage case: http://hg.orfeo-toolbox.org/OTB/rev/1fe4b15c72f4
1291617051 - christopCorrect support to read a VectorImage into VectorImage with doubling of the number of bands: http://hg.orfeo-toolbox.org/OTB/rev/915ee5ceb04a
Keep an eye of the test for full validation.
1294332424 - christopSome tests are failing because of different assumptions regarding the expected results (expecting only partial support). The test should be fixed.
1300377707 - mickaelAccording to the discussion about this bug on otb-developers (https://groups.google.com/group/otb-developers/browse_thread/thread/dac2d1da28f7f607/7bc31a384383f34b?hl=fr#7bc31a384383f34b) we can consider the bug resolved. cha