Trouble in pixel descrition in Monteverdi viewer
Mantis Issue 239, reported by cvalladeau, assigned to cvalladeau, created: 2011-02-28
Only try with big images.
-
Open QB/Toulouse/*TIF
-
Open viewer
-
In pixel description tab : look for pixel index 2000 - 2000, press OK
-
In the displayed image, put the cursor to the index 2000 - 2000 => Values are different than those given by the pixel description tab.
-
Click OK in pixel description tab (without changing the index) => New values are displayed, the good one.
1307636968 - C ValladeauFix in : http://hg.orfeo-toolbox.org/Monteverdi/rev/1ad239575c8d We use the GetPixelDescription of the ImageLayer to find the information. The method has to behaviour :
- if the index is in the buffered region -> get the value of the image
- else interpolate the value using the quicklook Problem is that we first get the information and then center the view on the pixel. Thus, if the asked index is outside the buffered region we took the ql value, and then update the buffered region (centering the zoom view on the index). When we push again OK, the buffered region is contains now the index, the displayed pixel value is the one of the image.
Solution : first update the view (thus the index can't be outside the buffered region) and then get the pixel information.