https://github.com/positlabs/spark-convolution-patch
Convolution and other super-patches (blur, sharpen)
https://github.com/positlabs/spark-convolution-patch
blur convolution edge-detection image-processing sharpen spark-ar
Last synced: 6 months ago
JSON representation
Convolution and other super-patches (blur, sharpen)
- Host: GitHub
- URL: https://github.com/positlabs/spark-convolution-patch
- Owner: positlabs
- Created: 2019-05-31T11:49:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T19:36:36.000Z (about 5 years ago)
- Last Synced: 2024-10-19T07:14:37.285Z (about 1 year ago)
- Topics: blur, convolution, edge-detection, image-processing, sharpen, spark-ar
- Homepage:
- Size: 10.8 MB
- Stars: 80
- Watchers: 12
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
## Blur, sharpen, edge-detection, and convolution patches for Spark AR
https://en.wikipedia.org/wiki/Kernel_(image_processing)

All of the patches have a strength input, which can be controlled in the demo by clicking on the controller block and using the strength slider in the properties panel.
TIP! If you are using gaussian blur, a more performant option is to chain two directional blurs together (one horizontal, one vertical).
## Patches
Numbers in the patch names signify the size of the kernel that is used. Lower is better for performance, higher is better for quality.
### BlurDirectional3, BlurDirectional5
Blur that accepts a vector for directional blurring. Direction vector is normalized, so any range of numbers is acceptable
### Convolve3, Convolve5
General purpose convolution patches that are used as a base for the other patches.
### UnsharpMask5
Really good looking sharpening. Just wow. Great job.
### Sharpen3
Harsh sharpening, good for enhancing small details.
### BlurGaussian3, BlurGaussian5
Gaussian blur. You know the one.
### EdgeBox3
Boxy edge detector.
### EdgeCross3
Crossy edge detector.
## Edge detection tutorial (outdated)
[](https://www.youtube.com/watch?v=VbFEAbeGmQc)
## Resources
Learn more stuff by watching my [Spark AR Tutorials on YouTube!](https://www.youtube.com/playlist?list=PLAZp2Vi7Gfspzyla4RrCO6BzVzYW7Lnb-)
Follow me on Instagram [@positlabs](https://instagram.com/positlabs) and try out my effects!
Browse my open-source [Spark AR repositories on Github!](https://github.com/search?q=user%3Apositlabs+spark)
Have questions? Join the [Spark AR Community](https://www.facebook.com/groups/SparkARcommunity/) group on Facebook.
## Donations
If you used this in client projects, or simply enjoyed making effects with my open-source projects, please consider a donation or sponsorship. One-time donations can be made with PayPal. Subscriptions can be through PayPal or Github Sponsors (click the heart sponsor button at the top of the page).
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YGS69CHAE9EQC&source=url)