[Insight-users] GetPixel() strange behavior
Ho Cheung
hocheung20 at gmail.com
Tue Jun 18 11:53:40 EDT 2013
Hi Antonio,
The 'D' is probably not an error. You are trying to print out an unsigned char which as the name suggests is a character. The ASCII representation for the character 'D' is 68. Was that the value that you were expecting to see?
I have no idea why using the const version of GetPixel would make a difference. What did you mean by that?
Regards,
Ho Cheung
(775) 388-2368
On Jun 18, 2013, at 5:36 AM, Antonio Calabrese <calantoanto at gmail.com> wrote:
> Ok, I have realized that there is a substantial difference, in terms of
> results, between
>
> const TPixel& itk::Image< TPixel, VImageDimension >::GetPixel ( const
> IndexType & index ) const
>
> and
>
> TPixel& itk::Image< TPixel, VImageDimension >::GetPixel ( const IndexType &
> index )
>
> The first one, which i used, it's the method that returns me the error
> explained before.
> so if I want to save the values of the pixels in a container, how I do it?
> Can I?
>
>
>
>
> --
> View this message in context: http://itk-users.7.n7.nabble.com/GetPixel-strange-behavior-tp31719p31721.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130618/a9d457d0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2550 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130618/a9d457d0/attachment.bin>
More information about the Insight-users
mailing list