News for hackers. Stuff that matters.
Re:A 100x speedup with unsafe Python by yosefk on Tuesday May 07, 2024 @01:54AM (#40282773)
While this is a valid point, cv2.resize doesn't actually implement color conversion in a way addressing this issue; at least in my testing I get identical results whether I interpret the data as RGB or BGR. So if you want to use cv2.resize, AFAIK you can count on it not caring which channel is which. And if you need fast resizing, you're quite likely to settle for the straightforward interpolation implemented by cv2.resize.

There are no comments on this comment yet.