private void QUANT() {
        position = 0;
        double arrayPix[][] = new double[SIZE][SIZE];
        arrayForZigZag = new int[3 * HEIGHT * WIDTH];
        int quant[][];

        int row;
        int col;
        int x = 0;
        int y = 0;
        final int COUNT_LAYER = 3;
        for (int element = 0; element < COUNT_LAYER; element++) {
            for (int i = 0; i < HEIGHT; i += STEP) {
                row = i + STEP;
                col = STEP;
                for (int j = 0; j < WIDTH; j += STEP) {
                    for (int k = i; k < row; k++) {
                        for (int s = j; s < col; s++) {
                            arrayPix[x][y] = yCbCr[k][s][element];
                            y++;
                        }
                        y = 0;
                        ++x;
                    }
                    x = 0;
                    y = 0;
                    quant = runQuant(arrayPix);
                    runHideZigZag(quant);
                    col += STEP;
                }
            }
        }
    }