<DIV>Hi, </DIV>
<DIV> </DIV>
<DIV>Can someone tell me the difference between using <STRONG>GetRequestedRegion</STRONG>() and <STRONG>GetBufferedRegion</STRONG>().</DIV>
<DIV> </DIV>
<DIV>I'm implemented a simple function. I have no error at building but always an error at execution such as Error in memory, DAMAGE AFTER NORMAL BLOCK. I took a look on the web to check out the meaning: it seems that I am overwriting in memory. </DIV>
<DIV> </DIV>
<DIV>Maybe it comes from my iterators. Here is what I did. </DIV>
<DIV> </DIV>
<DIV>Please help,</DIV>
<DIV> </DIV>
<DIV>Isa</DIV>
<DIV> </DIV>
<DIV> ImageType3D::Pointer outputImage = ImageType3D::New();<BR> <BR> ImageType3D::IndexType start;<BR> start[0] = 0; // first index on X<BR> start[1] = 0; // first index on Y<BR> start[2] = 0; // first index on Z</DIV>
<DIV> </DIV>
<DIV> ImageType3D::SizeType size;<BR> size[0] = width; // size along X<BR> size[1] = height; // size along Y<BR> size[2] = iNumFrames; // size along Z</DIV>
<DIV> </DIV>
<DIV> ImageType3D::RegionType outputRegion;<BR> outputRegion.SetSize( size );<BR> outputRegion.SetIndex( start );</DIV>
<DIV> outputImage->SetRegions(outputRegion);<BR> outputImage->SetSpacing(imageInitiale->GetSpacing());<BR> outputImage->SetOrigin(imageInitiale->GetOrigin());<BR> outputImage->Allocate();</DIV>
<DIV> </DIV>
<DIV> typedef itk::ImageRegionConstIterator<ImageType3D> ConstIteratorType;<BR> ConstIteratorType inputIt(imageInitiale, imageInitiale->GetBufferedRegion());</DIV>
<DIV> </DIV>
<DIV> typedef itk::ImageRegionIterator<ImageType3D> IteratorType;<BR> IteratorType outputIt(outputImage, imageInitiale->GetBufferedRegion());</DIV>
<DIV> </DIV>
<DIV> inputIt.GoToBegin();<BR> outputIt.GoToBegin();</DIV>
<DIV> </DIV>
<DIV> float** MatriceImgR=fmatrix_allocate_2d(height,width);<BR> float** MatriceImgI=fmatrix_allocate_2d(height,width);<BR> <BR> /*Initialisation a zero de toutes les matrices */<BR> for(int i=0;i<height;i++) <BR> for(int j=0;j<width;j++) <BR> {<BR> MatriceImgI[i][j]=0.0;<BR> MatriceImgR[i][j]= (float)(inputIt.Get());<BR> ++inputIt;<BR> }<BR> <BR> /*FFT*/<BR> fft2D(MatriceImgR,MatriceImgI,height,width); </DIV><p>
                <hr size=1>
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br>
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>