Ticket #1739 (closed enhancement: fixed)
VRTKernelFilteredSource does not respect nodata
| Reported by: | asgerpetersen | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6.0 |
| Component: | default | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
At the moment nodata values are not recognized and are therefore included in the convolution like any other value.
I suggest the following: If the source pixel corresponding to the output pixel is nodata then set the output pixel to nodata. Otherwise do normal convolution with the exception that nodata pixels are not used when calculating input pixel sum and kernel sum.
This way results are a lot more like one (ie. I) would expect.
I have attached my version of vrtfilters.cpp which has the above mentioned modification.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

