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

Description Usage Arguments Value Author(s) Examples

View source: R/display.array.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(EBImage)

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

#show images
display.array(CatImg)

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

#show images
display.array(DogImg)

GoogleImage2Array documentation built on Sept. 29, 2021, 9:08 a.m.