Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

read binary image python

import numpy as np
from matplotlib import pylab as plt

A = np.fromfile(filename, dtype='int16', sep="")
A = A.reshape([1024, 1024])
plt.imshow(A)
Comment

PREVIOUS NEXT
Code Example
Python :: nn.dropout 
Python :: python multiline string 
Python :: how to use csv in python 
Python :: python get memory address 
Python :: python for loop array index 
Python :: python pynput space 
Python :: contains duplicate in python 
Python :: beautiful soup documentation 
Python :: for i in a for j in a loop python 
Python :: datetime strptime format 
Python :: pandas iterate rows 
Python :: datetime date from string 
Python :: std python 
Python :: How to do train test split in keras Imagedatagenerator 
Python :: python random liste 
Python :: python lock using a file 
Python :: copy directory from one location to another python 
Python :: python tkinter colored line 
Python :: snakeCase 
Python :: python logging into two different files 
Python :: python how to replace a certain string in text 
Python :: add one day to datetime 
Python :: python max key dictionary key getter 
Python :: how to remove all 2 in a list python 
Python :: count list python 
Python :: models. type for phone number in django 
Python :: iter() python 
Python :: date-fns difference in days 
Python :: python expressions 
Python :: python regex inside quotes 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =