convenience method that can decode a data matrix code represented as a 2d array of booleans . `` true '' is taken to mean a black module . concode_field_sep ReedSolomonDecoder rsDecoder concode_field_sep void correctErrors
DecoderResult function ( boolean [ ] [ ] arg0 ) { int loc0 = arg0 . length ; BitMatrix loc1 = new BitMatrix ( loc0 ) ; for ( int loc2 = 0 ; loc2 < loc0 ; loc2 ++ ) { for ( int loc3 = 0 ; loc3 < loc0 ; loc3 ++ ) { if ( arg0 [ loc2 ] [ loc3 ] ) { loc1 . set ( loc3 , loc2 ) ; } } } return decode ( loc1 ) ; }