display.array: display.array: display 4d array as a tiled image.

View source: R/display.array.R

display.arrayR Documentation

display.array: display 4d array as a tiled image.

Description

This function is to create a 2D tiled image from the R array/tensor obtained from Google image search.

Usage

display.array(x, Save = FALSE, file_path = NULL)

Arguments

x

a list obtained by the GoogleImage2array function.

Save

a logical. Whether to save images locally or not. if TRUE, save locally.

file_path

a character. a directory to save the image file.

Value

image

Author(s)

Satoshi Kume

Examples



# Simple examples
query <- "persian cat"
CatImg <- GoogleImage2array(query)

#show images
display.array(CatImg)

query <- "Shiba inu"
DogImg <- GoogleImage2array(query)

#show images
display.array(DogImg)




kumeS/GoogleImage2Array documentation built on Aug. 27, 2023, 4:44 a.m.