Solved

Average RGB values of raster within polygon


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

icon

Best answer by nielsgerrits 27 June 2022, 11:05

View original

2 replies

Userlevel 6
Badge +31

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.

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 :)

Reply