Re: rotation by 90 in only one buffer



On 24 Nov 2005 02:43:50 -0800, "Nishu" <naresh_earth@xxxxxxxxx> wrote:

>what could be the BEST Memory Optimal way of rotating an image or
>matrix by 90 degrees using input buffer only? i.e. Input buffer only is
>the output memory buffer. so that we have parameters as (inputbuffer,
>width, height of 2D array)
>
>Say, we can use small amount of memory location for temporary storage
>of any block/blocks in the image/array but not the whole of
>image/array.

Can you allocate extra vector of size Max(M,N)? Then it's easy, just
alternatively swap rows and columns in and out of this temporary
vector.

.



Relevant Pages

  • Re: image rotation
    ... Input buffer only is the output ... > memory buffer. ... An image rotation by 90 degrees is the composition of a flip on the image ...
    (comp.compression)
  • Re: 90 Rotation in one buffer only
    ... Naresh wrote: ... > Hii All, ... Input buffer only is the output ... > memory buffer. ...
    (sci.image.processing)
  • image rotation
    ... Input buffer only is the output ... memory buffer. ... Prev by Date: ...
    (comp.compression)
  • Re: rotation by 90 in only one buffer
    ... > matrix by 90 degrees using input buffer only? ... > the output memory buffer. ... > of any block/blocks in the image/array but not the whole of ... Unfortunately the link to P.F. Windley's article "Transposing Matrices ...
    (comp.graphics.algorithms)
  • Re: rotation by 90 in only one buffer
    ... >>matrix by 90 degrees using input buffer only? ... Input buffer only is ... >>the output memory buffer. ... > Can you allocate extra vector of size Max? ...
    (comp.graphics.algorithms)