[MapServer-dev] KernelFiltered outputformat?

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Tue Apr 23 07:58:16 PDT 2024


Hi,

I was experimenting with GDAL VRT and KernelFilteredSource https://gdal.org/drivers/raster/vrt.html#kernelfilteredsource. My aim was to sharpen aeriel photos a bit for helping visual image interpretation. I was rather satisfied with the following that, I believe, is an unsharp mask filter https://en.wikipedia.org/wiki/Kernel_(image_processing). Excerpt from my VRT file:

<KernelFilteredSource>
      <SourceFilename relativeToVRT="1">P4433H.tif</SourceFilename>
      <SourceBand>3</SourceBand>
      <Kernel normalized="1">
                <Size>5</Size>
          <Coefs> -0.00390625 -0.015625 -0.0234375 -0.015625 -0.00390625 -0.015625 -0.0625 -0.09375 -0.0625 -0.015625 -0.0234375 -0.09375 1.859375 -0.09375 -0.0234375 -0.015625 -0.0625 -0.09375 -0.0625 -0.015625 -0.00390625 -0.015625 -0.0234375 -0.015625 -0.00390625 </Coefs>
  </Kernel>

I tested the sharpened VRT with QGIS and it works well. Now I wonder if it could be possible to configure Mapserver to have KernelFiltered outputformats driven by GDAL and VRT. Derived bands might be useful as well. Any thoughts?

-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20240423/27cd2c39/attachment.htm>


More information about the MapServer-dev mailing list