invertImage-ms.image-method: Invert the colors of an MS image.

invertImage,ms.image-methodR Documentation

Invert the colors of an MS image.

Description

Invert the colors of an MS image.

Usage

## S4 method for signature 'ms.image'
invertImage(object)

Arguments

object

ms.image-class object. See msImage.

Value

ms.image-class object after inverting colors.

Examples

## Load package
library("SPUTNIK")

## Create ms.image-class object
msIm <- msImage(values = matrix(rnorm(200), 40, 50), name = "test", scale = TRUE)

## Invert the colors
msImInverted <- invertImage(msIm)

paoloinglese/SPUTNIK documentation built on April 18, 2024, 8:56 p.m.