The problem is that numpy doesn't read in 24-bit integers from file. The only way to deal with this is to read them bitwise and reconstruct it. If you have a better solution, I would gladly implement it.