R programming language resources › Forums › Data manipulation › How to open offline image as an array?
- This topic has 3 replies, 2 voices, and was last updated 13 years, 2 months ago by
baumeist.
- AuthorPosts
- October 20, 2011 at 4:35 pm #471
baumeist
MemberHai, 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?
October 25, 2011 at 4:37 pm #473bryan
ParticipantHi 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.
October 25, 2011 at 4:38 pm #475baumeist
Memberok..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.
March 2, 2012 at 4:40 pm #477baumeist
MemberHi,
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 loadedI 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 - AuthorPosts
- You must be logged in to reply to this topic.