Changeset 402 for trunk/SRC/Documentation/idldoc_html_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_html_output/Interpolation/quadrilateral2square.html
r363 r402 90 90 warm (or map) an arbitrary quadrilateral onto a unit square 91 91 according to the 4-point correspondences: 92 (x0,y0) -> (0,0) 93 (x1,y1) -> (1,0) 94 (x2,y2) -> (1,1) 95 (x3,y3) -> (0,1) 92 - (x0,y0) -> (0,0) 93 - (x1,y1) -> (1,0) 94 - (x2,y2) -> (1,1) 95 - (x3,y3) -> (0,1) 96 96 97 This is the inverse function of <a href="..//Interpolation/square2quadrilateral.html">square2quadrilateral</a>. 97 98 … … 317 318 <h3>Examples</h3><div class="preformat"> 318 319 319 IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1320 IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20321 IDL> xin = (findgen(11)*.1)#replicate(1, 11)322 IDL> yin = replicate(1, 11)#(findgen(11)*.1)323 IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin)324 IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20325 326 IDL> inorg=quadrilateral2square(2,1,3,0,5,1,2,3,out[0,*],out[1,*])327 IDL> tracegrille, reform(inorg[0,*],11,11), reform(inorg[1,*],11,11),color=indgen(12)*20320 IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1 321 IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20 322 IDL> xin = (findgen(11)*.1)#replicate(1, 11) 323 IDL> yin = replicate(1, 11)#(findgen(11)*.1) 324 IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin) 325 IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20 326 327 IDL> inorg=quadrilateral2square(2,1,3,0,5,1,2,3,out[0,*],out[1,*]) 328 IDL> tracegrille, reform(inorg[0,*],11,11), reform(inorg[1,*],11,11),color=indgen(12)*20 328 329 </div> 329 330 <h3>Version history</h3> 330 331 331 332 <h4>Version</h4><div class="preformat"> 332 $Id: quadrilateral2square.pro 3 58 2008-04-28 09:41:14Z pinsard $333 $Id: quadrilateral2square.pro 372 2008-08-08 12:31:53Z pinsard $ 333 334 </div> 334 335 <h4>History</h4><div class="preformat">
Note: See TracChangeset
for help on using the changeset viewer.