Learn R Programming

Rvision (version 0.4.3)

histmatch: Histogram Matching/Specification

Description

histmatch transforms an Image object so that its histogram matches (approximately) that of another Image object.

Usage

histmatch(image, reference, in_place = FALSE)

Arguments

image

An Image object to transform.

reference

An Image object which histogram will be used as a reference to transform image.

in_place

logical indicating whether the change should be applied to the image itself (TRUE, faster but destructive) or to a copy of it (FALSE, the default, slower but non destructive).

Value

An Image object if in_place=FALSE. Otherwise, it returns nothing and modifies image in place.

See Also

Image, histmatch

Examples

Run this code
# NOT RUN {
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
dots <- image(system.file("sample_img/dots.jpg", package = "Rvision"))
dots_matched <- histmatch(dots, balloon)
plot(dots_matched)

# }

Run the code above in your browser using DataLab