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

Linux Cross Reference
Tina4/src/math/image/imget.c

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

  1 /**@(#)Obtain general image raster
  2  */
  3 
  4 #include <stdio.h>
  5 #include <tina/sys.h>
  6 #include <tina/sysfuncs.h>
  7 #include <tina/math.h>
  8 #include <tina/mathfuncs.h>
  9 
 10 void    im_get_interp_rast(float *line, Imrect * image, Vec2 p, Vec2 v, int n1, int n2, double ds)
 11 
 12 
 13 /* define point and direction of interpolation */
 14 /* relative coodinates (0 is the point p) */
 15 /* step */
 16 {
 17     int     i;
 18     Vec2    pi = {Vec2_id};
 19 
 20     if (image == NULL)
 21         return;
 22 
 23     for (i = n1; i < n2; ++i)
 24     {
 25         pi = vec2_sum(p, vec2_times(i * ds, v));
 26         line[i] = im_sub_pixf(image, vec2_y(pi), vec2_x(pi));
 27     }
 28 }
 29 

~ [ 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.