카테고리 없음
파이썬, 로우데이터 파일 읽기
반석너구리
2021. 1. 4. 14:56
개요
2byte word 바이너리 로우데이터를 읽는 방법에 대한 메모
내용
import numpy as np
read_size = width * height
with open(file_name, 'rb') as f :
rawData = np.fromfile(f, dtype=np.uint16, count=read_size)
rawData = rawData.reshape(height, -1)