Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mahesh35 opened this issue Jul 2, 2020 · 3 comments

Comments

@mahesh35
Copy link

mahesh35 commented Jul 2, 2020

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.

@ShotaOchi
Copy link
Owner

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)

A bug in tkimage.create function of tcltk package causes the error.
tkimage.create function can read some images but can't read the other images.
I confirmed the error occurred on Ubuntu and Windows.
I will modify all functions of magickGUI package or stop using tcltk package if CRAN won't fix the bug.

@mahesh35
Copy link
Author

mahesh35 commented Jul 3, 2020

Thanks it worked for me.

@ShotaOchi
Copy link
Owner

Now modified version is on CRAN.
Please let me know if there is any bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants