Skip to main content
Solved

Extact RGB value from RAster imagery

  • November 29, 2017
  • 3 replies
  • 56 views

Forum|alt.badge.img

I need to extract from a raster imagery (Geotiff ) only the pixel with a specific range of values

I mean I need to return points that corresponding to the pixels with these values

Red between 245-255

Green between 245-255

Blue between 245-255

Best answer by jdh

I would use a RasterCellValueReplacer to replace values <245 with 0, and then a RasterBandNoDataSetter (0) followed by a RasterCellCoercer with extract NoData set to no.

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.

3 replies

Forum|alt.badge.img
  • Author
  • 12 replies
  • November 29, 2017

HY all

I need to extract from a raster imagery (Geotiff ) only the pixel with a specific range of values

I mean I need to return points that corresponding to the pixels with these values

Red between 245-255

Green between 245-255

Blue between 245-255

 

thx

 

Francesco


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • Best Answer
  • November 29, 2017

I would use a RasterCellValueReplacer to replace values <245 with 0, and then a RasterBandNoDataSetter (0) followed by a RasterCellCoercer with extract NoData set to no.


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • November 30, 2017

I would use a RasterCellValueReplacer to replace values <245 with 0, and then a RasterBandNoDataSetter (0) followed by a RasterCellCoercer with extract NoData set to no.

Great solution.