Created
September 10, 2020 14:24
-
-
Save sadimanna/988c84cb6c0db40842a02e98484ec1d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nBytesTotal = nImg*nR*nC*1 #since each pixel data is 1 byte | |
| images_array = np.asarray(st.unpack('>'+'B'*nBytesTotal,imagesfile.read(nBytesTotal))).reshape((nImg,nR,nC)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment