public static BufferedImage despecklEffect(BufferedImage source){
System.loadLibrary( Core.NATIVE_LIBRARY_NAME );
Mat sourceImage=ImageProc.img2Mat(source);
Photo.fastNlMeansDenoising(sourceImage, sourceImage,50,7,21);
return ImageProc.mat2Img(sourceImage); }
How can i speed up this algorithm by changing parameters?