analysis: Image Analysis

Description Usage Arguments Details See Also Examples

Description

Functions for image calculations and analysis. This part of the package needs more work.

Usage

1
2
3
4
5
image_compare(image, reference_image, metric = "", fuzz = 0)

image_compare_dist(image, reference_image, metric = "", fuzz = 0)

image_fft(image)

Arguments

image

magick image object returned by image_read() or image_graph()

reference_image

another image to compare to

metric

string with a metric from metric_types() such as "AE" or "phash"

fuzz

Fuzz percentage: value between 0 and 100. Relative distance between colors to be considered similar in the filling algorithm.

Details

For details see Image++ documentation. Short descriptions:

Here image_compare() is vectorized over the first argument and returns the diff image with the calculated distortion value as an attribute.

See Also

Other image: _index_, animation, attributes, color, composite, device, edges, editing, effects, fx, geometry, morphology, ocr, options, painting, segmentation, transform, video

Examples

1
2
3
4
5
6
7
out1 <- image_blur(, 3)
out2 <- image_oilpaint(, 3)
input <- c(, out1, out2, )
if(magick_config()$version >= "6.8.7"){
  diff_img <- image_compare(input, , metric = "AE")
  attributes(diff_img)
}

ropensci/magick documentation built on Jan. 15, 2019, 3:27 a.m.