Re: 90 Rotation in one buffer only



Naresh wrote:
> Hii All,
> 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.
>
> Say, we can use small amount of memory locations (say 30-40 bytes extra
> considering 1 pixel/byte) for temporary storage of any block/blocks in
> the image but not the whole of image.

As said, its not so easy done with rectangular Pictures.
There is no simple solution with just a tmp buffer because it
depends on the relation of width and height how often the
loop P[x,y]=P[x',y'] will be closed and a new loop starts.
The Problem is how to find the new starting point without
marking all changed Pixels.
Maybe there is a mathematical tricky way like fft transform,
i just dont know it.

Greets
Jens


.



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: 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 ... Can you allocate extra vector of size Max? ...
    (comp.graphics.algorithms)
  • 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: Dell model DHM wont boot
    ... Did you try replacing the memory? ...  Or trying to boot with only one stick ...
    (alt.comp.hardware.pc-homebuilt)