binary to test mat to array conversion