Hi,

I extract the coordinates and pixel values on my image. Thus I want to
display all my matrix and save it in a (. txt) file.   
I used this code:

>library(raster)
>adresse<-"C:\\Users\\Documents\\DISC D\\\Images282"
>a <- raster(adresse) 
>CentreRaster <- rasterToPoints(a)
>PixelColonne <- as.data.frame(CentreRaster)
>PixelColonne <- cbind(PixelColonne,coordonnee =
paste(PixelColonne[,1],PixelColonne[,2],sep=" "))
>colnames(PixelColonne) <-
c("Longitude","Latitude","ValeurPixel","Coordonnees")
>return(PixelColonne)
>}
>Mat1 <- RasterToColonne(adresse) 
>Mat1[1:5168101,]  # number of rows = 5168101 

In the result, I have not all the matrix. Only a part of the matrix
appears. 
How can I save the entire matrix to a file (. txt)?   

Thank you in advance 
Momadou
	[[alternative HTML version deleted]]

