How to import a .uint16 file as matrix / image into MATLAB?
조회 수: 6 (최근 30일)
이전 댓글 표시
How to import a .uint16 file as grayscale image (or matrix) into MATLAB?
Thank you
댓글 수: 0
답변 (1개)
Sindhu Karri
2021년 5월 3일
댓글 수: 3
DGM
2021년 5월 6일
편집: DGM
2021년 5월 6일
Do you know what format the file is in? The only thing that the extension implies is that it's 16 bit unsigned integer. It doesn't say anything about it having any format.
I'm inclined to assume it's just raw data, in which case you can probably just treat it like any .bin file and read it with fread(). You'll need to know its geometry in order to get anything useful out of it.
If you know what you're looking for, you might be able to peek at it with a hex editor to see if there's anything revealing in the beginning of the file.
If the file isn't confidential (or huge), you may consider attaching it.
참고 항목
카테고리
Help Center 및 File Exchange에서 Performance and Memory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!