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

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -