Ticket #1739 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 years ago

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

vrtfilters.cpp Download (22.1 KB) - added by asgerpetersen 6 years ago.

Change History

Changed 6 years ago by asgerpetersen

Changed 5 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.6.0

Thanks. Applied in r15362. Test added in r15364

Note: See TracTickets for help on using tickets.