// double px = tileSize*(superTileSize * sTileXY[0] + superTileSize/2) + zxy[1]; // [3] - plane point {disparity, x, y), x=0, y=0 is a 4,4 point of an 8x8 supertile
// double px = tileSize*(superTileSize * sTileXY[0] + superTileSize/2) + zxy[1]; // [3] - plane point {disparity, x, y), x=0, y=0 is a 4,4 point of an 8x8 supertile
...
@@ -798,8 +893,9 @@ public class TilePlanes {
...
@@ -798,8 +893,9 @@ public class TilePlanes {
numPoints++;
numPoints++;
doublew=weight[indx];
doublew=weight[indx];
doubled=data[indx];
doubled=data[indx];
intx=((indx%stSize2)-stSize)*tileSize;// in pixels, not in tiles
// referencing samples to centers of pixels
inty=((indx/stSize2)-stSize)*tileSize;
doublex=((indx%stSize2)-stSize+0.5)*tileSize+0.5;// in pixels, not in tiles