8 ms·
I thought almost everyone uses some form of interpolation when resizing which would defeat this attack completely. Or are there use cases for not using interpol
by barbegal 6y ago
I thought almost everyone uses some form of interpolation when resizing which would defeat this attack completely. Or are there use cases for not using interpolation (I know it requires less processing)?
- tsbinz 6y agoOpencv does use linear interpolation by default. What you'd need to do is to use something that helps against aliasing, for example first blurring the image with a kernel of the appropriate size or to use a scaling method like opencv's INTER_AREA.
- steerablesafe 6y agoWhat actually helps here is to use linear colorspace for downscaling and to correctly detect the source image's colorspace.
- tsbinz 6y agoColorspaces are an issue with scaling/averaging, but it's not what's happening here.