Hi Vahid,

use the mitk::MakePixelType template function to create an mitk::PixelType. See 
Modules/Core/test/mitkPixelTypeTest.cpp for examples.

Best regards,
Stefan
________________________________________
Von: Marco Dev [[email protected]]
Gesendet: Dienstag, 18. August 2015 07:50
An: [email protected]
Betreff: [mitk-users] mitk pixelType

Hi,
I have a problem about definition mitk pixel type i tried more but i think not 
reasonable the  code line is follow bellow:

  unsigned int dim[]={10,10,20}; // image dimensions

      image->Initialize(mitk::PixelType(typeid(int)), 3, dim);

also :


 const std::type_info& ti = typeid(int);

 mitk::PixelType m_P(ti);


error :  error: no matching function for call to 
'mitk::PixelType::PixelType(const std::type_info&)'
       image->Initialize(mitk::PixelType(typeid(int)), 3, dim);
                                                    ^
why it brings error ??
Thanks
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to