// just for visualization - no there can be several measured layers and same tile can be used multiple times. Will just logical or
boolean[]plane_sel=null;// tile selection - has twice supertile size in each direction
double[]zxy=null;// [3] - plane center point {disparity, x, y), x=0, y=0 is a 4,4 point of an 8x8 supertile (in pixels, relative to this supertile center)
double[][]vectors=null;// [3][3] - re-ordered/re-directed eigenvectors(transposed): [0] - plane normal, most Z-like, towards camera, [1] - X-like, [2] - Y-like
...
...
@@ -70,6 +71,16 @@ public class TilePlanes {
intsuperTileSize;
int[]sTileXY=null;// X and Y indices of this superTile in the image
MeasuredLayersmeasuredLayers=null;
boolean[][]measuredSelection=null;// [number of layers in measuredLayers][2*superTileSize * 2*superTileSize]
doublemeasured_strength_pow=1.0;
doublestrength_floor=0.0;
doublemin_weight=0.0;// minimal weight of the ellipsoid
intmin_tiles=10;
doubledispNorm=5.0;// Normalize disparities to the average if above
booleanpreferDisparity=false;
publicPlaneDataclone(){
PlaneDatapd=newPlaneData(
this.sTileXY,
...
...
@@ -92,18 +103,25 @@ public class TilePlanes {
pd.vectors[1]=this.vectors[1].clone();
pd.vectors[2]=this.vectors[2].clone();
}
copyNeib(this,pd);
/*
if (this.merged_eig_val != null){
pd.merged_eig_val = this.merged_eig_val.clone();
for (int i = 0; i<this.merged_eig_val.length; i++){