Created
June 29, 2016 15:23
-
-
Save bonsak/b122b4822a29708843019c3958cdec67 to your computer and use it in GitHub Desktop.
Edge_Kernel.vex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int closept[] = pcfind(0, "Cd", @Cd, 0.1, 9); | |
vector kernelsum = 0; | |
vector firstcol = point(0, "Cd", closept[0]); | |
for (int i = 1; i < 9; i++){ | |
vector closecol = point(0, "Cd", closept[i]); | |
kernelsum += ( closecol * -1 ); | |
} | |
f@density = length( kernelsum += ( firstcol * 8 ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment