Learn R Programming

imager (version 0.13)

cimg.extract: Various shortcuts for extracting colour channels, frames, etc

Description

Various shortcuts for extracting colour channels, frames, etc

Extract one frame out of a 4D image/video

Usage

frame(im, index)

channel(im, ind)

R(im)

G(im)

B(im)

Arguments

im
an image
index
frame index
ind
channel index

Functions

  • frame:
  • channel: Extract an image channel
  • R: Extract red channel
  • G: Extract green channel
  • B: Extract blue channel