Usage
hash_apply(object, rows = 28, columns = 28, hash_size = 8, highfreq_factor = 3, method = "phash", mode = "binary", threads = 1, resize = "nearest")
Arguments
object
a matrix, a data frame, a 3-dimensional array or a path to a folder of files (images)
rows
a number specifying the number of rows of the matrix
columns
a number specifying the number of columns of the matrix
hash_size
an integer specifying the hash size. IF method = 'phash' : the hash_size * highfreq_factor should be less than number of rows or columns of the gray_image.
IF method = 'dhash' or 'average_hash' : the hash_size should be less than number of rows or columns of the gray_image
highfreq_factor
an integer specyfing the highfrequency factor (IF method = 'phash' : the hash_size * highfreq_factor should be less than number of rows or columns of the gray_image)
method
one of 'phash', 'average_hash', 'dhash'
mode
one of 'binary', 'hash'
threads
the number of cores to run in parallel
resize
corresponds to one of 'nearest', 'bilinear' (resizing method)