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

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -