From: Justus P. <Jus...@UL...> - 2005-02-21 18:26:16
|
I feel honored that my code receives this thorough testing :-) However, I don't see what's wrong with the code. Please explain to me what you expect imrotate(eye(13),45, "...") to look like. It is certainly *not* going to be a homogeneous horizontal line since we are interpolating pixels into a new raster whose spacing is stretched by sqrt(2). We will therefore see a symmetric structure of varying gray values between zero and one, and that is wider than one pixel. Remember that we're rotating images, not matrices. Convince me that the code is wrong by presenting a correct result, and I'll see into fixing it. Cheers, Justus Jeff Orchard <jor...@cs...> wrote on Sat, 19 Feb 2005 14:55:39 -0500: > I'm not sure the bilinear option is working. > imrotate(eye(13),45,"bilinear") > and > imrotate(eye(13),40,"bilinear") Paul Kienzle <pki...@us...> wrote on Sat, 19 Feb 2005 15:47:00 -0500: > Yes, imrotate seems to be broken for all of bilinear, bicubic > and nearest. As Todd pointed out, 'nearest' is particularly > glaring. --=20 Justus H. Piater, Ph.D. http://www.montefiore.ulg.ac.be/~piater/ Institut Montefiore, B28 Phone: +32-4-366-2279 Universit=E9 de Li=E8ge, Belgium Fax: +32-4-366-2620 |