The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: is there any fast image/matrix flip, diagonal flip commands in matlab?
Replies: 5   Last Post: May 6, 2013 3:59 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 340
Registered: 12/7/04
Re: is there any fast image/matrix flip, diagonal flip commands in matlab?
Posted: May 5, 2003 10:57 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear Peter,

That's great! Thanks a lot,


"Peter J. Acklam" <> ??????
> "walala" <> wrote:

> > I hope to have image/matrix flip command in matlab. But for
> > diagonal flip, my problem is that my image is RGB format, so it
> > is a Height x Width x 3 3D matrix, 3D matrix cannot be
> > diagonally rotated by using A' (A is a 2D matrix) ...

> What do you mean by "diagonally rotated" -- do you mean
> "tranposed"? If you want to tranpose the array, you probably want
> permute(x, [2, 1, 3])
> which is the 3D special case of the ND-case
> permute(x, [2, 1, 3:ndims(x)])
> Peter
> --
> I wish dialog boxes had a button saying "Whatever". I hate being
> forced to answer "Yes" or "No" to a question I have no opinion on
> whatsoever. There ought to be a button matching my indifference.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.