Channels order in the wiewer module
Mantis Issue 124, reported by mgrizonnet, assigned to jmalik, created: 2009-11-23
The order of the RGB composition mode is not always the same
r=3,g=2,b=1 or r=1,g=2,b=3.
1259044079 - christopDo you mean it should be the same or it should not be the same?
Ideally, we should adapt automatically to the sensor loaded: for example: R=1, G=2, B=3 for Spot5 R=3, G=2, B=1 for QB
1275553870 - julienmthe behavior comes from here :
nbcomponent = 3 -> r=1, g=2, b=3 nbcomponent >= 4 -> r=3, g=2, b=1
1276500291 - christopWe could use the: BandIndexToWavelengthPosition()
And always do a: SetRedIndex(BandIndexToWavelengthPosition(0)) SetRedIndex(BandIndexToWavelengthPosition(1)) SetRedIndex(BandIndexToWavelengthPosition(2))
That would work for all sensors and the logic will be in one place only.
1276521806 - stephaneI suggest the following algorithm (mixt from several contributions) : if (metadata exists): Get Red Index Get Green Index Get Blue Index Set Visu Red Index (Red Index) Set Visu Green Index (Green Index) Set Vi