This is pretty basic but I'm just trying to properly get subcript indices after edge detection (logical matrix E). For some reason, linear indexing seems to be working, but whe I try to convert to subscript indices it goes all wrong. Any help would be appreciated.
indx = find(E);mask=false(size(E));mask(indx)=true;imshow(mask);[y,x] = ind2sub(size(E),indx);mask=false(size(E));mask(y,x)=true;imshow(mask);
Best Answer