tests/testthat/test-normalize.R

test_that("normalize() works", {
  path <- system.file("external/DSCN4500.JPG", package = "rcaiman")
  expect_equal(min(normalize(read_caim(path), 0, 255)[]),
               0)
  expect_equal(max(normalize(read_caim(path), 0, 255)[]),
               1)
})

Try the rcaiman package in your browser

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

rcaiman documentation built on Nov. 15, 2023, 1:08 a.m.