- or download this
for my $y ( 0 .. $HEIGHT-1 ) {
my $s = substr( $$str, $y * $WIDTH, $WIDTH );
...
$b[ $c ][ BOTTOM ] = $y if $y > $b[ $c ][ BOTTOM ];
}
}
- or download this
yr() took 3.484375
buk() took 1.233143
buk2() took 0.670660
buk3() took 0.029448
- or download this
PDL::IO::Image-> new_from_pdl(
pdl([ unpack 'C*', $pdl ])
-> reshape( 1000, 1000 )-> bitnot
)-> save( 'buk.png', 'PNG' );
- or download this
PDL: Short D [7616,1200]
max = 145
...
buk2 2.84 6% -- -32% -87%
regex 1.92 57% 48% -- -81%
buk3 0.362 733% 684% 430% --