Skip to main content

Hi,

Can anyone please help me on how to normalize a set of greyscale images using FME ? (Transforming the scale range of radiometric values to the [0,1] interval)

 

thank you very much

To normalise into [0,1] you can use the expression:

( x - x_min ) / (x_range)

so for your case:

  1. A RasterStatisticsCalculator to calculate min and range on Band 0
  2. Followed by a RasterExpressionEvaluator for one band, and use the expression:

(A[0]-@Value(A:band0.min))/@Value(A:band0.range)

This output from that is now normalised [0,1]


To normalise into [0,1] you can use the expression:

( x - x_min ) / (x_range)

so for your case:

  1. A RasterStatisticsCalculator to calculate min and range on Band 0
  2. Followed by a RasterExpressionEvaluator for one band, and use the expression:

(A[0]-@Value(A:band0.min))/@Value(A:band0.range)

This output from that is now normalised [0,1]

In detail:

Set the RasterStatisticsCalculator:

RSC_normalisingThen open the the Arithmetic Editor in the RasterExpresionEvaluator from the drop down menu on the right of the Expression column:

REE-normalisngAnd finally create the expression for raster A band 0 (single raster, greyscale):REEeditor_normalising


Reply