topquadrilateral2square
Picture, Grid
Return value
(2,n) array: the new coordinates (xout,yout) of the (xin,yin) point(s) after
mapping.
If xin is a scalar, then n is equal to the number of elements of x0.
If xin is an array, then n is equal to the number of elements of xin.
Parameters
x0in
in
required
y0in
in
required
x1in
in
required
y1in
in
required
x2in
in
required
y2in
in
required
x3in
in
required
y3in
in
required
xxin
in
required
yyin
in
required
Keywords
PERF
type: salar 0 or 1
default: 0
DOUBLE
type: salar 0 or 1
default: 0
Examples
IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1
IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20
IDL> xin = (findgen(11)*.1)#replicate(1, 11)
IDL> yin = replicate(1, 11)#(findgen(11)*.1)
IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin)
IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20
IDL> inorg=quadrilateral2square(2,1,3,0,5,1,2,3,out[0,*],out[1,*])
IDL> tracegrille, reform(inorg[0,*],11,11), reform(inorg[1,*],11,11),color=indgen(12)*20
Version history
Version
$Id: quadrilateral2square.pro 358 2008-04-28 09:41:14Z pinsard $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
August 2003
Based on "Digital Image Warping" by G. Wolberg
IEEE Computer Society Press, Los Alamitos, California
Chapter 3, see p 52-56
Known issues
Restrictions
I think degenerated quadrilateral (e.g. flat of twisted) is not work.
This has to be tested.
Statistics
McCabe cyclic | 8 |
McCabe essential | 1 |
McCabe modular design | 1 |