public ImageSource toFastBitmap ( ) { OneBandSource l = new OneBandSource ( width , height ) ; PowerSpectrum ( ) ; double max = Math . log ( PowerMax + 1.0 ) ; double scale = 1.0 ; if ( scaleValue > 0 ) scale = scaleValue / max ; for ( int i = 0 ; i < height ; i ++ ) { for ( int j = 0 ; j < width ; j ++ ) { double p = Power [ i ] [ j ] ; double plog = Math . log ( p + 1.0 ) ; l . setRGB ( i , j , ( int ) ( plog * scale * 255 ) ) ; } } return l ; }
Convert image s data to FastBitmap .