Make the raster into binarization.

        The opening and closing are based on binary image. Therefore we need to
        make the raster into binarization.

        Args:
            given_value: The given value's pixels will be value in 1,
            other pixels will be value in 0.
            rasterfilename: The initial rasterfilena,e.

        Returns:
            binary_raster: Raster after binarization.

def raster_binarization(given_value, rasterfilename):
        """Make the raster into binarization.

        The opening and closing are based on binary image. Therefore we need to
        make the raster into binarization.

        Args:
            given_value: The given value's pixels will be value in 1,
            other pixels will be value in 0.
            rasterfilename: The initial rasterfilena,e.

        Returns:
            binary_raster: Raster after binarization.
        """
        origin_raster = RasterUtilClass.read_raster(rasterfilename)
        binary_raster = numpy.where(origin_raster.data == given_value, 1, 0)
        return binary_raster