Source
xxxxxxxxxx
--- src/connectivity.cc.orig
+++ src/connectivity.cc
mask = boolNDArray (size, false);
bool* md = mask.fortran_vec ();
- md += int (floor (pow (3, ndims) /2)); // move to center
+ md += int (floor (pow ((float) 3, ndims) /2)); // move to center
md[0] = true;
for (octave_idx_type dim = 0; dim < ndims; dim++)
{
- const octave_idx_type stride = pow (3, dim);
+ const octave_idx_type stride = pow ((float) 3, dim);
md[ stride] = true;
md[-stride] = true;
}