[Insight-users] LineSpatialObject with SpatialObjectToImageFilter

robert tamburo robert.tamburo at gmail.com
Mon Jan 24 16:00:33 EST 2011


The code looks reasonable to me. I'm guessing that a line is in the
image, but has a value of 1 and your viewer doesn't rescale the
intensity. Try imageFilter->SetInsideValue(255);

On Mon, Jan 24, 2011 at 3:46 PM, David Doria <daviddoria at gmail.com> wrote:
> I am trying to create a line with LineSpatialObject and then write it
> to an image using SpatialObjectToImageFilter.
>
> Here is what I tried:
> http://www.itk.org/Wiki/ITK/Examples/WishList/SpatialObjects/LineSpatialObject
>
> but the output is an empty image. Can anyone see where I've gone wrong?
>
> Thanks,
>
> David
> _____________________________________
> 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