dahtah / imager

R package for image processing
GNU Lesser General Public License v3.0
187 stars 43 forks source link

the result from as.cimg %>% plot is different from magick::image_read %>% plot or as.raster #145

Closed rpsantosa closed 3 years ago

rpsantosa commented 3 years ago

the result from as.cimg %>% plot is different from magick::image_read %>% plot or as.raster %>% plot ( the last 2 are equal, and different from cimg output) cimg asraster_or_image_load

ShotaOchi commented 3 years ago

What happens if you use magick2cimg function? magick2cimg function works well on my computer.

img <- image_read("the_image.png")
magick2cimg(img) %>% plot
rpsantosa commented 3 years ago

I found out that imager do some preprocessing, normalizing the colors, what gives better results on some images.