我正在寻找一种在OpenCV中实现过滤器的方法(类似于GIMP中的"Pixelize“过滤器)。
https://docs.gimp.org/2.6/en/plug-in-pixelize.html
到目前为止,我尝试的是通过使用cv::resize(...)
来降低和提升图像。
cv::resize(*src, *trg, cv::Size(), perc, perc, flag);
cv::resize(*trg, *trg, cv::Size(src->size().width, src->size().height),flag);
其结果实际上只是图像质量的下降。
发布于 2017-04-09 20:26:44
resize(_inputImage, outImage, Size(windth,height),0,0,INTER_NEAREST);
恢复大小https://stackoverflow.com/questions/43310569
复制相似问题