plot.colspace()for CIEXYZ model) now adds the background of the CIEXYZ colour space by default. This can be turned off by switching the
voloverlap()uses a different algorithm to determine volume overlaps, which means:
procspec(opt = "bin")no longer counts bin edges twice (once in each consecutive bin). This will cause changes in the bin stops compared to earlier versions of this function.
categorical()spaces now return Weber luminance contrast by default when passed through
coldist(), rather than nothing (as per the original publications).
coldist()can now take multiple values for
weber, when Weber fractions are known for all receptor classes
summary.rspec()no longer errors for a single spectrum when the wavelength range does not contain 450-700nm
coldist()now returns unweighted Euclidean distances for generic di-, tri-, and tetra-chromatic
colspace()models. Users wishing to estimate noise-weighted distances (i.e. via the receptor-noise limited model) should continue to use
vismodel()objects, as previously.
coldist()now always return
dLcolumns, for consistency
flux2irrad()use slightly more precise constant values, which may lead to slightly different results (less than 0.1% difference between this new version and the previous versions)
getimg()can now import images from URL’s
getimg()is deprecated, as image import is vectorised
kcolsfor multiple images
procimg()now takes a percentage, rather than scaling factor
colspace(space = segment)would return both a
getspec()where badly encoded characters in some spectral files would cause failure
coldist()would attempt to estimate receptor-noise weigted distances rather than cie-distances for
procimg(), which allows users to interactively correct areas within images that have been misclassified
peakshape()uses a completely different algorithm to find the FWHM. It now works as expected for spectra with multiple peaks. See PR #137 for a detailed overview of the changes.
vissyst) is no longer exposed to users
is.colspace()are exported to test whether an object is of class
sensdata()). This removes an unnecessary but harmless warning when
colspace()was used to place quantum catches of such species in the tetrahedral colour space.
coldist()has been changed for
achromaticto better match the arguments from
vismodel(). Older scripts that use
achroshould not be affected and still work as before.
imageris no longer a dependency, and is only loaded if using some features of
mapprojis no longer a dependency, and is only loaded if using
plot.rspec, which allows the use of custom spectra labels in stacked plots.
as.rspec, and can control the behaviour with the new argument
as.rspec()now accepts both numeric and character vectors to identify the wavelength column using
whichwl = "wl").
classify()can now be specified using either a numeric vector (to identify by image position in a list) or character vector (to identify by image name).
aggspec()when wavelength column was previously removed by the user.
cocplot()would failed whenever
typegraphical parameter was specified.
spec2rgb()has been simplified to rely more on
vismodel(). As a result, output values may be slightly different but upon testing, we found that differences between the old and the new version were barely noticeable.
getspec()can now read Avantes binary files (
summary.rspec()has been fixed to (R700 - R450)/R700. This gives the same result as before but with a flipped sign, and better reflects the original formula in the literature.
getspec()has an additional argument
TRUEby default to ignore case in file extension matching
getspec()would sometimes fail with files including numbers in scientific format
tetraplot()to add cone names (u,s,m,l)
getspec()can now read OceanOptics
summary.rspec()now properly outputs
NAfor monotonically decreasing spectra
subset.rspec()was provided with a logical vector
summary.colspace()was used on a tcs object
merge.rspec()is no longer ignored
voloverlap()when plot = TRUE
vismodel()when transmission has more than one column
vismodel()that applied von Kries correction to achromatic channel
jndplot()when suppressing the plotting of arrows
noise = "quantum"and
achro = TRUEwere used
arrow = "none"and
achro = TRUE
spec2rgb()now takes into account the 390-400 nm wavelength range into account when possible
as.rspec()no longer fails with tibbles
procspec()now works for all values of bins
colspace()where it would incorrectly infer a preference for a general trichromatic space, when a cie model is more appropriate
bootcoldist()uses bootstrap to calculate the confidence intervals on the mean color distance between samples