Opened 17 years ago
Closed 16 years ago
#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 (1)
Change History (2)
by , 17 years ago
Attachment: | vrtfilters.cpp added |
---|
comment:1 by , 16 years ago
Milestone: | → 1.6.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Thanks. Applied in r15362. Test added in r15364