Check that value is in a range | %inr% |
Add colour channels to a grayscale image or pixel set | add.color add.colour |
Convert to cimg object | as.cimg as.cimg.cimg as.cimg.double as.cimg.logical as.cimg.matrix as.cimg.numeric as.cimg.vector |
Turn an numeric array into a cimg object | as.cimg.array |
Create an image from a data.frame | as.cimg.data.frame |
Create an image by sampling a function | as.cimg.function |
Convert an image in spatstat format to an image in cimg format | as.cimg.im |
Convert a raster object to a cimg object | as.cimg.raster |
Convert a pixel image to a data.frame | as.data.frame.cimg |
Convert image list to data.frame | as.data.frame.imlist |
Methods to convert pixsets to various objects | as.data.frame.pixset convert_pixset |
Form a graph from an image | as.igraph.cimg |
Form an adjacency graph from a pixset | as.igraph.pixset |
Convert various objects to image lists | as.imlist as.imlist.cimg as.imlist.imlist as.imlist.list |
Methods to convert various objects to pixsets | as.cimg.pixset as.pixset as.pixset.cimg |
Convert a cimg object to a raster object for plotting | as.raster.cimg |
Return or set pixel value at coordinates | at at<- color.at color.at<- |
Autocrop image region | autocrop |
Compute the bounding box of a pixset | bbox crop.bbox |
Blur image anisotropically, in an edge-preserving way. | blur_anisotropic |
Photograph of sailing boats from Kodak set | boats |
Find the boundary of a shape in a pixel set | boundary |
Blur image with a box filter (square window) | boxblur |
Blur image with a box filter. | boxblur_xy |
Bucket fill | bucketfill |
Canny edge detector | cannyEdges |
Capture the current R plot device as a cimg image | capture.plot |
Center stencil at a location | center.stencil |
Split a colour image into a list of separate channels | channels |
Concatenation for image lists | ci |
Create a cimg object | cimg |
Image dimensions | cimg.dimensions depth height nPix spectrum width |
Various shortcuts for extracting colour channels, frames, etc | B channel cimg.extract frame G imcol imrow R |
Control CImg's parallelisation | cimg.limit.openmp cimg.openmp cimg.use.openmp |
Convert cimg to spatstat im object | cimg2im |
Add circles to plot | circles |
Clean up and fill in pixel sets (morphological opening and closing) | clean fill |
Fill in a colour in an area given by a pixset | colorise |
Various useful pixsets | common_pixsets px.all px.borders px.bottom px.circle px.diamond px.left px.none px.right px.square px.top |
Return contours of image/pixset | contours |
Coordinates from pixel index | coord.index |
Correlation/convolution of image by filter | convolve correlate |
Crop the outer margins of an image | crop.borders |
Apply recursive Deriche filter. | deriche |
Compute field of diffusion tensors for edge-preserving smoothing. | diffusion_tensors |
Estimate displacement field between two images. | displacement |
Display object using CImg library | display |
Display image using CImg library | display.cimg |
Display image list using CImg library | display.list |
Compute Euclidean distance function to a specified value. | distance_transform |
Draw circle on image | draw_circle |
Draw rectangle on image | draw_rect |
Draw text on an image | draw_text |
Erode/dilate image by a structuring element. | dilate dilate_rect dilate_square erode erode_rect erode_square mclosing mclosing_square mopening mopening_square |
Extract image patches and return a list | extract_patches extract_patches3D |
Compute the Discrete Fourier Transform of an image | FFT |
Flatten alpha channel | flatten.alpha |
Split a video into separate frames | frames |
Compute image gradient. | get_gradient |
Return image hessian. | get_hessian |
Return coordinates of subset of pixels | get.locations |
Return pixel values in a neighbourhood defined by a stencil | get.stencil |
Select image regions interactively | grab grabLine grabPoint grabRect |
Convert an RGB image to grayscale | grayscale |
Grow/shrink a pixel set | grow shrink |
Grayscale dimensions of image | gsdim |
Compute Haar multiscale wavelet transform. | haar |
Highlight pixel set on image | highlight |
Circle detection using Hough transform | hough_circle |
Hough transform for lines | hough_line |
Split an image along axis, map function, return a data.frame | idply |
Split an image, apply function, recombine the results as an image | iiply |
Split an image along axis, apply function, return a list | ilply |
Split an image along a certain axis (producing a list) | im_split |
imager: an R library for image processing, based on CImg | imager-package imager |
Combining images | add average enorm equal imager.combine mult parall parany parmax parmax.abs parmed parmin parmin.abs parorder parquan parrank parsd parsort parvar which.parmax which.parmin wsum |
Replace part of an image with another | B<- channel<- frame<- G<- imager.replace R<- |
Array subset operator for cimg objects | imager.subset |
Combine a list of images into a single image | imappend |
Modify parts of an image | imchange |
Coordinates as images | Cc imcoord Xc Yc Zc |
Generates a "dirac" image, i.e. with all values set to 0 except one. | imdirac |
Draw image on another image | imdraw |
Evaluation in an image context | imdo imeval |
Create an image of custom size by filling in repeated values | imfill |
Compute image gradient | imgradient |
Compute image hessian. | imhessian |
Return information on image file | iminfo |
Compute image Laplacian | imlap |
Image list | imlist |
Generate (Gaussian) white-noise image | imnoise |
Plot objects on image using base graphics | implot |
Replicate images | imrep |
Rotate an image along the XY plane. | imrotate |
Sharpen image. | imsharpen |
Shift image content. | imshift |
Split an image along a certain axis (producing a list) | imsplit |
Select part of an image | imsub subim |
Image warping | imwarp |
Linear index in internal vector from pixel coordinates | index.coord |
Fill-in NA values in an image | inpaint |
Build simple interactive interfaces using imager | interact |
Interpolate image values | interp |
Checks that an object is a cimg object | is.cimg |
Check that an object is an imlist object | is.imlist |
Check that an object is a pixset object | is.pixset |
Blur image isotropically. | isoblur |
Label connected components. | label |
Apply function to each element of a list, then combine the result as an image by appending along specified axis | liply |
Load all images in a directory | load.dir |
Load example image | load.example |
Load image from file or URL | load.image |
Load a video using ffmpeg | load.video |
Convert a magick image to a cimg image or image list and vice versa | cimg2magick magick magick2cimg magick2imlist |
Make/save a video using ffmpeg | make.video save.video |
Type-stable map for use with the purrr package | map2_il map_il pmap_il |
Blur image with the median filter. In a window of size n x n centered at pixel (x,y), compute median pixel value over the window. Optionally, ignore values that are too far from the value at current pixel. | medianblur |
Mirror image content along specified axis | mirror |
Mutate a data frame by adding new or replacing existing columns. | mutate_plyr |
Plot a line, Hesse normal form parameterisation | nfline |
Pad image with n pixels along specified axis | pad |
Extract a numerical summary from image patches, using CImg's mini-language Experimental feature. | patch_summary_cimg |
Return image patch summary | patchstat |
Compute the periodic part of an image, using the periodic/smooth decomposition of Moisan (2011) | periodic.part |
Permute image axes | permute_axes |
Return the pixel grid for an image | pixel.grid |
Pixel sets (pixsets) | pixset |
Play a video | play |
Display an image using base graphics | plot.cimg |
Plot an image list | plot.imlist |
Select a region of homogeneous colour | px.flood |
A pixset for NA values | px.na |
Remove all connected regions that touch image boundaries | px.remove_outer |
Convert a RasterLayer/RasterBrick to a cimg image/image list | as.cimg.RasterLayer as.imlist.RasterStackBrick RasterPackage |
Renormalise image | renorm |
Resize image | resize |
Resize image uniformly | imresize resize_doubleXY resize_halfXY resize_tripleXY resize_uniform |
Colour space conversions in imager | HSItoRGB HSLtoRGB HSVtoRGB imager.colourspaces LabtoRGB LabtosRGB LabtoXYZ RGBtoHSI RGBtoHSL RGBtoHSV RGBtoLab RGBtosRGB RGBtoXYZ RGBtoYCbCr RGBtoYUV sRGBtoLab sRGBtoRGB XYZtoLab XYZtoRGB YCbCrtoRGB YUVtoRGB |
Remove alpha channel and store as attribute | rm.alpha |
Rotate image by an arbitrary angle, around a center point. | rotate_xy |
Save image | save.image |
Split pixset into connected components | split_connected |
Remove empty dimensions from an array | squeeze |
A cross-shaped stencil | stencil.cross |
Threshold grayscale image | threshold |
Young-Van Vliet recursive Gaussian filter. | vanvliet |
Warp image | warp |
Compute watershed transform. | watershed |
Return locations in pixel set | where |