Changeset 402 for trunk/SRC/Documentation/idldoc_html_output/Interpolation/square2quadrilateral.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/square2quadrilateral.html
r363 r402 90 90 warm (or map) a unit square onto an arbitrary quadrilateral 91 91 according to the 4-point correspondences: 92 (0,0) -> (x0,y0) 93 (1,0) -> (x1,y1) 94 (1,1) -> (x2,y2) 95 (0,1) -> (x3,y3) 92 - (0,0) -> (x0,y0) 93 - (1,0) -> (x1,y1) 94 - (1,1) -> (x2,y2) 95 - (0,1) -> (x3,y3) 96 96 97 The mapping is done using perspective transformation which preserve 97 98 lines in all orientations and permit quadrilateral to quadrilateral … … 300 301 <h3>Examples</h3><div class="preformat"> 301 302 302 IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1303 IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20304 IDL> xin = (findgen(11)*.1)#replicate(1, 11)305 IDL> yin = replicate(1, 11)#(findgen(11)*.1)306 IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin)307 IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20303 IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1 304 IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20 305 IDL> xin = (findgen(11)*.1)#replicate(1, 11) 306 IDL> yin = replicate(1, 11)#(findgen(11)*.1) 307 IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin) 308 IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20 308 309 </div> 309 310 <h3>Version history</h3> 310 311 311 312 <h4>Version</h4><div class="preformat"> 312 $Id: square2quadrilateral.pro 3 58 2008-04-28 09:41:14Z pinsard $313 $Id: square2quadrilateral.pro 372 2008-08-08 12:31:53Z pinsard $ 313 314 </div> 314 315 <h4>History</h4><div class="preformat"> 315 Sebastien Masson (smasson@lodyc.jussieu.fr) 316 August 2003 317 Based on "Digital Image Warping" by G. Wolberg 318 IEEE Computer Society Press, Los Alamitos, California 319 Chapter 3, see p 52-56 320 316 Sebastien Masson (smasson@lodyc.jussieu.fr) 317 - August 2003 318 Based on "Digital Image Warping" by G. Wolberg 319 IEEE Computer Society Press, Los Alamitos, California 320 Chapter 3, see p 52-56 321 321 </div> 322 322
Note: See TracChangeset
for help on using the changeset viewer.