Re: How do I mirror a image vertically?
- From: "Nasser Abbasi" <nma@xxxxxxxxx>
- Date: Sat, 31 Mar 2007 01:45:03 -0700
"akira32.comp.soft-sys.matlab" <rikcuo32@xxxxxxxxxxxx> wrote in message
news:1175325895.804240.53570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How do I mirror a image vertically?
Why not generate a 2D transformation matrix A, and apply that on the image?
A=[0 -1;1 0] will reflect points using the x-axis as the 'mirror' side,
where the x-axis in this case is horizontal straight line though your image
half way in between.
If you want to flip the image using its top edge as the mirror, then
assuming the origin is at the lower left corner of the image, then replace
(x,y) by (x,h-y), where h is the height of the image.
I did not try it, but I think this should work :)
Nasser
.
- References:
- How do I mirror a image vertically?
- From: akira32.comp.soft-sys.matlab
- How do I mirror a image vertically?
- Prev by Date: Re: solving an equation
- Next by Date: Re: How to define variables in the symbolic toolbox
- Previous by thread: How do I mirror a image vertically?
- Next by thread: How to define variables in the symbolic toolbox
- Index(es):
Relevant Pages
|