how to read complex image in matlab?

6 views (last 30 days)
Pritam Banerjee
Pritam Banerjee on 11 Feb 2020
Commented: Iron1759 on 2 Feb 2021
I have a complex image, where each pixel of the image contains a complex number. The complex image is in ".img" format. I want to read the complex values stored in each pixel of the complex image. Please suggest code for extracting the complex values form the complex image.
Thank you
  2 Comments
Iron1759
Iron1759 on 2 Feb 2021
It does solve the problem of for instance showing FFT image.
However, how do you work with this image from that point? i.e. to which type it can be categorised?
Thanks.

Sign in to comment.

Answers (1)

Raunak Gupta
Raunak Gupta on 17 Feb 2020
Hi,
Specifically reading a ‘.img file is not supported in imread so for reading ‘.img’ you may use fopen and fread. There is a similar answer which may be helpful to you if header file for corresponding ‘.img’ file is not available.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!