Xin chào
Mình đang viết 1 ứng dụng nền tảng android ndk có sử dụng thư viên Opencv.
Vấn đề là khì mình dùng hàm resize của opencv thì fps giảm xuống rất thấp. Không biết tại sao. Hàm resize của opencv có 4 kiểu
INTER_NEAREST - a nearest-neighbor interpolation
INTER_LINEAR - a bilinear interpolation (used by default)
INTER_AREA - resampling using pixel area relation. It may be a preferred method for image decimation, as it gives moire’-free results. But when the image is zoomed, it is similar to the INTER_NEAREST method.
INTER_CUBIC - a bicubic interpolation over 4x4 pixel neighborhood
INTER_LANCZOS4 - a Lanczos interpolation over 8x8 pixel neighborhood
Tuy nhiên kiểu nào cũng làm giảm fps. Có bạn nào từng làm opencv trên android ndk gặp vấn đề này chưa?
Xin cảm ơn