docs: protected static void computeCosineWindow( GrayF64 cosine ) {
  		double cosX[] = new double[ cosine.width ];
  		for( int x = 0; x < cosine.width; x++ ) {
  			cosX[x] = 0.5*(1 - Math.cos( 2.0*Math.PI*x/(cosine.width-1) ));
  		}
  		for( int y = 0; y < cosine.height; y++ ) {
  			int index = cosine.startIndex + y*cosine.stride;
  			double cosY = 0.5*(1 - Math.cos( 2.0*Math.PI*y/(cosine.height-1) ));
  			for( int x = 0; x < cosine.width; x++ ) {
  				cosine.data[index++] = cosX[x]*cosY;
  			}
  		}
  	}