Learn R Programming

Rvision (version 0.4.2)

absdiff: Absolute Difference Between Two Images

Description

This function computes the absolute difference between two Image objects.

Usage

absdiff(image1, image2)

Arguments

image1

An Image object.

image2

An Image object.

Value

An Image object.

See Also

Image

Examples

Run this code
# NOT RUN {
balloon1 <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon2 <- image(system.file("sample_img/balloon2.png", package = "Rvision"))
plot(absdiff(balloon1, balloon2))

# }

Run the code above in your browser using DataLab