       const Scalar * __restrict__ voxels,
 #endif
       int firstSlice, int lastSlice,
-      int from, int to)
+      int2 from, int2 to)
 {
 #ifndef VOLTEX3D
 #ifdef PITCHED


        // Traverse intermediate image pixels which correspond to the current slice.
        // 1 is subtracted from each loop counter to remain inside of the volume boundaries:
        for (int ix=threadIdx.x; ix<endX; ix+=blockDim.x)
        {
            if(ix<iPosX)
                continue;

#endif
#endif

    for (int ix=threadIdx.x+from.x; ix<to.x; ix+=blockDim.x)
    {
        initPixel(&imgLine[ix]);
    }
