hash_batch: A Function To Create Multiple Image Hashes

Description Usage Arguments Value Examples

View source: R/hash_batch.R

Description

This function does these things: (1) Create descriptions for Hashes (2) Get all combinations of hash size, resizing method, and hashing method (3) Create Hashes for each image using each configuration.

Usage

1
2
3
hash_batch(IMAGE_PATH = "./", cfg_hashsize = c(4:6, 8:10),
  cfg_hashmethod = c("average_hash", "dhash", "phash"),
  cfg_hashresize = c("nearest", "bilinear"))

Arguments

cfg_hashsize

Numeric Vector. Defaults to c( 4:6,8:10 ). NOTE: hash size of 7 crashes R !!!

cfg_hashmethod

Vector of Character Vector. Defaults to c( 'average_hash', 'dhash', 'phash' )

cfg_hashresize

Vector of Character Vector. Defaults to c( 'nearest', 'bilinear' )

Value

Returns a list of hashes

Examples

1
2
3
hashes <- hash_batch('/Users/Karl/Dropbox/Projects/Video-Captioning/pipelines/box2/')
hashes$names
hashes$values

KarlEdwards/fixed-camera-surveillance documentation built on May 17, 2019, 11:06 a.m.