[Insight-users] How to read .Mat File using ITK + C++

Humayun Irshad humayun.irshad at gmail.com
Wed Dec 8 06:30:30 EST 2010


Dear Ghassan Hamarneh,

I got nothing from that link. My code from .mat file readingis here:

#include "mat.h"

int main(int argc, char **argv)
{
     MATFile *pmat;
     mxArray *pa;
     pmat = matOpen("1.mat", "r");
     if (pmat == NULL) {
          printf("Error opening file\n");
          return(1);
     }
     return 0;
}

when i compiled and build this code then following error come

error LNK2019: unresolved external symbol _matOpen referenced in function
_main

Can any body help me who can i read .mat file in ITK + C++. please help me

On Wed, Dec 8, 2010 at 6:45 PM, Ghassan Hamarneh <hamarneh at gmail.com> wrote:

> Hope this helps:
> http://www.itk.org/pipermail/insight-users/2007-November/024337.html   /g
>
>
> On 2010-12-08, at 6:03 AM, Humayun Irshad wrote:
>
> > Dear all,
> >
> > I am new user of ITK. I am trying to read a .MAT file in ITK + C++. But
> unable to read it. Can you any guide me and send me the code of reading .Mat
> file.
> > There is structure in .Mat File that i want to read.
> >
> > --
> > --
> > Best Regards,
> >
> > Humayun Irshad
> >
> > Pakistan
> >
> > Cell: +92-333-6128780
> >
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.html
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-users
>
>


-- 
-- 
Best Regards,

Humayun Irshad

Pakistan

Cell: +92-333-6128780
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101208/8864f560/attachment.htm>


More information about the Insight-users mailing list