[Dcmlib] Re: some bugs with 'MONOCHROM1 ' and 'MONOCHROM2 '

derong denis_hudr at sina.com
Fri Nov 12 20:12:16 CET 2004


Hi, Mathieu,
 
I got some dataset in http://www.julius.caesar.de/4000/4500.html. The Dicom
images in (CT Head) have "MONOCHROM1".
For your  proposal, function DcmStrEqual(string a, string b), parmeter 'a'
should not be followed by space.
I think the function like follows: 
 
bool DcmStrEqual(const std::string& a, const std::string& b)
{  // suppose no space exists between words, space only in the tail
  std::string aNSpace(a, 0, a.find_first(' ');
  std::string bNSpace(b, 0, b.find_first(' ');
  return aNSpace == bNSpace;
}
 
thx,
 
Dennis
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20041112/e1bc9b6d/attachment.html>


More information about the Dcmlib mailing list