<div class="gmail_extra">Hi Christina, </div><div class="gmail_extra"><br></div><div class="gmail_extra">Have a look at the following or the last paragraph </div><div class="gmail_extra">of image adaptors in the itk manual. </div>
<div class="gmail_extra"><a href="http://www.itk.org/pipermail/insight-users/2005-April/012553.html">http://www.itk.org/pipermail/insight-users/2005-April/012553.html</a><br><br>When you add the RescaleIntensityImageFilter to your pipeline, </div>
<div class="gmail_extra">your code starts working as expected. </div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards, </div><div class="gmail_extra">Cagatay</div><div class="gmail_extra"><br><div class="gmail_quote">
On Fri, Apr 20, 2012 at 3:02 AM, Chr. Rossmanith <span dir="ltr">&lt;<a href="mailto:cr@neuro.ma.uni-heidelberg.de" target="_blank">cr@neuro.ma.uni-heidelberg.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>

  

    
    
  
  <div text="#000000" bgcolor="#ffffff">
    Hi,<br>
    <br>
    I&#39;m working with RGB images and have already successfully used an
    ImageAdaptor with the RedPixelAccessor to calculate a histogram of
    the red channel. <br>
    <br>
    Now I&#39;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&#39;t compatible with
    ImageAdaptors?<br>
    <br>
    Thank you for any hint.<br>
    <br>
    Christina Rossmanith<br>
    --<br>
    <span style="font-size:10pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;" lang="EN-GB">Dept. of
      Neurology</span> <br>
    <span style="font-size:10pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;" lang="EN-GB">University
      Medical Center Mannheim</span><br>
    <div>
      <div title="Zum übersetzen klicken"></div>
    </div>
  </div>

<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>