Skip to main content
Solved

Average RGB values of raster within polygon

  • June 27, 2022
  • 2 replies
  • 48 views

I have a series of raster files of infrared aerial imagery. I would like to intersect them with a set of polygons in a shapefile and return the average (or frequency) of the RGB channels in the rasters. Could anyone advise if this is possible please?

 

Thanks

Rob

Best answer by nielsgerrits

If I understand what you need, yes this is possible.

  • Readers for the raster and the shape.
  • Clipper to clip the raster.
  • RasterStatisticsCalculator to return the values you need.
  • Writer to output your result.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • June 27, 2022

If I understand what you need, yes this is possible.

  • Readers for the raster and the shape.
  • Clipper to clip the raster.
  • RasterStatisticsCalculator to return the values you need.
  • Writer to output your result.

  • Author
  • 10 replies
  • June 27, 2022

If I understand what you need, yes this is possible.

  • Readers for the raster and the shape.
  • Clipper to clip the raster.
  • RasterStatisticsCalculator to return the values you need.
  • Writer to output your result.

Many thanks, that work perfectly :)