Guest User

MATLAB bug(?)

a guest
May 11th, 2012
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.38 KB | None | 0 0
  1. test = imerode(inputImage, astrel); % slash
  2. test = imerode(test, bstrel);       % backslash
  3. test = imerode(test, cstrel);       % cross
  4.  
  5. tmp = strel([astrel bstrel cstrel]);
  6. test2 = imerode(inputImage, tmp);
  7.  
  8. 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