@SuppressWarnings("unused")
	void GetLABXYSeeds_ForGivenStepSize(
            double[] kseedsl,
            double[] kseedsa,
            double[] kseedsb,
            double[] kseedsx,
            double[] kseedsy,
            int STEP,
            boolean perturbseeds,
            double[] edgemag) {
        int sz = m_width * m_height;
        double step = Math.sqrt((double) sz / (double) STEP);
        int T = (int) step;
        int xoff = (int) (step / 2);
        int yoff = (int) (step / 2);
        int xevenoff = (int) (step / 2);
        int xoddoff = 0;

        int n = 0;
        for (int y = 0; y < m_height; y++) {
            int Y = (int) (y * step + yoff);
            if (Y > m_height - 1) {
                break;
            }

            for (int x = 0; x < m_width; x++) {
                int X = (int) (x * step + xoff);
                if (y%2==0) {
                    X += xevenoff;
                } else {
                    X += xoddoff;
                }
                if (X > m_width - 1) {
                    break;
                }

                int i = Y * m_width + X;

                kseedsl[n] = m_lvec[i];
                kseedsa[n] = m_avec[i];
                kseedsb[n] = m_bvec[i];
                kseedsx[n] = X;
                kseedsy[n] = Y;
                n++;
            }
        }

        if (perturbseeds) {
            PerturbSeeds(kseedsl, kseedsa, kseedsb, kseedsx, kseedsy, edgemag);
        }
    }