@SuppressWarnings("unused")
	int countSeedSize(int K) {
        int sz = m_width * m_height;
        double step = Math.sqrt((double) sz / (double) K);
        int T = (int) step;
        int xoff = (int) (step / 2);
        int yoff = (int) (step / 2);

        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 (X > m_width - 1) {
                    break;
                }
                n++;
            }
        }
        return (n);
    }