public void binaryFilter(float cutOff, float value) {
        for(int i=0; i < data.length; i++) {
            float[] block = data[i];
            for(int j=0; j < block.length; j++) {
                block[j] = (block[j] >= cutOff ? 1.0f : 0.0f) * value;
            }
        }
    }