rasterflip: Flip array to be displayed with rasterImage()

View source: R/rasterflip.R

rasterflipR Documentation

Flip array to be displayed with rasterImage()

Description

Flips the array A to be displayed with rasterImage, such that the first index runs from left to right and second index runs from bottom to top, like in standard Cartesian coordinates. In this way rasterImage(rasterflip(A)) has the same orientation as image(A).

Usage

rasterflip(A)

Arguments

A

n-by-m array of a monochromatic image or n-by-m-by-k array of a color image (where k is 3 or 4)

Value

A m-by-n array of a monochromatic image or m-by-n-by-k array of a color image.

Author(s)

Danail Obreschkow


obreschkow/cooltools documentation built on Nov. 16, 2024, 2:46 a.m.