Can some one give me an example for magickGUI library how to use it on images in R Program?

Can some one give me an example for magickGUI library how to use it on images in R Program?

I tried this way but not working.

library(magickGUI)
library(magick)

var1 <- image_read("C:/R/Car.gif")

interactive_reducenoise(var1)

the item parameter is not accepting in interactive_reducenoise under magickGUI.

Please help.

Thanks,
Mahesh

first advice, is maybe just put your image in the working directory for your R session/project, that way you dont have to deal with path's to it (until you are more confident about that).
Then you could follow the documentation:

Functions of magickGUI package may fail to recognize magick-image object

A solution is to convert a magick-image object into png.

library(magickGUI)
a <- image_read("test.jpg") %>% image_convert(format = "png")
interactive_reducenoise(a)

Thanks it worked for me.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.