imwrite("filename.jpeg",src,(vector){CV_IMWRITE_JPEG_QUALITY, 20});
filename.jpeg
will be output File name
src
be source image read containing variable
(vector)
typecasting
{CV_IMWRITE_JPEG_QUALITY, 20}
an array of elements to be passed as Param_ID - and Param_value in imwrite function