Hi Jukka,

Sounds interesting.
How would you envisage the Mapfile OUTPUTFORMAT looking in this case? Would it 
reference a VRT file ignoring any SourceFilename?

Seth

--
web:https://geographika.net & https://mapserverstudio.net
twitter: @geographika

On Tue, Apr 23, 2024, at 4:58 PM, Rahkonen Jukka via MapServer-dev wrote:
> 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-
> _______________________________________________
> MapServer-dev mailing list
> MapServer-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev
> 
_______________________________________________
MapServer-dev mailing list
MapServer-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-dev

Reply via email to