How to open offline image as an array?

R programming language resources Forums Data manipulation How to open offline image as an array?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #471
    baumeist
    Member

    Hai, I’m trying to open an offline image as an array. I have try several steps, but i receive an error message. Maybe the command line is wrong. Can anyone help me?

    #473
    bryan
    Participant

    Hi diyanah,

    Are you using the EBImage package? That should allow you to open images as an array. From the help:

    “RGB images are coded in 8 bits per channel, 24 bits per pixel, stored in an R integer array.”

    If not, can you tell us what you are using? The relevant portions of your code would also be helpful.

    #475
    baumeist
    Member

    ok..actually this is what i need to do….first i was given an image, a .tif image. i need to open it and as an array and i need to read the coordinate for at least 3×3…..from there i need to produce an algorithm. I’m still blur in R programming….all i understand right now is how to open data for example like a table in R….that is all. I already have imagemagic an EBIMage….but i don’t understand on how to use it with R. Is there any way or hint or any tutorial that u think might help me..?? thank u in advance.

    #477
    baumeist
    Member

    Hi,

    Currently I’ve been working on my final year project (Offline Signature Verification System). I’m required to use R programming and I’ve found that EBImage going well with R in image processing. I’ve successfully install R and EBImage package (along with ImageMagick and GTK). The thing is, when I try the command that I get from the “Introduction to EBImage” manual, I receive error/warning message. I hope you may help me solving these problem.

    I have already change the directory to where the image is placed, and I have confirmed it by calling a .txt file and it is a success, but when I try for the image, I received these:

    > f =system.file(“Images”,”user186g1.tif”, pakage=”EBImage”)
    > user186g1 = readImage (f)
    Warning message:
    In readImage(f) : requested image not found or could not be loaded

    I try calling the directory by the using the PATH (I’m not sure whether the command is correct):

    > f =system.file(“D:\\FYP ~\\image”,”user186g1.tif”, pakage=”EBImage”)
    > user186g1 = readImage(f)
    Warning message:
    In readImage(f) : requested image not found or could not be loaded

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Scroll to top
Privacy Policy