#3210: r.texture: bug when non continuous series of values --------------------------+------------------------- Reporter: mlennert | Owner: grass-dev@… Type: defect | Status: reopened Priority: normal | Milestone: 7.2.0 Component: Raster | Version: svn-trunk Resolution: | Keywords: r.texture CPU: Unspecified | Platform: Unspecified --------------------------+------------------------- Changes (by mlennert):
* status: closed => reopened * resolution: fixed => Comment: Reopening this ticket as the modifications seem to include an error in the Contrast measure calculations. IIUC, the f2_contrast() function has to return the sum and not the bigsum as bigsum is never calculated (commented out) and the result is thus always 0: {{{ --- h_measure.c (révision 69847) +++ h_measure.c (copie de travail) @@ -434,7 +434,7 @@ } } - return bigsum; + return sum; }}} MarkusM, can you confirm this ? With this change, the results are much more useful than the Contrast measurement output of <= g7.0.5 ! More generally, I think the difference in some of the measure are so important that this is probably a candidate for [https://trac.osgeo.org/grass/wiki/RFC/5_Errata RFC5 style treatment]. -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3210#comment:15> GRASS GIS <https://grass.osgeo.org> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev