MATLAB Answers

How to import a .uint16 file as matrix / image into MATLAB?

조회 수: 1(최근 30일)
Marco Pillon
Marco Pillon 2021년 4월 29일
댓글: Marco Pillon 2021년 5월 10일
How to import a .uint16 file as grayscale image (or matrix) into MATLAB?
Thank you

답변(1개)

Sindhu Karri
Sindhu Karri 2021년 5월 3일
Hii,
You can use imread function to read image file and store them as an array variable.Use rgb2gray function to convert RGB image or colormap to grayscale.
  댓글 수: 3
Marco Pillon
Marco Pillon 2021년 5월 10일
I confirm that with the command fread (), with the right size, the file is correctly read.
The idea on the hex editor is interesting.
Thank you

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by