Skip to contents

Move template points that are outside the image boundaries (e.g., negative values or larger than image width or height) to the borders of the image.

Usage

squash_tem(stimuli)

Arguments

stimuli

list of stimuli

Value

list of stimuli

Examples

nosquash <- demo_stim(1) |> 
  crop(0.4, 0.5)

squash <- demo_stim(1) |> 
  crop(0.4, 0.5) |> 
  squash_tem()

# add padding and visualise templates
c(nosquash, squash) |> 
  pad(50) |>
  draw_tem(pt.size = 5)