Skip to content

Instantly share code, notes, and snippets.

@duanebester
Created May 31, 2018 20:32
Show Gist options
  • Save duanebester/c676d2029c2c62b5867ed40903d1d724 to your computer and use it in GitHub Desktop.
Save duanebester/c676d2029c2c62b5867ed40903d1d724 to your computer and use it in GitHub Desktop.
import org.bytedeco.javacpp.{opencv_photo => Photo}
def enhanceMat = Flow[Mat].map(mat => {
val src = mat.clone()
Photo.fastNlMeansDenoising(mat, src, 40, 10, 40)
val dst = src.clone()
Photo.detailEnhance(src,dst)
dst
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment