Hello
Thank you for your reply.
I did what you sugested, and we’re getting somewhere!
using the formulas you sugested:
<RasterSymbolizer>
<ChannelSelection>
<RedChannel>
<SourceChannelName>1</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-55.2689</VendorOption>
<VendorOption name="maxValue">214.7722</VendorOption>
</Normalize>
</ContrastEnhancement>
</RedChannel>
<GreenChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-41.9121</VendorOption>
<VendorOption name="maxValue">163.9293</VendorOption>
</Normalize>
</ContrastEnhancement>
</GreenChannel>
<BlueChannel>
<SourceChannelName>3</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-22.1867</VendorOption>
<VendorOption name="maxValue">77.2479</VendorOption>
</Normalize>
</ContrastEnhancement>
</BlueChannel>
</ChannelSelection>
</RasterSymbolizer>
my raster info is
C:\DATA\raster>gdalinfo myRaster.tif
Driver: GTiff/GeoTIFF
Files: myRaster.tif
myRaster.tif.ovr
myRaster.tif.aux.xml
Size is 23861, 16880
Coordinate System is:
PROJCS["WGS 84 / UTM zone 29N",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-9],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","32629"]]
Origin = (625033.424520000000484,4248219.836620000191033)
Pixel Size = (0.103860000000000,-0.103860000000000)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_SOFTWARE=pix4dmapper
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 625033.425, 4248219.837) ( 7d34' 7.07"W, 38d22'24.38"N)
Lower Left ( 625033.425, 4246466.680) ( 7d34' 8.19"W, 38d21'27.52"N)
Upper Right ( 627511.628, 4248219.837) ( 7d32'24.97"W, 38d22'23.12"N)
Lower Right ( 627511.628, 4246466.680) ( 7d32'26.11"W, 38d21'26.26"N)
Center ( 626272.526, 4247343.258) ( 7d33'16.59"W, 38d21'55.32"N)
Band 1 Block=23861x1 Type=Byte, ColorInterp=Red
Min=0.000 Max=255.000
Minimum=0.000, Maximum=255.000, Mean=79.752, StdDev=67.510
NoData Value=-10000
Overviews: 11931x8440, 5966x4220, 2983x2110, 1492x1055, 746x528, 373x264, 187x132
Metadata:
STATISTICS_COVARIANCES=4557.639431244172,3461.157875865516,1616.247181916951,8018.146929498016
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=79.751677803277
STATISTICS_MINIMUM=0
STATISTICS_SKIPFACTORX=1
STATISTICS_SKIPFACTORY=1
STATISTICS_STDDEV=67.510291214959
Band 2 Block=23861x1 Type=Byte, ColorInterp=Green
Min=0.000 Max=255.000
Minimum=0.000, Maximum=255.000, Mean=61.009, StdDev=51.460
NoData Value=-10000
Overviews: 11931x8440, 5966x4220, 2983x2110, 1492x1055, 746x528, 373x264, 187x132
Metadata:
STATISTICS_COVARIANCES=3461.157875865516,2648.170496677781,1243.180669732085,6133.734519685802
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=61.008562632494
STATISTICS_MINIMUM=0
STATISTICS_SKIPFACTORX=1
STATISTICS_SKIPFACTORY=1
STATISTICS_STDDEV=51.460377929799
Band 3 Block=23861x1 Type=Byte, ColorInterp=Blue
Min=0.000 Max=226.000
Minimum=0.000, Maximum=226.000, Mean=27.531, StdDev=24.859
NoData Value=-10000
Overviews: 11931x8440, 5966x4220, 2983x2110, 1492x1055, 746x528, 373x264, 187x132
Metadata:
STATISTICS_COVARIANCES=1616.247181916951,1243.180669732085,617.954007884253,2767.896495658875
STATISTICS_MAXIMUM=226
STATISTICS_MEAN=27.530599208965
STATISTICS_MINIMUM=0
STATISTICS_SKIPFACTORX=1
STATISTICS_SKIPFACTORY=1
STATISTICS_STDDEV=24.858680734992
Band 4 Block=23861x1 Type=Byte, ColorInterp=Alpha
Min=0.000 Max=255.000
Minimum=0.000, Maximum=255.000, Mean=154.461, StdDev=124.617
NoData Value=-10000
Overviews: 11931x8440, 5966x4220, 2983x2110, 1492x1055, 746x528, 373x264, 187x132
Metadata:
STATISTICS_COVARIANCES=8018.146929498016,6133.734519685802,2767.896495658875,15529.34978118977
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=154.46108783722
STATISTICS_MINIMUM=0
STATISTICS_SKIPFACTORX=1
STATISTICS_SKIPFACTORY=1
STATISTICS_STDDEV=124.61681179195
Now what can i do to come closer to the original one? (to get that “blueish” on the water)
You mentioned “computing percentiles based on histograms”. how can i do that?
Regards
View this message in context: Re: Raster Normalize
Sent from the GeoServer - User mailing list archive at Nabble.com.