Reading a .mat file in C++

1 visualización (últimos 30 días)
Shiv
Shiv el 6 de Sept. de 2014
Comentada: Yezheng Li el 17 de Feb. de 2016
Hi Everyone!
I have a .mat file that consists of pixels of an image. I want to read them and display it using a C++ IDE, say Visual Studio. How do I go about doing this? I am a newbie to Matlab and I have no clue how to use that file. Thanks in advance.

Respuestas (1)

Ken Atwell
Ken Atwell el 6 de Sept. de 2014
You're looking for the MAT-File API.
  1 comentario
Yezheng Li
Yezheng Li el 17 de Feb. de 2016
I know about MAT-File API. However, when I am including "mat.h" by linking to (MATLAB_DIR)/extern/include, I get the problem: undefined reference "matOpen".
How can I fixed it? I try to use google to find the answer but failed1!!

Iniciar sesión para comentar.

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by