├── .arstudio └── project.marker ├── .github └── FUNDING.yml ├── Icon ├── README.md ├── blocks └── block0 │ └── block0.arblock ├── demo.gif ├── patches ├── BlurBox5.arp ├── BlurDirectional15.arp ├── BlurDirectional25.arp ├── BlurDirectional3.arp ├── BlurDirectional5.arp ├── BlurGaussian3.arp ├── BlurGaussian5.arp ├── Convolve3.arp ├── Convolve5.arp ├── EdgeBox3.arp ├── EdgeCross3.arp ├── EdgeDetectLight.arp ├── Sharpen3.arp └── UnsharpMask5.arp ├── spark-convolution-patch-v2.1.102.arproj └── tutorial.jpg /.arstudio/project.marker: -------------------------------------------------------------------------------- 1 | document:E03961D7-C342-4822-B5EB-793873261EE7 -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: positlabs 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /Icon : -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/Icon -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Blur, sharpen, edge-detection, and convolution patches for Spark AR 2 | 3 | https://en.wikipedia.org/wiki/Kernel_(image_processing) 4 | 5 | ![](./demo.gif) 6 | 7 | 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. 8 | 9 | TIP! If you are using gaussian blur, a more performant option is to chain two directional blurs together (one horizontal, one vertical). 10 | 11 | ## Patches 12 | Numbers in the patch names signify the size of the kernel that is used. Lower is better for performance, higher is better for quality. 13 | 14 | ### BlurDirectional3, BlurDirectional5 15 | Blur that accepts a vector for directional blurring. Direction vector is normalized, so any range of numbers is acceptable 16 | 17 | ### Convolve3, Convolve5 18 | General purpose convolution patches that are used as a base for the other patches. 19 | 20 | ### UnsharpMask5 21 | Really good looking sharpening. Just wow. Great job. 22 | 23 | ### Sharpen3 24 | Harsh sharpening, good for enhancing small details. 25 | 26 | ### BlurGaussian3, BlurGaussian5 27 | Gaussian blur. You know the one. 28 | 29 | ### EdgeBox3 30 | Boxy edge detector. 31 | 32 | ### EdgeCross3 33 | Crossy edge detector. 34 | 35 | 36 | ## Edge detection tutorial (outdated) 37 | 38 | [![tutorial](./tutorial.jpg)](https://www.youtube.com/watch?v=VbFEAbeGmQc) 39 | 40 | ## Resources 41 | 42 | Learn more stuff by watching my [Spark AR Tutorials on YouTube!](https://www.youtube.com/playlist?list=PLAZp2Vi7Gfspzyla4RrCO6BzVzYW7Lnb-) 43 | 44 | Follow me on Instagram [@positlabs](https://instagram.com/positlabs) and try out my effects! 45 | 46 | Browse my open-source [Spark AR repositories on Github!](https://github.com/search?q=user%3Apositlabs+spark) 47 | 48 | Have questions? Join the [Spark AR Community](https://www.facebook.com/groups/SparkARcommunity/) group on Facebook. 49 | 50 | 51 | ## Donations 52 | 53 | 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). 54 | 55 | [![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YGS69CHAE9EQC&source=url) 56 | -------------------------------------------------------------------------------- /blocks/block0/block0.arblock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/blocks/block0/block0.arblock -------------------------------------------------------------------------------- /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/demo.gif -------------------------------------------------------------------------------- /patches/BlurBox5.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/BlurBox5.arp -------------------------------------------------------------------------------- /patches/BlurDirectional15.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/BlurDirectional15.arp -------------------------------------------------------------------------------- /patches/BlurDirectional25.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/BlurDirectional25.arp -------------------------------------------------------------------------------- /patches/BlurDirectional3.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/BlurDirectional3.arp -------------------------------------------------------------------------------- /patches/BlurDirectional5.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/BlurDirectional5.arp -------------------------------------------------------------------------------- /patches/BlurGaussian3.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/BlurGaussian3.arp -------------------------------------------------------------------------------- /patches/BlurGaussian5.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/BlurGaussian5.arp -------------------------------------------------------------------------------- /patches/Convolve3.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/Convolve3.arp -------------------------------------------------------------------------------- /patches/Convolve5.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/Convolve5.arp -------------------------------------------------------------------------------- /patches/EdgeBox3.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/EdgeBox3.arp -------------------------------------------------------------------------------- /patches/EdgeCross3.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/EdgeCross3.arp -------------------------------------------------------------------------------- /patches/EdgeDetectLight.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/EdgeDetectLight.arp -------------------------------------------------------------------------------- /patches/Sharpen3.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/Sharpen3.arp -------------------------------------------------------------------------------- /patches/UnsharpMask5.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/patches/UnsharpMask5.arp -------------------------------------------------------------------------------- /spark-convolution-patch-v2.1.102.arproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/spark-convolution-patch-v2.1.102.arproj -------------------------------------------------------------------------------- /tutorial.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-convolution-patch/ad6752b584ed020a243a3bd926f38da75c294df1/tutorial.jpg --------------------------------------------------------------------------------