MATLAB Answers

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

4 views (last 30 days)
Marco Pillon
Marco Pillon on 29 Apr 2021
Commented: Marco Pillon on 10 May 2021
How to import a .uint16 file as grayscale image (or matrix) into MATLAB?
Thank you

Answers (1)

Sindhu Karri
Sindhu Karri on 3 May 2021
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 Comments
Marco Pillon
Marco Pillon on 10 May 2021
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

Sign in to comment.

Categories

Tags

Community Treasure Hunt

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

Start Hunting!