I'm trying to white a Python plugin in QGIS (2.2) to get, for each pixel of a raster image, its X Y coordinates, as well as, its RGB (3 bands) values.
At first I opened the raster file using: rlayer = QgsRasterLayer(rfileName, rbaseName)
Now I don't know how to get, for example, for pixel (1,1) its coordinates (X,Y) and its RGB color values.
Anybody could help me?
I know that I'll need to implement a DO WHILE, but I don't know the commands to extract this information of each pixel.
Thanks in advance,Mateus
أكثر...
At first I opened the raster file using: rlayer = QgsRasterLayer(rfileName, rbaseName)
Now I don't know how to get, for example, for pixel (1,1) its coordinates (X,Y) and its RGB color values.
Anybody could help me?
I know that I'll need to implement a DO WHILE, but I don't know the commands to extract this information of each pixel.
Thanks in advance,Mateus
أكثر...