Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test = imerode(inputImage, astrel); % slash
- test = imerode(test, bstrel); % backslash
- test = imerode(test, cstrel); % cross
- tmp = strel([astrel bstrel cstrel]);
- test2 = imerode(inputImage, tmp);
- isequal(test, test2) % this returns 0 for me and figure;imshow(test ~= test2) shows the border pixels differ.. which is consistent with the discrepancies I'm seeing :/
Advertisement
Add Comment
Please, Sign In to add comment