library(EBImage)
x <- readImage(system.file("images", "sample-color.png", package="EBImage"))[257:768,,]
display(x, "Sample")
y <- readImage(system.file("images", "sample.png", package="EBImage"))
yt <- list()
for (t in seq(0.1, 5, len=9)) yt=c(yt, list(gblur(y, s=t)))
yt <- combine(yt)
display(yt, "Blurred images")
## The image contains more than one frame: only the first one is displayed. To display all frames use 'all = TRUE'.
display(yt, "Blurred images", all=TRUE)
display(resize(yt, 256, 256), method = "raster", all = TRUE)
display(yt, method = "raster", frame = numberOfFrames(yt, type = "render"))
f <- system.file("images", "sample-color.png", package="EBImage")
x <- readImage(f)
display(x)
y <- readImage(system.file("images", "nuclei.tif", package="EBImage"))
display(y)
## The image contains more than one frame: only the first one is displayed. To display all frames use 'all = TRUE'.
display(y, all=TRUE)
try({
im <- readImage("http://www-huber.embl.de/EBImage/ExampleImages/berlin.tif")
display(im, title = "Berlin Impressions", all=TRUE)
})
tempfile <- tempfile("", , ".jpeg")
writeImage(x, tempfile, quality = 85)
cat("Converted '", f, "' into '", tempfile, "'.\n", sep="")
## Converted 'C:/Users/Earl/Documents/R/win-library/3.1/EBImage/images/sample-color.png' into 'C:\Users\Earl\AppData\Local\Temp\RtmpyKyohe\1b70554a6815.jpeg'.
files <- writeImage(y, tempfile("", , ".jpeg"), quality = 85)
cat("Files created: ", files, sep="\n")
## Files created:
## C:\Users\Earl\AppData\Local\Temp\RtmpyKyohe\1b706a020bd-0.jpeg
## C:\Users\Earl\AppData\Local\Temp\RtmpyKyohe\1b706a020bd-1.jpeg
## C:\Users\Earl\AppData\Local\Temp\RtmpyKyohe\1b706a020bd-2.jpeg
## C:\Users\Earl\AppData\Local\Temp\RtmpyKyohe\1b706a020bd-3.jpeg
packageVersion("EBImage")
## [1] '4.8.2'
efg
2015-01-18 1957