Hello Everybody! i have a question concerning the derivation of Haralick features implemented in the otb::ScalarImageToTexturesFilter class:
Perhaps i am missing something but i do not understand why a different mean value is used for the Haralicks Correlation feature and the rest of the features. Following this i do not get what the marginalSum variable represents and why it is used to calculate the mean and deviation for the Haralick Correlation feature. I am referring to the file *otbHaralickTexturesImageFunction.txx* (doc: http://orfeo-toolbox.org/doxygen/otbHaralickTexturesImageFunction_8txx_source.html ) Below is the part of the code my question is related to while( it != glcVector.end()) { double frequency = (*it).second / totalFrequency; CooccurrenceIndexType <http://orfeo-toolbox.org/doxygen/classitk_1_1Index.html> index = (*it). first; pixelMean += index[0] * frequency; marginalSums[index[0]] += frequency; ++it; } -------------------------------------------------- textures[7] += index[0] * index[1] * frequency; textures[7] = (fabs(marginalDevSquared) > 1E-8) ? ( textures[7] - marginalMean * marginalMean ) / marginalDevSquared : 0; Many thanks in advance for your help! Greetings, Erik -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
