Creates an image file in TIFF or JPEG format from an array of class
classified_image
.
Arguments
- classified_image
an object of class
classified_image
.- file_name
a character string with the name of the output file, including the extension.
- ...
further parameters to pass to functions
writeJPG
andwriteTIFF
. If void, the default values of these functions are used.
Details
The type of the output file (jpeg or tiff) is selected from the
extension included in the file name. It must be one of ("jpg", "JPG",
"jpeg", "JPEG", "tif", "TIF", "tiff", "TIFF")
.
Note that the default value for jpg quality is 0.7. For maximal quality set
quality = 1
using the ... argument. Such adjustments are not
needed with tiff
files, as this is a lossless format.