Closed kmezhoud closed 6 years ago
@kmezhoud I'm sorry for the late reply,
according to the CRAN package check results OpenImageR should also work for a Macintosh OS.
Would you mind checking if the test.jpeg image exists in your current directory? For instance on a unix OS
getwd()
list.files()
would list all existing files.
Otherwise I would consider to give the full path of the image,
path = "your_home_directory/test.jpeg"
img <- readImage(path)
dim(img)
Let me know if this was actually the issue.
Ahhh,
I think, doesn't work into R Notebook only.
yes, imageShow(im) works in console.
But in imageShow document, the argument in a file_path
and not raster object
.
Thanks
library(OpenImageR)
list.files()
im <- OpenImageR::readImage("image0216.jpg")
imageShow(im)
dim(im)
[1] "image0216.jpg" "index.nb.html" "index.Rmd"
[1] 768 1024 3
@kmezhoud,
file_path can be either a character string, a matrix (2-dimensional), a data.frame (2-dimensional) or a 3-dimensional array (documentation). If that is the case then OpenImageR should work also in an R Notebook (.Rmd file).
I close the issue for now, feel free to reopen it.
Dear Lampros,
In the vignette, I am trying
Does not work for me
Thanks,