Gaussian blurring with OpenCV: only blurring a subregion of an image?

后端 未结 4 697
野的像风
野的像风 2020-12-15 22:49

Is it possible to only blur a subregion of an image, instead of the whole image with OpenCV, to save some computational cost?

EDIT: One important po

4条回答
  •  情歌与酒
    2020-12-15 23:25

    Yes it is possible to blur a Region Of Interest in OpenCV.

    size( 120, 160 ); 
    OpenCV opencv = new OpenCV(this);
    opencv.loadImage("myPicture.jpg");
    opencv.ROI( 60, 0, 60, 160 );
    opencv.blur( OpenCV.BLUR, 13 );   
    image( opencv.image(), 0, 0 );
    

    For more information, check out this link. Good luck,

提交回复
热议问题