powered by
Resize and crop/pad images to a specified size
to_size( stimuli, width = NULL, height = NULL, fill = wm_opts("fill"), crop = FALSE, keep_rels = FALSE )
list of stimuli
the target width (if null, the maximum stimulus width is used)
the target height (if null, the maximum stimulus height is used)
background color if cropping goes outside the original image, see color_conv()
color_conv()
whether to crop or pad images to make them the specified size
whether to keep the size relationships between images in the set, or make all the maximum size
list of stimuli with cropped tems and/or images
Stimulus manipulation functions align(), crop_tem(), crop(), greyscale(), horiz_eyes(), image_func(), mask_oval(), mask(), mirror(), pad(), resize(), rotate()
align()
crop_tem()
crop()
greyscale()
horiz_eyes()
image_func()
mask_oval()
mask()
mirror()
pad()
resize()
rotate()
# NOT RUN { # images with different aspect ratios and sizes stimuli <- demo_unstandard(c(1:4, 6:9)) to_size(stimuli, 200, 200, fill = "dodgerblue") # }
Run the code above in your browser using DataLab