Changeset 402 for trunk/SRC/Documentation/idldoc_assistant_output/Interpolation/quadrilateral2square.html
- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_assistant_output/Interpolation/quadrilateral2square.html
r363 r402 64 64 warm (or map) an arbitrary quadrilateral onto a unit square 65 65 according to the 4-point correspondences: 66 (x0,y0) -> (0,0) 67 (x1,y1) -> (1,0) 68 (x2,y2) -> (1,1) 69 (x3,y3) -> (0,1) 66 - (x0,y0) -> (0,0) 67 - (x1,y1) -> (1,0) 68 - (x2,y2) -> (1,1) 69 - (x3,y3) -> (0,1) 70 70 71 This is the inverse function of <a href="..//Interpolation/square2quadrilateral.html">square2quadrilateral</a>. 71 72 … … 302 303 <h3>Examples</h3><pre> 303 304 304 IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1305 IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20306 IDL> xin = (findgen(11)*.1)#replicate(1, 11)307 IDL> yin = replicate(1, 11)#(findgen(11)*.1)308 IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin)309 IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20310 311 IDL> inorg=quadrilateral2square(2,1,3,0,5,1,2,3,out[0,*],out[1,*])312 IDL> tracegrille, reform(inorg[0,*],11,11), reform(inorg[1,*],11,11),color=indgen(12)*20305 IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1 306 IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20 307 IDL> xin = (findgen(11)*.1)#replicate(1, 11) 308 IDL> yin = replicate(1, 11)#(findgen(11)*.1) 309 IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin) 310 IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20 311 312 IDL> inorg=quadrilateral2square(2,1,3,0,5,1,2,3,out[0,*],out[1,*]) 313 IDL> tracegrille, reform(inorg[0,*],11,11), reform(inorg[1,*],11,11),color=indgen(12)*20 313 314 314 315 </pre><h3>Version history</h3> 315 316 316 317 <h4>Version</h4> 317 $Id: quadrilateral2square.pro 3 58 2008-04-28 09:41:14Z pinsard $318 $Id: quadrilateral2square.pro 372 2008-08-08 12:31:53Z pinsard $ 318 319 319 320 <h4>History</h4>
Note: See TracChangeset
for help on using the changeset viewer.