[Insight-users] pixelIndex

Alberto albermnz at gmail.com
Thu Jun 26 13:37:31 EDT 2008


Dear all,
I am working with images in 3D, but I need to manipulate these images in 2D.
After some processing I get an index SliceImageType::IndexType pixelIndex
and I would like to create a 3D image setting this index to 90. I don't know
how to do it, because this index has 2D and the image 3D. has anyone any
suggestion?

        InputImageType::Pointer img = InputImageType::New();
        img->SetRegions( input->GetLargestPossibleRegion() );
        img->Allocate();
        img->FillBuffer( 0 );
       img->SetPixel( ??, 90 );

Best regards
Bert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080626/8de5cda0/attachment.htm>


More information about the Insight-users mailing list