[Insight-users] funny char garbage
Kevin H. Hobbs
kevin.hobbs.1 at ohiou.edu
Wed Aug 10 15:47:09 EDT 2005
I just spent WAY too long figuring out something really stupid. I bet
somebody else has, or will do this so here it is.
I was printing out pixel values with:
pointsFile << inputIt.Get() << std::endl;
I kept getting junk. All sorts of wacky symbols. Then I realized, IT'S
A CHAR!
What I meant was:
pointsFile << (unsigned int)inputIt.Get() << std::endl;
Grr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050810/e22ccfd6/attachment.pgp
More information about the Insight-users
mailing list