null pointer exception fix
better Datamatrix detector

use several scan lines to determine the correct transition count
better sampling by correct rounding