Where can I check the brightness value (DN) of the image stored as 'tif format' in QGIS? What is the way to add it to the attribute table?

Current progress: Coordinates are assigned to each pixel of the raster image.

My plan: The DN value of each pixel is added to the attribute table, and the DN value is classified and analyzed.

What I Need:

To check DN value in image, add DN value to attribute table.


1 Answer 1


You could use these two steps:

  • Use the tool Raster pixels to points
    Processing Toolbox > Vector creation > Raster pixels to points

  • Use Add X/Y fields to layer on the points layer
    Processing Toolbox > Vector table > Add X/Y fields to layer

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.