| equals.RGBImage {R.image} | R Documentation |
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.
## S3 method for class 'RGBImage': equals(this, obj, ...)
obj |
The other RGBImage to be compared too. |
... |
Not used. |
Returns TRUE if the images are equal, otherwise FALSE.
Henrik Bengtsson (http://www.braju.com/R/)
For more information see RGBImage.
rgb <- BitmapImage$read("logosm.ppm", path=system.file("images", package="R.image"))
rgb2 <- clone(rgb)
print(equals(rgb, rgb2)) # TRUE