[GRASS-dev] [GRASS GIS] #3210: r.texture: bug when non continuous series of values

GRASS GIS trac at osgeo.org
Tue Nov 22 06:50:21 PST 2016


#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>



More information about the grass-dev mailing list