[xiph-commits] r12393 - trunk/sushivision
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Mon Jan 29 14:37:48 PST 2007
Author: xiphmont
Date: 2007-01-29 14:37:46 -0800 (Mon, 29 Jan 2007)
New Revision: 12393
Modified:
trunk/sushivision/panel-2d.c
Log:
Small biasing fix. Still need to make test example for dicrete;
verify scaling fenceposts/alignment is correct.
Modified: trunk/sushivision/panel-2d.c
===================================================================
--- trunk/sushivision/panel-2d.c 2007-01-29 22:26:31 UTC (rev 12392)
+++ trunk/sushivision/panel-2d.c 2007-01-29 22:37:46 UTC (rev 12393)
@@ -193,7 +193,7 @@
if(pw != dw){
/* resampled computation */
float scaledel = scalespace_scaledel(&datax,&panelx);
- float outdel = scalespace_pixel(&panelx,scalespace_value(&datax,0));
+ float outdel = scalespace_pixel(&panelx,scalespace_value(&datax,-.5))+.5;
int outbin = floor(outdel);
outdel -= outbin;
@@ -338,7 +338,7 @@
/* this is a resampling population */
float scaledel = scalespace_scaledel(&datay,&panely);
- float outdel = ph-scalespace_pixel(&panely,scalespace_value(&datay,dh-y));
+ float outdel = ph-scalespace_pixel(&panely,scalespace_value(&datay,dh-(y+.5)))+.5;
int outbin = floor(outdel);
float outdel2 = (outdel-outbin) + scaledel;
outdel -= outbin;
More information about the commits
mailing list