Changeset 101 for trunk/SRC/Interpolation/quadrilateral2square.pro
- Timestamp:
- 06/12/06 10:29:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/quadrilateral2square.pro
r59 r101 1 1 ;+ 2 ; NAME:quadrilateral2square3 2 ; 4 ; PURPOSE:warm (or map) an arbitrary quadrilateral onto a unit square3 ; @file_comments warm (or map) an arbitrary quadrilateral onto a unit square 5 4 ; according to the 4-point correspondences: 6 5 ; (x0,y0) -> (0,0) … … 13 12 ; mappings. see ref. bellow. 14 13 ; 15 ; CATEGORY:image/grid manipulation14 ; @categories image, grid manipulation 16 15 ; 17 ; CALLING SEQUENCE:16 ; @examples 18 17 ; 19 18 ; res = square2quadrilateral(x0,y0,x1,y1,x2,y2,x3,y3,xin,yin) 20 19 ; 21 ; INPUTS: 22 ; 23 ; x0,y0,x1,y1,x2,y2,x3,y3 the coordinates of the quadrilateral 20 ; @param x0in {in}{required} the coordinates of the quadrilateral 21 ; @param y0in {in}{required} the coordinates of the quadrilateral 22 ; @param x1in {in}{required} the coordinates of the quadrilateral 23 ; @param y1in {in}{required} the coordinates of the quadrilateral 24 ; @param x2in {in}{required} the coordinates of the quadrilateral 25 ; @param y2in {in}{required} the coordinates of the quadrilateral 26 ; @param x3in {in}{required} the coordinates of the quadrilateral 27 ; @param y3in {in}{required} the coordinates of the quadrilateral 24 28 ; (see above for correspondance with the unit square). Can be 25 29 ; scalar or array. (x0,y0), (x1,y1), (x2,y2) and (x3,y3) are 26 30 ; given in the anticlockwise order. 27 31 ; 28 ; xin,yin:the coordinates of the point(s) for which we want to do the 32 ; @param xxin {in}{required} the coordinates of the point(s) for which we want to do the 33 ; mapping. Can be scalar or array. 34 ; @param yyin {in}{required} the coordinates of the point(s) for which we want to do the 29 35 ; mapping. Can be scalar or array. 30 36 ; 31 ; KEYWORD PARAMETERS: 32 ; 33 ; /DOUBLE: use double precision to perform the computation 34 ; 35 ; OUTPUTS: 37 ; @returns 36 38 ; 37 39 ; (2,n) array: the new coodinates (xout, yout) of the (xin,yin) … … 41 43 ; elements of xin. 42 44 ; 43 ; COMMON BLOCKS:none 44 ; 45 ; SIDE EFFECTS: 46 ; 47 ; RESTRICTIONS: I think degenerated quadrilateral (e.g. flat of 45 ; @restrictions I think degenerated quadrilateral (e.g. flat of 48 46 ; twisted) is not work. This has to be tested. 49 47 ; 50 ; EXAMPLE:48 ; @examples 51 49 ; 52 50 ; IDL> splot,[0,5],[0,3],/nodata,xstyle=1,ystyle=1 … … 60 58 ; IDL> tracegrille, reform(inorg[0,*],11,11), reform(inorg[1,*],11,11),color=indgen(12)*20 61 59 ; 62 ; MODIFICATION HISTORY:63 ; Sebastien Masson (smasson @lodyc.jussieu.fr)60 ; @history 61 ; Sebastien Masson (smasson\@lodyc.jussieu.fr) 64 62 ; August 2003 65 63 ; Based on "Digital Image Warping" by G. Wolberg
Note: See TracChangeset
for help on using the changeset viewer.