BUG: Fix image mode of ColorMapping application
* Use StreamingStatisticsMapFromLabelImageFilter in ColorMapping application to enable streaming for this mode * Compute the mean radiometric value without considering histogram cut like in the previous mode * [BUG] Apply histogram cut AFTER the mean is computed, otherwise the averaging is wrong ! * [BUG] Label 0 was always affected a (0,0,0) RGB triplet : this is wrong for KMeans results
Showing
- Applications/Utils/otbColorMapping.cxx 32 additions, 21 deletionsApplications/Utils/otbColorMapping.cxx
- Code/BasicFilters/otbStreamingStatisticsMapFromLabelImageFilter.h 1 addition, 10 deletions...icFilters/otbStreamingStatisticsMapFromLabelImageFilter.h
- Code/BasicFilters/otbStreamingStatisticsMapFromLabelImageFilter.txx 2 additions, 11 deletions...Filters/otbStreamingStatisticsMapFromLabelImageFilter.txx
Loading
Please register or sign in to comment