magickGUI
Note
Functions of magickGUI package may fail to recognize magick-image object
There are two solutions.
One is to update magickGUI package.
devtools::install_github("ShotaOchi/magickGUI")
Another is to convert a magick-image object into png.
library(magickGUI)
a <- image_read("test.jpg") %>% image_convert(format = "png")
interactive_reducenoise(a)
Functions of magickGUI package doesn't work on R 4.0.1 for Windows
magickGUI doesn't work on R 4.0.1 for Windows although magickGUI works fine on R 4.0.2 for Windows.
It's CRAN's fault.
I can do nothing about it.
Don't use R 4.0.1 for Windows if you use magickGUI package.
Purpose
The purpose of magickGUI is to enable us to use the functions of the package 'magick' interactively.
Installation
you can install magickGUI from CRAN or GitHub.
Run the following R code to install magickGUI.
# install from CRAN
install.packages("magickGUI")
# install from Github
devtools::install_github("ShotaOchi/magickGUI")Simple Demo
You can use image_threshold function of 'magick' interactively.
Run the following code.
library(magickGUI)
interactive_threshold(wizard)Naming Rule
Just replace "image" with "interactive".
For example, image_threshold → interactive_threshold.
Contribution
You're welcome to create issues for any bug report or suggestion on the issues page.
You can also fork this repository and send me a pull request for bug fixes or additional features.