 
         const int size = calcSize(c_octave, layer);
 
-        /* Ignore pixels without a 3x3x3 neighbourhood in the layer above */
+        // Ignore pixels without a 3x3x3 neighbourhood in the layer above
         const int margin = ((calcSize(c_octave, layer + 1) >> 1) >> c_octave) + 1;
 
         const int j = threadIdx.x + blockIdx.x * (blockDim.x - 2) + margin - 1;

        }
    };

    __constant__ float c_DM[1][5] = {{0, 0, 9, 9, 1}};

    struct WithMask
    {
        static __device__ bool check(int sum_i, int sum_j, int size)
        {
            float mval = icvCalcHaarPattern<1>(maskSumTex, c_DM , 9, size, sum_i, sum_j);
            return (mval >= 0.5);
        }
    };


    ////////////////////////////////////////////////////////////////////////
    // NONMAX
    
    struct WithOutMask
    {
        static __device__ bool check(int, int, int)
