mlampros / OpenImageR

Image processing Toolkit in R
https://mlampros.github.io/OpenImageR/
57 stars 10 forks source link

imageShow #18

Closed ArdalPekh closed 3 years ago

ArdalPekh commented 3 years ago

imageShow used to display grayscale images. However, currently it only displays RGB images and cannot display grayscale images.

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label kind/bug to this issue, with a confidence of 0.69. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

mlampros commented 3 years ago

Hi @ArdalPekh and I'm sorry for the late reply.

The following works for me in OpenImageR 1.1.7. In which Operating System do you use the R package?

file_path = system.file('tmp_images/car.png', package = 'OpenImageR')
file_path

im = OpenImageR::readImage(file_path)
dim(im)
[1] 166 249

# display 2-dimensional matrix
OpenImageR::imageShow(im)

# display the '.png' using the file-path by opening internally a shiny-application
OpenImageR::imageShow(file_path)
stale[bot] commented 3 years ago

This is Robo-lampros because the Human-lampros is lazy. This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs. Feel free to re-open a closed issue and the Human-lampros will respond.