[Insight-users] check codes

shirani kannangara mangalika673 at gmail.com
Tue Feb 12 02:26:34 EST 2013


Dear BIll

Can I get dimensions(pixels) along x,y,z directions using the array

std::vector< SizeValueType > m_Dimensions();

If can please direct me to write codes.
I wrote some codes as follows.

std::vector< SizeValueType > m_Dimensions();
std::vector<SizeValueType> m_Dimensions= imageIO->GetDimensions(unsigned
int(i,j,k));
std::cout<<"Dimensions:"  << Dimensions<<std:: endl;

But there are some errors.


1>------ Build started: Project: ReadUnknownImageType, Configuration: Debug
Win32 ------
1>Compiling...
1>ReadUnknownImageType.cxx
1>.\ReadUnknownImageType.cxx(38) : error C2923: 'std::vector' :
'SizeValueType' is not a valid template type argument for parameter '_Ty'
1>        .\ReadUnknownImageType.cxx(17) : see declaration of
'SizeValueType'
1>.\ReadUnknownImageType.cxx(38) : error C2564: 'unsigned int' : a
function-style conversion to a built-in type can only take one argument
1>Build log was saved at
"file://d:\ReadUnknownImageType\ReadUnknownImageType.dir\Debug\BuildLog.htm"
1>ReadUnknownImageType - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

Thanks a lo
Shiranit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130212/6d325391/attachment.htm>


More information about the Insight-users mailing list