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
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:
(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:
(A[0]-@Value(A:band0.min))/@Value(A:band0.range)
This output from that is now normalised [0,1]
In detail:
Set the RasterStatisticsCalculator:
Then open the the Arithmetic Editor in the RasterExpresionEvaluator from the drop down menu on the right of the Expression column:
And finally create the expression for raster A band 0 (single raster, greyscale):