Image Processing Library Based on 'CImg'
Add colour channels to a grayscale image or pixel set
Turn an numeric array into a cimg object
Create an image from a data.frame
Create an image by sampling a function
Convert an image in spatstat format to an image in cimg format
Convert a raster object to a cimg object
Convert to cimg object
Convert a pixel image to a data.frame
Convert image list to data.frame
Methods to convert pixsets to various objects
Form a graph from an image
Form an adjacency graph from a pixset
Convert various objects to image lists
Methods to convert various objects to pixsets
Convert a cimg object to a raster object for plotting
Return or set pixel value at coordinates
Autocrop image region
Compute the bounding box of a pixset
Blur image anisotropically, in an edge-preserving way.
Find the boundary of a shape in a pixel set
Blur image with a box filter.
Blur image with a box filter (square window)
Bucket fill
Canny edge detector
Capture the current R plot device as a cimg image
Center stencil at a location
Split a colour image into a list of separate channels
Concatenation for image lists
Image dimensions
Various shortcuts for extracting colour channels, frames, etc
Control CImg's parallelisation
Create a cimg object
Convert cimg to spatstat im object
Add circles to plot
Clean up and fill in pixel sets (morphological opening and closing)
Fill in a colour in an area given by a pixset
Various useful pixsets
Return contours of image/pixset
Coordinates from pixel index
Correlation/convolution of image by filter
Crop the outer margins of an image
Apply recursive Deriche filter.
Compute field of diffusion tensors for edge-preserving smoothing.
Estimate displacement field between two images.
Display image using CImg library
Display image list using CImg library
Display object using CImg library
Compute Euclidean distance function to a specified value.
Draw circle on image
Draw rectangle on image
Draw text on an image
Erode/dilate image by a structuring element.
Extract image patches and return a list
Compute the Discrete Fourier Transform of an image
Flatten alpha channel
Split a video into separate frames
Compute image gradient.
Return image hessian.
Return coordinates of subset of pixels
Return pixel values in a neighbourhood defined by a stencil
Select image regions interactively
Check that value is in a range
Convert an RGB image to grayscale
Grow/shrink a pixel set
Grayscale dimensions of image
Compute Haar multiscale wavelet transform.
Highlight pixel set on image
Circle detection using Hough transform
Hough transform for lines
Split an image along axis, map function, return a data.frame
Split an image, apply function, recombine the results as an image
Split an image along axis, apply function, return a list
Split an image along a certain axis (producing a list)
Colour space conversions in imager
Combining images
imager: an R library for image processing, based on CImg
Replace part of an image with another
Array subset operator for cimg objects
Combine a list of images into a single image
Modify parts of an image
Coordinates as images
Generates a "dirac" image, i.e. with all values set to 0 except one.
Draw image on another image
Evaluation in an image context
Create an image of custom size by filling in repeated values
Compute image gradient
Compute image hessian.
Return information on image file
Compute image Laplacian
Image list
Generate (Gaussian) white-noise image
Plot objects on image using base graphics
Replicate images
Rotate an image along the XY plane.
Sharpen image.
Shift image content.
Split an image along a certain axis (producing a list)
Select part of an image
Image warping
Linear index in internal vector from pixel coordinates
Fill-in NA values in an image
Build simple interactive interfaces using imager
Interpolate image values
Checks that an object is a cimg object
Check that an object is an imlist object
Check that an object is a pixset object
Blur image isotropically.
Label connected components.
Apply function to each element of a list, then combine the result as a...
Load all images in a directory
Load example image
Load image from file or URL
Load a video using ffmpeg
Convert a magick image to a cimg image or image list and vice versa
Make/save a video using ffmpeg
Type-stable map for use with the purrr package
Blur image with the median filter.In a window of size n x n centered a...
Mirror image content along specified axis
Mutate a data frame by adding new or replacing existing columns.
Plot a line, Hesse normal form parameterisation
Pad image with n pixels along specified axis
Extract a numerical summary from image patches, using CImg's mini-lang...
Return image patch summary
Compute the periodic part of an image, using the periodic/smooth decom...
Permute image axes
Pipe operator
Return the pixel grid for an image
Pixel sets (pixsets)
Play a video
Display an image using base graphics
Plot an image list
Select a region of homogeneous colour
A pixset for NA values
Remove all connected regions that touch image boundaries
Convert a RasterLayer/RasterBrick to a cimg image/image list
Renormalise image
Resize image uniformly
Resize image
Remove alpha channel and store as attribute
Rotate image by an arbitrary angle, around a center point.
Save image
Split pixset into connected components
Remove empty dimensions from an array
A cross-shaped stencil
Threshold grayscale image
Young-Van Vliet recursive Gaussian filter.
Warp image
Compute watershed transform.
Return locations in pixel set
Fast image processing for images in up to 4 dimensions (two spatial dimensions, one time/depth dimension, one colour dimension). Provides most traditional image processing tools (filtering, morphology, transformations, etc.) as well as various functions for easily analysing image data using R. The package wraps 'CImg', <http://cimg.eu>, a simple, modern C++ library for image processing.
Useful links