ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CV/CV.xs
(Generate patch)

Comparing CV/CV.xs (file contents):
Revision 1.36 by root, Thu Jun 22 20:50:05 2006 UTC vs.
Revision 1.38 by root, Thu Jun 22 22:06:00 2006 UTC

118 return; 118 return;
119 119
120 f->v2 /= f->n; 120 f->v2 /= f->n;
121 f->v3 /= f->n; 121 f->v3 /= f->n;
122 122
123 // this is a peculiar weightung, but it works fine
124 f->v1 /= 255.; 123 f->v1 /= 255.;
125 f->v2 /= 128. * 128.; 124 f->v2 /= 255. * 255.; f->v2 = sqrtf (f->v2);
126 f->v3 /= 128. * 128. * 64.; 125 f->v3 /= 255. * 255. * 255.; f->v3 = powf (fabsf (f->v3), 1./3.);
127} 126}
128 127
129static guint32 a85_val; 128static guint32 a85_val;
130static guint a85_cnt; 129static guint a85_cnt;
131static guchar a85_buf[LINELENGTH], *a85_ptr; 130static guchar a85_buf[LINELENGTH], *a85_ptr;
712 feature_finish_pass_2 (&f_v); 711 feature_finish_pass_2 (&f_v);
713 } 712 }
714 713
715 hist [0] = f_h.v1 * 2.; hist [1] = f_h.v2 * 2.; hist [2] = f_h.v3 * 2.; 714 hist [0] = f_h.v1 * 2.; hist [1] = f_h.v2 * 2.; hist [2] = f_h.v3 * 2.;
716 hist [3] = f_s.v1 ; hist [4] = f_s.v2 ; hist [5] = f_s.v3 ; 715 hist [3] = f_s.v1 ; hist [4] = f_s.v2 ; hist [5] = f_s.v3 ;
717 hist [6] = f_v.v1 ; hist [7] = f_v.v2 ; hist [8] = f_v.v3 ; 716 hist [6] = f_v.v1 * .5; hist [7] = f_v.v2 * .5; hist [8] = f_v.v3 * .5;
718 717
719 av_push (result, histsv); 718 av_push (result, histsv);
720 } 719 }
721 720
722 RETVAL = newRV_noinc ((SV *)result); 721 RETVAL = newRV_noinc ((SV *)result);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines