Changes: * cosmetic improvements to plot_sil function, which now plots polygons instead of lines and allows to specify a scale * Increased size of plots in vignettes for better visibility
Changes: * csI() now outputs centroid and bounding box coordinates as attributes
Changes: * added new tests and vignette
Changes: * added collumn with x axis centroids to output of gdi(), for use in rotI() and hCOM() functions
Changes: * generalized rotI() function to calculate rotational inertia of shapes around any axis * added function to cscorr to allow calculation of correction factors for moment of inertia. * fixed issue in input to functions (rejection of previously read images supplied as matrix or array)
Changes: * added rotI() function to calculate rotational inertia of shapes
Changes: * added csI() function to calculate second moment of area for cross-sectional shapes
Changes: * fixed bug in cscorr (returning inverse aspect ratios depending on settings) – now aspect ratio is always max horizontal diameter/max vertical diameter
Changes: * modifications to image-processing functions to deal with single-channel images
Changes: * added functions vCOM and hCOM and expanded functionality of measuresil() and gdi() to allow estimating the position of the center of mass (COM) * added function plot_sil() to plot silhouettes
Changes: * added parameter setting indices for gdi(), allowing to specify optional indices to specify a subset of the measurement vectors
Changes: * added parameter setting alignment for measuresil(), allowing the optional use of vertically aligned silhouettes if align!=“h” * updated unit tests to check that scale works correctly
Changes: * fixed cscorr() area output scaling (previous version didn’t set the scale for area resulting in unscaled area output even when scale is set)
Changes: * added function sellipse.coo() to visualize shapes of superelliptical cross-sections
Changes: * added tests using package ‘testthat’ * gdi() now also reports the horizontal length of the silhouette as name of output (in the same unit cubed to calculate volume, i.e. decimeters if volume is intended in liters), intended to quickly spot scaling errors
Changes: * added functions imghist() and fdetect() for aiding with setting appropriate threshold and method parameters for measuresil() and cscorr()
Changes: * Fixed missing “,” in description. * Fixed errors in and improved vignette. * Fixed error in cscorr()-function. Previous version would output the diameters of the silhouette in pixels, even if a scale was provided. New version converts them to units determined by scale parameter.
Changes: * Fixed invalid doi in the description.
Changes: * Updated the description, vignettes and documentation.
Added an additional parameter (corr) to the function gdi(). Similar to the parameter k, corr accounts for cross-sectional shapes other than simple ellipses. Differing from k, this is not done by calculating the area of a superellipse with a given exponent, but by applying a correction factor specifying the ratio in cross-sectional areas (such as the one calculated by cscorr()).
Added the function cscorr(), which reads images of body cross-sections and computes various metrics, including a correction factor based on the ratio in area between the measured cross-section and an ellipse with the same diameters. This function enables the user to account for a wider variety of cross-sectional geometries than simple ellipses or superellipses, provided that a graphical representation of the cross-section is available.
Changes: