[Insight-users] error: 'ltoa' is not a member of 'std'! how to
convert Long to String to change Dicom Header?
charfeddine amir
charfeddine_amir at yahoo.fr
Tue Feb 21 04:08:26 EST 2006
Hi all,
How could i change some header field before saving the Dicom Image, when i have Long value, and it should be String type.
i try to convert it with ltoa function but it produce error :
error: 'ltoa' is not a member of 'std'
this is the code where error occurs :
DictionaryType & dictionary = m_DiasstoledImage->GetMetaDataDictionary();
std::string entryId( Dist );
std::string value;
std::ltoa (R+RP,value,10);
itk::EncapsulateMetaData<std::string>( dictionary, entryId, value );
entryId = DistP;
std::ltoa (R,value,10);
itk::EncapsulateMetaData<std::string>( dictionary, entryId, value );
entryId = PAngle;
std::ltoa (PAngleValue,value,10);
itk::EncapsulateMetaData<std::string>( dictionary, entryId, value );
entryId( SAngle );
std::ltoa (SAngleValue,value,10);
itk::EncapsulateMetaData<std::string>( dictionary, entryId, value );
m_2DRescaler->SetInput(m_DiasstoledImage);
m_ImageWriter->SetFileName("Projection.dcm");
m_ImageWriter->SetInput( m_2DRescaler->GetOutput() );
m_ImageWriter->SetImageIO( dicomIO );
m_ImageWriter->Update();
---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060221/e1f44f89/attachment-0001.html
More information about the Insight-users
mailing list