public void setDepthsFrom3D ( int view , List < Point3D_F64 > locations ) { if ( locations . size ( ) != pixels . numCols ) throw new IllegalArgumentException ( "Pixel count must be constant and match " + pixels . numCols ) ; int N = depths . numCols ; for ( int i = 0 ; i < N ; i ++ ) { depths . set ( view , i , locations . get ( i ) . z ) ; } }
Assigns depth to the z value of all the features in the list . Features must be in the coordinate system of the view for this to be correct