recolorize0.2.0 package

Color-Based Image Segmentation

absorbLayer

Absorb a layer into its surrounding color patches

add_image

Add a raster image to a plot

adjust_color

Adjust the saturation and brightness of a color

apply_imager_operation

Apply imager operations to layers of an image

array_to_cimg

Converts from a raster array to a cimg object

array_to_RasterStack

Convert from an array to a raster stack

assignPixels

Assign a 2D matrix of pixels to specified colors

backgroundCondition

Generate a background condition for masking

backgroundIndex

Index and remove background pixels for color clustering

blurImage

Blur an image

brick_to_array

Convert from a RasterBrick to an array

cielab_coldist

Generate a 'coldist' object for CIE Lab colors

cimg_to_array

Converts from cimg to raster array

classify_recolorize

Convert a recolorize object to a classify object

clean_merge_params

Clean up parameters passed to mergeLayers

col2col

Modified convertColor

colorClusters

Generate color clusters from an image

colorClustersHist

Cluster pixel colors using histogram binning

colorClustersKMeans

Cluster pixel colors using K-means clustering

colorResiduals

Calculate squared residuals for color centers

constructImage

Generate an image from pixel assignments and color matrix

editLayer

Edit a color patch using morphological operations

editLayers

Edit multiple color patches using morphological operations

expand_recolorize

Expand aspects of a recolorize object for other functions

hclust_color

Plot and group colors by similarity

imDist

Calculates the distance between non-transparent pixels in images

imHeatmap

Plot a heatmap of a matrix of color distances

imposeColors

Recolor an image to a provided set of colors

labelCol

Change colors of dendrogram tips

match_colors

Reorder a color palette to best match a reference palette

medianColors

Change color centers to median color of all pixels assigned to it

mergeLayers

Merge layers in a recolorized image

pixelAssignMatrix

Make pixel assignment matrix for recoloring

plot.recolorize

Plot recolorized image results

plot.recolorizeVector

Plot a recolorizeVector object

plotColorClusters

Plot color clusters in a color space

plotColorPalette

Plot a color palette

plotImageArray

Plot a 3D array as an RGB image

raster_to_array

Convert from a (small-r) raster object to an RGB array

readImage

Read in an image as a 3D array

recluster

Recluster color centers based on color similarity

recoloredImage

Get recolored image from a recolorize object

recolorize_adjacency

Run pavo's adjacency and boundary strength analysis on a `recolorize...

recolorize_to_patternize

Convert a recolorize object to a raster object

recolorize_to_png

Save a recolored image as a PNG

recolorize-package

recolorize: Color-Based Image Segmentation

recolorize

Simplify the colors of an image

recolorize2

Recolorize with automatic thresholding

recolorizeVector

Convert a recolorize object to a vector

reorder_colors

Reorder colors in a recolorize object

rerun_recolorize

Rerun the sequence of calls used to produce a recolorize object

rgb2hsl

Convert RGB colors to HSL

splitByColor

Split color clusters in a recolorize object into layers

thresholdRecolor

Drop minor colors from a recolorize object

wernerColor

Remap an image to Werner's nomenclature

Automatic, semi-automatic, and manual functions for generating color maps from images. The idea is to simplify the colors of an image according to a metric that is useful for the user, using deterministic methods whenever possible. Many images will be clustered well using the out-of-the-box functions, but the package also includes a toolbox of functions for making manual adjustments (layer merging/isolation, blurring, fitting to provided color clusters or those from another image, etc). Also includes export methods for other color/pattern analysis packages (pavo, patternize, colordistance).

  • Maintainer: Hannah Weller
  • License: CC BY 4.0
  • Last published: 2025-03-03