[GRASS-dev] [GRASS GIS] #3247: i.superpixels.slic fails when region larger than 500x500 pix (on Win7)
GRASS GIS
trac at osgeo.org
Tue Jan 10 03:23:14 PST 2017
#3247: i.superpixels.slic fails when region larger than 500x500 pix (on Win7)
--------------------------+--------------------------------
Reporter: tgrippa | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.6
Component: Imagery | Version: unspecified
Resolution: | Keywords: i.superpixels.slic
CPU: Unspecified | Platform: MSWindows 7
--------------------------+--------------------------------
Comment (by mlennert):
No more segfault when I decomment the allocation of the distvect array in
line 317-18:
{{{
@@ -314,10 +314,10 @@
memset (sigmay, 0, sizeof (double) * numk);
- //double *distvec;
- // distvec = G_malloc (sizeof (double) * sz);
+ double *distvec;
+ distvec = G_malloc (sizeof (double) * sz);
- double distvec[sz];
+ /*double distvec[sz];*/
int p;
for( p = 0; p < sz; p++ ) distvec[p] = 1E+9;
}}}
Don't know why this was commented, though, so I'll wait for Rashad to
react.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3247#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list