public BufferedImage BlackAndWhiteSmoothing(BufferedImage image,int threshold,int proportion){
        imageTemp=super.cloneBufferedImage(image);
        if ((threshold>=proportion) && ((255-threshold)>=proportion)){
            Color auxColor;
            for( int i = 0; i < imageTemp.getWidth(); i++ ){
                for( int j = 0; j < imageTemp.getHeight(); j++ ){
                    auxColor=new Color(imageTemp.getRGB(i, j));
                    imageTemp.setRGB(i, j,this.smoothingCalculate(auxColor,threshold,proportion));
                }
            }
            super.updateImage("Image Transformation: black and white smoothing. Threshold: " + threshold + 
                    " Proportion: " + proportion, imageTemp);
        }else{
            super.updateActivityLog("Failed to perform transformation: the conditions are not met. Conditions: "
                    + "Threshold>=Proportion (range) && (255-Threshold)>=Proportion (range). Current values: "
                    + "Threshold=" + threshold + "  " + "Proportion (range)=" + proportion);
        }
        return imageTemp;
    }