MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Rotating an Image

  • To: mathgroup at
  • Subject: [mg104348] Rotating an Image
  • From: "Ernst H.K. Stelzer" <stelzer at>
  • Date: Wed, 28 Oct 2009 04:09:37 -0500 (EST)
  • References: <hc38kb$i9r$> <>


I need to rotate an image, i.e. a 2D Matrix, about an arbitrary angle.
I would like to maintain the image size.
I would like to have full control over the interpolation process.

I know about ImageRotate.  ImageRotate is really fast, but it is not very
well documented and in particular its Methods are not described at all.
Maintaining the image size could be accomplished by a subsequent application
of ImageRotate and ImageCrop but this does not settle the interpolation

The function in the Digital Image Processing package is not an option since
it is not really well supported in version 7 but it comes very close to what
I need.

I have an implementation in Mathematica but it is dreadfully slow,
therefore, I wonder if somebody has generated an efficient implementation I
could take advantage of or is aware of a Mathematica function I have

In the long term I am actually interested in rotating a 3D volume/matrix
around an arbitrary axis by an arbitrary angle.  Such functions exist for
graphics objects but not for image/volume/matrix data.  Or am I wrong?


	E. Stelzer

  • Prev by Date: plotting with dotted lines, not dashed
  • Next by Date: How to find the kinks in a list
  • Previous by thread: Re: Calculating a given total using only given specific values tia sal22
  • Next by thread: Re: Rotating an Image