~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/vision/line2/line2_rect.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /**@(#)
  2 **/
  3 #include <stdio.h>
  4 #include <tina/sys.h>
  5 #include <tina/sysfuncs.h>
  6 #include <tina/math.h>
  7 #include <tina/mathfuncs.h>
  8 #include <tina/vision.h>
  9 #include <tina/visionfuncs.h>
 10 
 11 /**
 12 projective transformation of line
 13 **/
 14 
 15 Line2  *line2_rectify(Line2 * line, Mat3 rect)
 16 {
 17     Line2  *new;
 18 
 19     new = line2_make(vec2_rectify(rect, line->p1),
 20                      vec2_rectify(rect, line->p2),
 21                      line->type);
 22 
 23     return (new);
 24 }
 25 
 26 Line2  *line2_proj(Line2 * line, Mat3 proj)
 27 {
 28     Line2  *new;
 29 
 30     new = line2_make(vec2_rectify(proj, line->p1),
 31                      vec2_rectify(proj, line->p2),
 32                      line->type);
 33 
 34     return (new);
 35 }
 36 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.