[Insight-developers] New Bug

Hans Johnson hans-johnson at uiowa.edu
Tue Jan 13 15:42:31 EST 2009


Hello All,

I¹ve just submitted a new bug.  Please let me know if you there is a reason
why itk::ImageBase<>::CopyInformation should not be setting the
RequestedRegion and the BufferedRegion.

0008374: itkImageBase<>::CopyInformation does not set the Buffered or the
Requested Regions
Description     I would have expected the following code to generate an
image with all 1's of the same size as readerImage.

itk::Image<> readerImage=myreader->GetOutput();

itk::Image<> OnesImage=itk::Image<>::New()
OnesImage->CopyInformation(readerImage);
OnesImage->Allocate();
OnesImage->Fill(1);

===============
The problem is that CopyInformation only sets the LargestPossibleRegion, and
not the BufferedRegion nor the RequestedRegion.

Additional Information

I believe that CopyInformation needs to copy the BufferedRegion and the
RequestedRegion in addition to the LargestPossibleRegion.


Thanks,
Hans





Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20090113/bf45380c/attachment.htm>


More information about the Insight-developers mailing list