From: Todd N. <to...@gm...> - 2005-02-10 15:24:12
|
Hello, I made a change where I round the corners matrix. In the tests that I performed it seems to provide for better rotations. I also modified the special cases so that it doesn't rely on rot90, etc. octave:160> a a = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Pre Patch: octave:161> imrotate(a,45) ans = 0 0 0 4 10 0 0 0 0 0 3 9 9 15 0 0 0 2 7 8 14 19 20 0 0 6 7 12 18 19 24 0 0 0 11 17 17 23 0 0 0 0 0 16 22 0 0 0 Post Patch: octave:162> imrotate(a,45) ans = 0 0 4 5 10 0 0 0 3 3 9 15 15 0 1 2 8 13 14 20 25 1 6 12 13 18 24 25 0 11 11 17 23 23 0 0 0 16 21 22 0 0 Todd |