geosolutions-it / jai-ext

Java Advanced Imaging Open Source Replacement Wannabe
Apache License 2.0
90 stars 38 forks source link

checks on ROI indexes optimization #239

Closed dromagnoli closed 5 years ago

dromagnoli commented 5 years ago

Recently, an optimization to scale2 bilinear has been added, in order to reuse roi weights when moving to a pixel to the next one. There might be the case where the source positions aren't consecutive so the optimization is resulting in some small black artifacts along some area of the ROI edges. We need to get the new ROI pixel when we can't reuse the previous pixel.