Package: patternize 0.0.5

patternize: Quantification of Color Pattern Variation

Quantification of variation in organismal color patterns as obtained from image data. Patternize defines homology between pattern positions across images either through fixed landmarks or image registration. Pattern identification is performed by categorizing the distribution of colors using RGB thresholds or image segmentation.

Authors:Steven Van Belleghem [aut, cre]

patternize_0.0.5.tar.gz
patternize_0.0.5.zip(r-4.5)patternize_0.0.5.zip(r-4.4)
patternize_0.0.5.tgz(r-4.4-any)
patternize_0.0.5.tar.gz(r-4.5-noble)patternize_0.0.5.tar.gz(r-4.4-noble)
patternize_0.0.5.tgz(r-4.4-emscripten)
patternize.pdf |patternize.html
patternize/json (API)

# Install 'patternize' in R:
install.packages('patternize', repos = c('https://stevenvb12.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/stevenvb12/patternize/issues

Datasets:

On CRAN:

4.97 score 31 stars 30 scripts 284 downloads 2 mentions 36 exports 101 dependencies

Last updated 5 months agofrom:3f55d2829c. Checks:OK: 1 WARNING: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 22 2024
R-4.5-winWARNINGNov 22 2024
R-4.5-linuxWARNINGNov 22 2024
R-4.4-winWARNINGNov 22 2024
R-4.4-macWARNINGNov 22 2024

Exports:alignLanalignRegcolorCheckercolorChecker_customGraycolorChecker_halfcreatePhenotypecreateTargetGMMImagekImagekImageHSVlanArraymakeListmaskOutlinepatAreapatGMMpatKpatK_HSVpatLanHSVpatLanKpatLanK_HSVpatLanRGBpatLanWpatPCApatRDApatRegHSVpatRegKpatRegK_HSVpatRegRGBpatRegWplotHeatplotRasterstackAsImageredRessampleLandmarkssampleRGBsetMasksumRaster

Dependencies:abindapebase64encbezierbmpbslibcachemclassclassIntcliclusterClusterRcodetoolscolorRampscolorspacecpp11DBIdigestdoParalleldownloaderdplyre1071evaluatefansifarverfastmapfontawesomeforeachfsgenericsgeomorphggplot2gluegmpgtablehighrhtmltoolshtmlwidgetsigraphimagerisobanditeratorsjpegjquerylibjsonliteKernSmoothknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmimeMorphomunsellnlmepermutepillarpkgconfigpngproxypurrrR6rappdirsrasterRColorBrewerRcppRcppArmadilloRcppEigenreadbitmaprglrlangrmarkdownRNiftiRNiftyRegRRPPRvcgs2sassscalessfspstringistringrterratibbletidyselecttifftinytexunitsutf8vctrsveganviridisLitewithrwkxfunyaml

Readme and manuals

Help Manual

Help pageTopics
Align images using landmarksalignLan
Aligns images using 'niftyreg' utilities for automated image registration..alignReg
Calibrate images using ColorChecker.colorChecker
Calibrate images using ColorChecker.colorChecker_customGray
Calibrate images using (right) half of ColorChecker. Only works for X-Rite.colorChecker_half
Plot color pattern prediction for specified PCA valuescreatePhenotype
Create a target image (RasterStack) from a polygon.createTarget
External patternize dataextdata
'GMM' clustering of image imported as a RasterStack.GMMImage
imageListimageList
'kmeans' clustering of image imported as a RasterStack. This function is used by 'patLanK' and 'patRegK'.kImage
'kmeans' clustering of image imported as a RasterStack. This function is used by 'patLanK' and 'patRegK'.kImageHSV
Build landmark array for 'Morpho'.lanArray
landmarkArraylandmarkArray
landmarkListlandmarkList
Build list of landmarks or RasterStacks from images using filepath and file extension.makeList
Intersects a RasterStack with an outline. Everything outside of the outline will be removed from the raster.maskOutline
This fucntion calculates the area in which the color pattern is expressed in each sample as the relative proportion using the provided outline of the considered trait or structure.patArea
Extract colors using GMM clustering (for pre-aligned images).patGMM
Extract colors using k-means clustering (for pre-aligned images).patK
Extract colors using k-means clustering (for pre-aligned images).patK_HSV
Aligns images usings transformations obtained from fixed landmarks and extracts colors using a predefined RGB values and cutoff value.patLanHSV
Aligns images usings transformations obtained from fixed landmarks and extracts colors using k-means clustering.patLanK
Aligns images usings transformations obtained from fixed landmarks and extracts colors using k-means clustering.patLanK_HSV
Aligns images usings transformations obtained from fixed landmarks and extracts colors using a predefined RGB values and cutoff value.patLanRGB
Extracts color pattern from landmark transformed image using watershed segmentation. This function works interactively by allowing to pick a starting pixel within each pattern element from which the watershed will extract the pattern. This function works best for patterns with sharp boundaries.patLanW
This function transforms the individual color pattern rasters as obtained by the main patternize functions to a dataframe of 0 and 1 values that can be used for Principal Component Analysis ('prcomp'). This function also allows to plot the analysis including a visualization of the shape changes along the axis. Pixel values are predicted by multiplying the rotation matrix (eigenvectors) with a vector that has the same length as the number of rows in the rotation matrix and in which all values are set to zero except for the PC value for which we want to predict the pixel values.patPCA
This function transforms the individual color pattern rasters as obtained by the main patternize functions to a dataframe of 0 and 1 values that can be used for constrained Redundancy Analysis (RDA) ('rda'). This function also allows to plot the analysis including a visualization of the shape changes along the axis.patRDA
Aligns images using 'niftyreg' utilities for automated image registration and extracts colors using a predefined HSV values and cutoff value.patRegHSV
Aligns images using 'niftyreg' utilities for automated image registration and extracts colors using k-means clustering.patRegK
Aligns images using 'niftyreg' utilities for automated image registration and extracts colors using k-means clustering.patRegK_HSV
Aligns images using 'niftyreg' utilities for automated image registration and extracts colors using a predefined RGB values and cutoff value.patRegRGB
Aligns images using 'niftyreg' utilities for automated image registration and extracts color pattern using watershed segmentation. This function works interactively by allowing to pick a starting pixel within each pattern element from which the watershed will extract the pattern. This function works best for patterns with sharp boundaries.patRegW
patternize - An R package for quantifying color pattern variation.patternize-package patternize
Plots the color pattern heatmaps from 'sumRaster' output.plotHeat
Plot rasterStack as image.plotRasterstackAsImage
rasterList_lanKrasterList_lanK
rasterList_lanRGBrasterList_lanRGB
rasterList_regKrasterList_regK
rasterList_regRGBrasterList_regRGB
Reduce the resolution of an image imported as a RasterStack by downsampling.redRes
Sample landmarks in an image.sampleLandmarks
Interactive function to sample RGB value from pixel or square area in an image.sampleRGB
Interactive function to to draw an outline for masking.setMask
This function sums the individual color pattern RasterLayes as obtained by the main patternize functions.sumRaster