histogram minimum filter available ?
Mantis Issue 393, reported by cmoisy, assigned to ghost, created: 2011-07-28
is there an histogram minimum filter (dark object substract) function implemented in OTB ? I haven't seen is in the list. This is used for quick atmospheric correction using minimum value or average of minimum values that is substracted to all the data values.
Is the regression line method available also ?
1313583683 - C ValladeauHi,
There's some classes that computes histogram : otbListSampleToVariableDimensionHistogramGenerator and itkListSampleToHistogramGenerator (that uses a listSample as input). itkImageToHistogramGenerator and itkScalarImageToHistogramGenerator (input is a mono channel image but you can use an otbPerBandImageFilter to compute the histogram over each channel).
If you just need the minimum of the image, you can have a look to otbStreamingMinMaxVectorImageFilter or otbStreamingMinMaxImageFilter.
Concerning regression line, I'm not sure to understand your need, what do you mean exactly?
Hope it'll help, Cyrille PS : I suggest you to post a mail to the users or developpers list for that kind of question. You'll certainly have a faster and more precise answer.