[Insight-users] AddPixelAccessor set function confusion
Bill Lorensen
bill.lorensen at gmail.com
Fri Dec 10 00:15:23 EST 2010
It adds m_Value when the pixel is accessed.
Here is the example with proper usage:
http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/AddPixelAccessor
On Thu, Dec 9, 2010 at 4:33 PM, robert tamburo <robert.tamburo at gmail.com> wrote:
> I'm confused with the set function of AddPixelAccessor. It subtracts a value
> from the input rather than adding it.
> Relevant code:
> inline void Set( InternalType & output, const ExternalType & input ) const
> { output = static_cast<InternalType>( input - m_Value ); }
> Shouldn't it add m_Value to the input? Or is there something else going on?
> -Robert
>
> _____________________________________
> 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.html
>
> 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
>
>
More information about the Insight-users
mailing list