i want to find black pixel positions and save them. i used this code.
I= imread('bin_ecgm.png');
imshow(I);
[r c] =size(I);
for j=1:c
for i=1:r
if(I(i,j)==1)
[i j]
end
end
end
how to store black pixel positions