public void setPixels ( int view , List < Point2D_F64 > pixelsInView ) { if ( pixelsInView . size ( ) != pixels . numCols ) throw new IllegalArgumentException ( "Pixel count must be constant and match " + pixels . numCols ) ; int row = view * 2 ; for ( int i = 0 ; i < pixelsInView . size ( ) ; i ++ ) { Point2D_F64 p = pixelsInView . get ( i ) ; pixels . set ( row , i , p . x ) ; pixels . set ( row + 1 , i , p . y ) ; pixelScale = Math . max ( Math . abs ( p . x ) , Math . abs ( p . y ) ) ; } }
Sets pixel observations for a paricular view