Saves an image stored as an array to a path or file object.
Source:R/image-utils.R
image_array_save.Rd
Saves an image stored as an array to a path or file object.
Arguments
- x
An array.
- path
Path or file object.
- data_format
Image data format, either
"channels_first"
or"channels_last"
.- file_format
Optional file format override. If omitted, the format to use is determined from the filename extension. If a file object was used instead of a filename, this parameter should always be used.
- scale
Whether to rescale image values to be within
[0, 255]
.- ...
Additional keyword arguments passed to
PIL.Image.save()
.
Value
Called primarily for side effects. The input x
is returned,
invisibly, to enable usage with the pipe.
See also
Other image utils: image_from_array()
image_load()
image_smart_resize()
image_to_array()
op_image_affine_transform()
op_image_crop()
op_image_extract_patches()
op_image_hsv_to_rgb()
op_image_map_coordinates()
op_image_pad()
op_image_resize()
op_image_rgb_to_grayscale()
op_image_rgb_to_hsv()
Other utils: audio_dataset_from_directory()
clear_session()
config_disable_interactive_logging()
config_disable_traceback_filtering()
config_enable_interactive_logging()
config_enable_traceback_filtering()
config_is_interactive_logging_enabled()
config_is_traceback_filtering_enabled()
get_file()
get_source_inputs()
image_dataset_from_directory()
image_from_array()
image_load()
image_smart_resize()
image_to_array()
layer_feature_space()
normalize()
pad_sequences()
set_random_seed()
split_dataset()
text_dataset_from_directory()
timeseries_dataset_from_array()
to_categorical()
zip_lists()