tests/testthat/test_interactive_canny.R

test_that("interactive_canny",
{
  skip_on_cran()
  iniv <- "0x1+10%+30%" # initial value
  expected <- image_canny(img, iniv)
  expect_equal(expected, interactive_canny(img))
  expect_equal(iniv, interactive_canny(img, return_param = TRUE))
  expect_equal(expected, interactive_canny(img, scale = scale1))
})

Try the magickGUI package in your browser

Any scripts or data that you put into this service are public.

magickGUI documentation built on July 12, 2021, 5:06 p.m.