how can I find the indices of the intersection points of a binary image with a logical array
this is the code
//////////////////
f2= imread('anyBinaryImage');norm2 = normalization(f2,128,128); % normalization function
f3= zeros(size(norm2));a = ones(2,80);f3(10:11,1:80) = a;[g, k, c]= intersect(norm2,f3,'rows');
////////////////
but I got empty matrix, even though there are lots of intersection points between the image and the array
g = Empty matrix: 0-by-128k = Empty matrix: 0-by-1c = Empty matrix: 0-by-1
what should I do ?
Best Answer