I want to confirm that it worked (took some time though to find the needed libraries!)
now I get from the readGal the following struct

> str(store)
Formal class 'SpatialGridDataFrame' [package "sp"] with 6 slots
  ..@ data       :'data.frame': 65536 obs. of  1 variable:
  .. ..$ band1: int [1:65536] 255 255 255 255 255 255 255 255 255 255 ...
  ..@ grid       :Formal class 'GridTopology' [package "sp"] with 3 slots
  .. .. ..@ cellcentre.offset: Named num [1:2] 0 -722925
  .. .. .. ..- attr(*, "names")= chr [1:2] "x" "y"
  .. .. ..@ cellsize         : num [1:2] 2835 2835
  .. .. ..@ cells.dim        : int [1:2] 256 256
  ..@ grid.index : int(0) 
  ..@ coords     : num [1:2, 1:2] 0 722925 -722925 0
  .. ..- attr(*, "dimnames")=List of 2
  .. .. ..$ : NULL
  .. .. ..$ : chr [1:2] "x" "y"
  ..@ bbox       : num [1:2, 1:2] -1418 -724342 724342 1418
  .. ..- attr(*, "dimnames")=List of 2
  .. .. ..$ : chr [1:2] "x" "y"
  .. .. ..$ : chr [1:2] "min" "max"
  ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slots
  .. .. ..@ projargs: chr NA


if I understand it right

all the values I want to have should be inside the 

store@data$band1

it looks though that my image (one can see it as a matrix with values) now it gets "converted" to a vector.
How I can keep its matrix "look"

I would like to thank you in advance for your help

B.R
Alex


________________________________
 From: Michael Sumner <mdsumner@gmail.com>

Cc: "R-help@r-project.org" <R-help@r-project.org> 
Sent: Wednesday, November 23, 2011 10:08 AM
Subject: Re: [R] REad bitmap files


Try the rgdal package, ?readGDAL will read a bmp file. Building on that and adding more features is the raster package, see ?raster which will return am object from reading the file and provide extra support to sort out the plotting of colour tables etc correctly.

Cheers, Mike


> Dear all,
> I am looking for a function that can read a simple bmp file and return me a matrix with their corresponding values.
>
> I have already looked in the packages
>
>
> require(ReadImages)
> require(pixmap)
>
> and also did apropos("image")
>
> but I could not find something that can do something like that.
>
> I have also tried the read.ftable but it also failed.
>
> 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.
>

-- 
Michael Sumner
Institute for Marine and Antarctic Studies, University of Tasmania
Hobart, Australia
e-mail: mdsumner@gmail.com
	[[alternative HTML version deleted]]

