silverlight - how to find the intersection of two Writeablebitmap using c# -
i have 2 black , white pictures in writeablebitmap
. , want find intersection between them check if pictures have similar area. size same.
i trying , sure missing or doing wrong because not getting result want.
int[] p1 = pic1.pixels; int[] p2 = pic2.pixels; int len1 = p1.length; int intersection=0; (int k = 0; k < len; k++) { if (p[k] == p1[k]) { intersection++; } }
am going wrong or code can somehow work?
Comments
Post a Comment