Hello all,
I am trying to use the EBImage package,
(EBImage 3.2.0 and ImageMagick 6.5.7-9 2009-11-19 Q8 (dinamic linked)
with R 2.10.0 winXP)
but I get the following error:
#---------------------------------------------
> library(EBImage)
Loading required package: abind
> ?readImage
> ## Reads and display images
> f = system.file("images", "lena-color.png", package="EBImage")
> f
[1] "C:/R/library/EBImage/images/lena-color.png"
>
> x = readImage(f)
Warning message:
In readImage(f) : requested image not found or could not be loaded
> x
NULL
Is there a way of to solve the problem? Or make a workaround? (but with
no source code compilation)
Thanks for any reply!
Cleber Nogueira Borges
============================
# only for information: GTK on winXP!
> readImage() ### open a GTK windows dialog very well in winXP!
Error in readImage() : cancel pressed or no image could be loaded
In addition: Warning message:
In readImage() : requested image not found or could not be loaded
============================
### PATH of windows xp system
-----------------------------------------------------------------------------------------------------------
C:\Documents and Settings\Cleber>path
PATH=C:\ImageMagick;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C
:\GTK\bin;C:\GTK\lib
C:\Documents and Settings\Cleber>convert -version
Version: ImageMagick 6.5.7-9 2009-11-19 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Features: OpenMP
### details about R session
-----------------------------------------------------------------------------------------------------------
> sessionInfo()
R version 2.10.0 (2009-10-26)
i386-pc-mingw32
locale:
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Brazil.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] EBImage_3.2.0 abind_1.1-0
loaded via a namespace (and not attached):
[1] tools_2.10.0
>
EBImage do not read an Image: requested image not found or could not be loaded
4 messages · Cleber N.Borges, Uwe Ligges
Cleber Borges wrote:
Hello all, I am trying to use the EBImage package, (EBImage 3.2.0 and ImageMagick 6.5.7-9 2009-11-19 Q8 (dinamic linked) with R 2.10.0 winXP) but I get the following error: #---------------------------------------------
> library(EBImage)
Loading required package: abind
> ?readImage
> ## Reads and display images
> f = system.file("images", "lena-color.png", package="EBImage")
> f
[1] "C:/R/library/EBImage/images/lena-color.png"
> > x = readImage(f)
Warning message: In readImage(f) : requested image not found or could not be loaded
> x
NULL Is there a way of to solve the problem? Or make a workaround? (but with no source code compilation)
Works for me with the same setup. Are yiu sure the file exists on your machine and is uncorrupted. Do you have access and read permissions? Uwe Ligges
Thanks for any reply! Cleber Nogueira Borges ============================ # only for information: GTK on winXP!
> readImage() ### open a GTK windows dialog very well in winXP!
Error in readImage() : cancel pressed or no image could be loaded In addition: Warning message: In readImage() : requested image not found or could not be loaded ============================ ### PATH of windows xp system ----------------------------------------------------------------------------------------------------------- C:\Documents and Settings\Cleber>path PATH=C:\ImageMagick;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C :\GTK\bin;C:\GTK\lib C:\Documents and Settings\Cleber>convert -version Version: ImageMagick 6.5.7-9 2009-11-19 Q8 http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC Features: OpenMP ### details about R session -----------------------------------------------------------------------------------------------------------
> sessionInfo()
R version 2.10.0 (2009-10-26) i386-pc-mingw32 locale: [1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 [3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C [5] LC_TIME=Portuguese_Brazil.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] EBImage_3.2.0 abind_1.1-0 loaded via a namespace (and not attached): [1] tools_2.10.0
>
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Thanks Uwe for your reply.
I can open the lena-color.png file with several programs: firefox, M$
Picture Manager, IMDisplay (GUI of ImageMagick)
I converted lena-color.png in lena2.jpeg using M$ Picture Manager.
With a old version of rimage package, I can read JPEG files (only) with
"read.jpeg" functions...
the others functions of the EBImage package, (ex.: blur, rotate, flip)
works fine! because works for array class...
So, the lena-color file seems fine!
The problem should be some interaction of my winXP configuration with
the readImage function ("lib_readImages")
Thanks again...
Cleber N. Borges
### Making tests..
----------------------------------------
> library(rimage)
Warning message:
package 'rimage' was built under R version 2.8.1 and help will not work
correctly
Please re-install it
> f <- 'C:/R/library/EBImage/images/lena2.jpg'
>
> f
[1] "C:/R/library/EBImage/images/lena2.jpg"
>
> x <- read.jpeg( f )
> class(x)
[1] "imagematrix" "array"
> dim(x)
[1] 512 512 3
>
>
> library(EBImage)
Loading required package: abind
Attaching package: 'EBImage'
The following object(s) are masked from package:rimage :
equalize,
normalize
> ?blur # woks fine
> if (interactive()) display(x)
>
> y = blur(x, r=3, s=2)
> if (interactive()) display(y, title='blur(x, r=3, s=2)')
>
> y = gblur(x, r=3, s=2)
> if (interactive()) display(y, title='gblur(x, r=3, s=2)')
>
> ?rotate # works fine
>
> y = flip(x)
> if (interactive()) display(y, title='flip(x)')
>
> y = flop(x)
> if (interactive()) display(y, title='flop(x)')
>
> y = resize(x, 128)
> if (interactive()) display(y, title='resize(x, 128)')
>
> y = rotate(x, 30)
> if (interactive()) display(y, title='rotate(x, 30)')
>
>
>
Cleber Borges wrote:
Hello all, I am trying to use the EBImage package, (EBImage 3.2.0 and ImageMagick 6.5.7-9 2009-11-19 Q8 (dinamic linked) with R 2.10.0 winXP) but I get the following error: #---------------------------------------------
> library(EBImage)
Loading required package: abind
> ?readImage
> ## Reads and display images
> f = system.file("images", "lena-color.png",
package="EBImage")
> f
[1] "C:/R/library/EBImage/images/lena-color.png"
> > x = readImage(f)
Warning message: In readImage(f) : requested image not found or could not be loaded
> x
NULL Is there a way of to solve the problem? Or make a workaround? (but with no source code compilation)
Works for me with the same setup. Are yiu sure the file exists on your machine and is uncorrupted. Do you have access and read permissions? Uwe Ligges
[[elided Yahoo spam]]
Cleber Nogueira Borges ============================
[[elided Yahoo spam]] [[elided Yahoo spam]]
Error in readImage() : cancel pressed or no image could be loaded In addition: Warning message: In readImage() : requested image not found or could not be loaded ============================ ### PATH of windows xp system ----------------------------------------------------------------------------------------------------------- C:\Documents and Settings\Cleber>path PATH=C:\ImageMagick;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C :\GTK\bin;C:\GTK\lib C:\Documents and Settings\Cleber>convert -version Version: ImageMagick 6.5.7-9 2009-11-19 Q8 http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC Features: OpenMP ### details about R session -----------------------------------------------------------------------------------------------------------
> sessionInfo()
R version 2.10.0 (2009-10-26) i386-pc-mingw32 locale: [1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 [3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C [5] LC_TIME=Portuguese_Brazil.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] EBImage_3.2.0 abind_1.1-0 loaded via a namespace (and not attached): [1] tools_2.10.0
>
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
O bom senso ? a coisa do mundo mais bem distribu?da: Todos pensamos t?-lo em tal medida que at? os mais dif?ceis de contentar nas outras coisas n?o costumam desejar mais bom senso do que aquele que t?m. [Ren? Descartes]
Hi, with intention of to make register of a workaround... I uninstalled the ImageMagick Q8 and installed a Q16 version and works fine! :-) example(EBImage) run for every demos!!! Thanks Cleber N. Borges C:\Documents and Settings\Cleber>convert -version Version: ImageMagick 6.5.7-9 2009-11-19 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC Features: OpenMP Cleber Borges escreveu:
Thanks Uwe for your reply.
I can open the lena-color.png file with several programs: firefox, M$
Picture Manager, IMDisplay (GUI of ImageMagick)
I converted lena-color.png in lena2.jpeg using M$ Picture Manager.
With a old version of rimage package, I can read JPEG files (only)
with "read.jpeg" functions...
the others functions of the EBImage package, (ex.: blur, rotate,
flip) works fine! because works for array class...
So, the lena-color file seems fine!
The problem should be some interaction of my winXP configuration with
the readImage function ("lib_readImages")
Thanks again...
Cleber N. Borges
### Making tests..
----------------------------------------
library(rimage)
Warning message: package 'rimage' was built under R version 2.8.1 and help will not work correctly Please re-install it
f <- 'C:/R/library/EBImage/images/lena2.jpg' f
[1] "C:/R/library/EBImage/images/lena2.jpg"
x <- read.jpeg( f ) class(x)
[1] "imagematrix" "array" > dim(x) [1] 512 512 3
library(EBImage)
Loading required package: abind
Attaching package: 'EBImage'
The following object(s) are masked from package:rimage :
equalize,
normalize
?blur # woks fine
if (interactive()) display(x)
> y = blur(x, r=3, s=2)
if (interactive()) display(y, title='blur(x, r=3, s=2)')
> y = gblur(x, r=3, s=2)
if (interactive()) display(y, title='gblur(x, r=3, s=2)')
> ?rotate # works fine
y = flip(x)
if (interactive()) display(y, title='flip(x)')
> y = flop(x)
if (interactive()) display(y, title='flop(x)')
> y = resize(x, 128)
if (interactive()) display(y, title='resize(x, 128)')
> y = rotate(x, 30)
if (interactive()) display(y, title='rotate(x, 30)')
>
Cleber Borges wrote:
Hello all, I am trying to use the EBImage package, (EBImage 3.2.0 and ImageMagick 6.5.7-9 2009-11-19 Q8 (dinamic linked) with R 2.10.0 winXP) but I get the following error: #---------------------------------------------
> library(EBImage)
Loading required package: abind
> ?readImage
> ## Reads and display images
> f = system.file("images", "lena-color.png",
package="EBImage")
> f
[1] "C:/R/library/EBImage/images/lena-color.png"
> > x = readImage(f)
Warning message: In readImage(f) : requested image not found or could not be loaded
> x
NULL Is there a way of to solve the problem? Or make a workaround? (but with no source code compilation)
Works for me with the same setup. Are yiu sure the file exists on your machine and is uncorrupted. Do you have access and read permissions? Uwe Ligges
[[elided Yahoo spam]]
Cleber Nogueira Borges ============================
[[elided Yahoo spam]] [[elided Yahoo spam]]
Error in readImage() : cancel pressed or no image could be loaded In addition: Warning message: In readImage() : requested image not found or could not be loaded ============================ ### PATH of windows xp system ----------------------------------------------------------------------------------------------------------- C:\Documents and Settings\Cleber>path PATH=C:\ImageMagick;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C :\GTK\bin;C:\GTK\lib C:\Documents and Settings\Cleber>convert -version Version: ImageMagick 6.5.7-9 2009-11-19 Q8 http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC Features: OpenMP ### details about R session -----------------------------------------------------------------------------------------------------------
> sessionInfo()
R version 2.10.0 (2009-10-26) i386-pc-mingw32 locale: [1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 [3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C [5] LC_TIME=Portuguese_Brazil.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] EBImage_3.2.0 abind_1.1-0 loaded via a namespace (and not attached): [1] tools_2.10.0
>
______________________________________________