Dear all,
I have asked yesterday of how I can read a simple bitmap file in R cran.

I was suggest to use either readGDAL or raster for loading my bitmap


a. I have done it with readGDAL like

    store<-readGDAL(fname='lena256.bmp')
    and it works,... but it converts my matrix-like notion of a bitmap to a 
large vector

b. Raster also returns a class that I can not understand.

So 1, I want to load it and keep the image as a matrix (so every cell in the 
matrix will correspond to a pixel)
2. I want to be able to plot the image based on that matrix that I have loaded 
too.

Could you please explain me how I can do those?

B.R
Alex

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to