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

View source: R/display.spiral.R

display.spiralR Documentation

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

Description

This function is to create a spiral imagethe from R array/tensor obtained from Google image search.

Usage

display.spiral(x, Save = FALSE, SaveFormat = "png", 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.

SaveFormat

a character of format; png or pdf.

file_path

a character. a directory to save the image file.

Value

image

Author(s)

Satoshi Kume

Examples


library(EBImage)

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

#show images
display.spiral(CatImg)




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