[Insight-users] BufferedRegion in DataObjects
Miller, James V (Research)
millerjv at crd.ge.com
Wed Aug 17 07:56:28 EDT 2005
Tobias,
This is by design. It is a mechanism to determine whether the request is different
from what the filter previously generated. This mirrors the design of ImageFilters
where the GenerateData() method typically calls
output->SetBufferedRegion( output->GetRequestedRegion() );
output->Allocate();
Basically, this tells the pipeline "what" data was actually generated (verses what
was requested).
Jim
-----Original Message-----
From: insight-users-bounces+millerjv=crd.ge.com at itk.org
[mailto:insight-users-bounces+millerjv=crd.ge.com at itk.org]On Behalf Of
Tobias Heimann
Sent: Wednesday, August 17, 2005 5:42 AM
To: Insight-users at itk.org
Subject: [Insight-users] BufferedRegion in DataObjects
Hi all,
While writing some new filters with meshes as output, I noticed that
somewhere in my GenerateData() method, I have to call
"outputMesh->SetBufferedRegion( 0 );", otherwise the filter will
re-execute every update call because
RequestedRegionIsOutsideOfTheBufferedRegion() for the output mesh will
always return true. Is this intended (i.e. setting the buffered region
explicitly) or am I missing something?
Thanks in advance,
Tobias
--
Dipl.-Inform. Med. Tobias Heimann
Deutsches Krebsforschungszentrum (German Cancer Research Center)
Div. Medical and Biological Informatics B010 Tel: (+49) 6221-423548
Im Neuenheimer Feld 280 Fax: (+49) 6221-422345
D-69120 Heidelberg email: T.Heimann at dkfz.de
Germany http://www.dkfz.de/mbi/people/tobiash.html
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list