Changeset 402 for trunk/SRC/Documentation/idldoc_assistant_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_assistant_output/Interpolation/square2quadrilateral.html
r363 r402 64 64 warm (or map) a unit square onto an arbitrary quadrilateral 65 65 according to the 4-point correspondences: 66 (0,0) -> (x0,y0) 67 (1,0) -> (x1,y1) 68 (1,1) -> (x2,y2) 69 (0,1) -> (x3,y3) 66 - (0,0) -> (x0,y0) 67 - (1,0) -> (x1,y1) 68 - (1,1) -> (x2,y2) 69 - (0,1) -> (x3,y3) 70 70 71 The mapping is done using perspective transformation which preserve 71 72 lines in all orientations and permit quadrilateral to quadrilateral … … 284 285 <h3>Examples</h3><pre> 285 286 286 IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1287 IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20288 IDL> xin = (findgen(11)*.1)#replicate(1, 11)289 IDL> yin = replicate(1, 11)#(findgen(11)*.1)290 IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin)291 IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20287 IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1 288 IDL> tracegrille, findgen(11)*.1, findgen(11)*.1,color=indgen(12)*20 289 IDL> xin = (findgen(11)*.1)#replicate(1, 11) 290 IDL> yin = replicate(1, 11)#(findgen(11)*.1) 291 IDL> out = square2quadrilateral(2,1,3,0,5,1,2,3, xin, yin) 292 IDL> tracegrille, reform(out[0,*],11,11), reform(out[1,*],11,11),color=indgen(12)*20 292 293 293 294 </pre><h3>Version history</h3> 294 295 295 296 <h4>Version</h4> 296 $Id: square2quadrilateral.pro 3 58 2008-04-28 09:41:14Z pinsard $297 $Id: square2quadrilateral.pro 372 2008-08-08 12:31:53Z pinsard $ 297 298 298 299 <h4>History</h4> 299 Sebastien Masson (smasson@lodyc.jussieu.fr) 300 August 2003 301 Based on "Digital Image Warping" by G. Wolberg 302 IEEE Computer Society Press, Los Alamitos, California 303 Chapter 3, see p 52-56 304 300 Sebastien Masson (smasson@lodyc.jussieu.fr) 301 - August 2003 302 Based on "Digital Image Warping" by G. Wolberg 303 IEEE Computer Society Press, Los Alamitos, California 304 Chapter 3, see p 52-56 305 305 306 306
Note: See TracChangeset
for help on using the changeset viewer.