[Insight-users] itk::ImageAdaptor problem

Cagatay Bilgin bilgincc at gmail.com
Mon Apr 23 13:19:00 EDT 2012


Hi Christina,

Have a look at the following or the last paragraph
of image adaptors in the itk manual.
http://www.itk.org/pipermail/insight-users/2005-April/012553.html

When you add the RescaleIntensityImageFilter to your pipeline,
your code starts working as expected.

Regards,
Cagatay

On Fri, Apr 20, 2012 at 3:02 AM, Chr. Rossmanith <
cr at neuro.ma.uni-heidelberg.de> wrote:

> **
> Hi,
>
> I'm working with RGB images and have already successfully used an
> ImageAdaptor with the RedPixelAccessor to calculate a histogram of the red
> channel.
>
> Now I'd like to use the same logic to threshold the red channel but the
> program keeps segfaulting in Get() in itkDefaultPixelAccessorFunctor.h   Is
> it a problem within my code (s. attachment) or are there filters which
> aren't compatible with ImageAdaptors?
>
> Thank you for any hint.
>
> Christina Rossmanith
> --
> Dept. of Neurology
> University Medical Center Mannheim
>
> _____________________________________
> 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/20120423/7aa7daab/attachment.htm>


More information about the Insight-users mailing list