We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [pixel]

In digital imaging, a pixel, or pel (picture element), is a single point in a raster image, or the smallest addressable screen element in a display device. In GIS applications, a pixel may also refer to an imagery layer or other raster data.

Filter by
Sorted by
Tagged with
45
votes
1answer
24k views

Getting pixel value of GDAL raster under OGR point without NumPy?

I am working on a computational model of the abundance of wild pollinators across a landscape. The model itself is complete, and I am now struggling with a post-processing step. I have my GDAL ...
0
votes
1answer
330 views

Cloud mask using pixel_qa

I need to create a cloud mask using the pixel_qa band, this is the code that I have so far: var city = ee.Geometry.Point(9.15, 45.18); var landsat8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR') // ...
2
votes
1answer
96 views

How to write a single pixel or a line of pixels to GeoTIFF using GDAL/Python

Let's say I want to write a single pixel or a 1D array of pixels (e.g.all at the same latitude) of pixels to a single-band of a Float32 GeoTIFF using the Python GDAL bindings. How can I do so? Or is ...
3
votes
1answer
516 views

Getting value of pixel and its 8 surrounding pixels from points using QGIS

I have a point Shapefile layer and a land cover raster layer. For each point, I want to get the value (land cover) of the pixel it falls into and also of the 8 surrounding pixel. Is there a tool in ...
3
votes
1answer
264 views

Identifying pixels with sun glint in a satellite image (for atmospheric correction)

Wondering if anyone knows a way (perhaps objective) to identify pixels that are infected with sun glint in an image. I'm using Hedley's 2005 approach in a python to deglint my image but this approach ...
2
votes
1answer
164 views

Getting coordinates of pixel from georeferenced drone photo?

I have a problem with geo-referenced photos from a DJI drone. I have the coordinates of the center of the photo and the metadata related to the photo and I would like to know how to go from a pixel to ...
2
votes
1answer
730 views

R How to multiply the values of the raster pixels with the true surfaces of these pixels?

I want to multiply the precipitation values (mm) of each pixel of a raster by the area corresponding to each of these pixels under R. At first, I directly multiplied the raster by the average pixel ...
2
votes
2answers
629 views

Measuring distances from each pixel center (in raster) to each point (in vector) in PyQGIS?

I have one raster layer and point vector layer. I want to measure distance between center of each pixel in raster to each point in vector layer. I extracted x,y center of each cell and added them to a ...
1
vote
3answers
152 views

Converting raster pixels to vector cells?

Is there any way to convert raster pixels to vector cells? I mean each pixel to a polygon. I tried the SAGA tool 'Raster values to points' by choosing cells option instead of nodes option. As a ...
1
vote
1answer
89 views

Why does QGIS crash when extracting pixel values by GDAL?

In below code I want to print pixel values, but when run in QGIS python console QGIS software crashes and closed! what is the problem? from osgeo import gdal import numpy import struct def ...
0
votes
1answer
345 views

Selecting all pixels from Pixel Inspector?

While using the Pixel Inspector, whenever I click "copy all values" it only copies values that you can see on the screen. Anyone know a solution? I need all the values to count the number of times 1, ...