equals.RGBImage {R.image}R Documentation

Compares two RGBImage's

Description

Compares two RGBImage's. Two images are equal if the have the same dimension and the red, the green and the blue channels in the two images have identical values.

Usage

## S3 method for class 'RGBImage':
equals(this, obj, ...)

Arguments

obj The other RGBImage to be compared too.
... Not used.

Value

Returns TRUE if the images are equal, otherwise FALSE.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see RGBImage.

Examples

   rgb <- BitmapImage$read("logosm.ppm", path=system.file("images", package="R.image"))
   rgb2 <- clone(rgb)
   print(equals(rgb, rgb2))  # TRUE
  

[Package R.image version 0.2.3 Index]