Re:Pillow-SIMD – Fast, production-ready image resize for x86
by CyberDildonics on Friday July 07, 2017 @10:11AM
(#14718433)
Filters are not there for speed, they are there for quality. If you image is not a square power of two, pixel mixing will have artifacts.
[ Parent
| on HN ]
Re:Pillow-SIMD – Fast, production-ready image resize for x86
by pedrocr on Friday July 07, 2017 @02:45PM
(#14720954)
>If you image is not a square power of two, pixel mixing will have artifacts.
I've implemented it generally by weighing the pixels by the actual area overlapping so border pixels get weights <1.0 for non power of two reductions. Haven't seen any artifacts from it.
Re:Pillow-SIMD – Fast, production-ready image resize for x86
by CyberDildonics on Monday July 10, 2017 @02:55PM
(#14738651)
That can be generalized to a filter kernel.