[Insight-developers] fast image allocation

Damion Shelton dmshelto@andrew.cmu.edu
Wed, 06 Mar 2002 17:31:00 -0500


Ok, that's what I was looking for. Didn't know it existed.

Thanks,
-Damion-

--On Wednesday, March 06, 2002 5:16 PM -0500 "Miller, James V (CRD)" 
<millerjv@crd.ge.com> wrote:

>  Bill already added a fast allocate method. Actually what he did was
> add a method to set all the regions in one call by passing in a
> Size.
>
> TImageType::Pointer sourceImage = TImageType::New();
> TImageType::SizeType sourceSize = {{20, 20, 20}};
> sourceImage->SetRegions( sourceSize );
> sourceImage->Allocate();