blank()
images with no namesimage_func()
with func = "composite" and the length of the stimuli and composite image are the same.quick_delin()
function changed to delin()
and upgraded to be able to update full templatesdelin()
lets you adjust full templates now, but is still very experimental.demo_stim()
into demo_stim()
and demo_tems()
and removed set argument.as_stimlist()
from validate_stimlist()
expand
argument in mask()
works now and also does contraction with negative values.rotate()
has a new argument, origin
, that customises the rotation originpatch()
now converts pixel colours to CIE-L*ab values before taking the mean or median values, which should create closer visual matches than the old RGB method. Also changed from taking x and y max and min values to width, height, x_off and y_off (like crop()
).patch()
function to return a vector of hex colours for a stimlistpatch
argument from crop()
, rotate()
, to_size()
and pad()
; use patch()
to generate values for the fill
argument instead.image_comp()
to compare()
setnames()
to rename_stim()
align()
now takes a stim or stimlist as ref_img
, in addition to the index or name of an item in stimuli.centroid()
function for finding the mean x and y coordinates of each template in a stimlist.ask
argument from write_stim()
and added "overwrite" to wm_opts()
for a global overwrite setting.wm_opts_defaults()
function to get all default option values.write_stim()
now can get the image format from the name
argument, if it ends in .jpg, .jpeg, .png, or .gif (case insensitive). This overrides the format
argument.demo_stim()
(except "test" and "tem_examples") into new webmorphR.stim::load_stim()
functions.draw_tem()
but called by magickread_stim()
when all lines have the same lengthauto_delin()
is now a wrapper for fpp_auto_delin()
(for Face++) and webmorphR.dlib::dlib_auto_delin()
(for python/dlib/face_recognition delineations).facetrain()
function for training a dlib shape predictor model (still really experimental)mask
argument now.change_lines()
function to update lines in templates.crop_tem()
to handle stimlists with different tems.get_point()
to return a long table.gglabel()
for ggplot-style annotations.auto_delin()
so there is a local solutionlabel()
to default to gravity = northwest
and location = +10+10
metrics()
for calculating facial-metrics.mask_oval()
when setting bounds manually that had reversed top and bottom values.trans()
now returns images in a more sensible order.write_stim()
to_size()
crop argument added.plot()
displayed in the correct aspect ratio in RMarkdown files by default now.demo_stim()
needs to load "london", "smiling", "composite", "lisa", "zoom", and "rainbow" from webmorphR.stim using remotes::install_github("debruine/webmorphR.stim")
image_comp()
to calculate difference between images in a way that corresponds to morph continuua differencescrop_tem()
features()
avg()
, trans()
, continuum()
, loop()
grid_stim()
and plot()
draw_tem()
takes a background color for bg nowplot_size()
function to return size of last plot and a string to paste into Rmd chunks.plot()
function is much better and fasterpad()
, draw_tem()
, grid_stim()
, save_plot()
oval_mask
=> mask_oval()
faces
=> demo_stim()
auto_delineate
=> auto_delin()
auto-delin()
to 106 points from 83.mask()
and oval_mask()
functionsquick_delin()
to_size()
now takes a vector of width and height, so you can more easily use it with social_media_size()
write_stim()
now lets you change format (png, jpeg, or gif)align()
function, includes procrustes alignNEWS.md
file to track changes to the package.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.