download_coil100: Download COIL-100

Description Usage Arguments Format Details Value Note See Also

Description

Download processed COIL-100 database of object images.

Usage

1
download_coil100(file = tempfile(), cleanup = TRUE, verbose = FALSE)

Arguments

file

name of file to download to. Defaults to tempfile.

cleanup

If TRUE, then delete any downloaded files when finished.

verbose

If TRUE, then download progress will be logged as a message.

Format

A data frame with 49153 variables (128 x 128 pixels for each of the three channels):

r_x1_y1, r_x1_y2, ... r_x1_128, r_x2_y1 ... r_x128_y128

Pixel values in the red channel ranging from 0 to 1. The x index increases from left to right, and the y index increases from top to bottom, i.e. r_x1_y1 is top left and r_x128_y128 is the bottom right.

g_x1_y1, g_x1_y2, ... g_x1_128, g_x2_y1 ... g_x128_y128

Pixel values in the green channel ranging from 0 to 1. The x index increases from left to right, and the y index increases from top to bottom, i.e. g_x1_y1 is top left and g_x128_y128 is the bottom right.

b_x1_y1, b_x1_y2, ... b_x1_128, b_x2_y1 ... b_x128_y128

Pixel values in the blue channel ranging from 0 to 1. The x index increases from left to right, and the y index increases from top to bottom, i.e. b_x1_y1 is top left and b_x128_y128 is the bottom right.

Label

The id of the object represented by the image, in the range 1-100. Stored as a factor.

The name of each row in the data frame is in the form "<obj>_<angle>", where <obj> is the id of the object (numbered from 1 to 20) and <angle> is the viewing angle in degrees (numbered from 0 to 355). e.g. "5_150" is the fifth object viewed at an angle of 150 degrees.

Details

Downloads and expands the zip file of the processed COIL-100 database of object images and converts them to a data frame. There are 100 objects, each represented by 72 poses, in an RGB PNG format. Each image has a resolution of 128 x 128.

Value

Data frame containing the COIL-100 database.

Note

This function requires the png package https://cran.r-project.org/web/packages/png/ to be installed.

See Also

For more information see http://www.cs.columbia.edu/CAVE/software/softlib/coil-100.php.


jlmelville/coil20 documentation built on May 19, 2019, 12:47 p.m.