[Insight-developers] How to get the input requested region of
a filter?
Miller, James V (Research)
millerjv at crd.ge.com
Mon Oct 11 13:10:49 EDT 2004
Julien,
You could manually perform the steps that DataObject::Update() does:
filter->GetOutput()->UpdateOutputInformation();
filter->GetOutput()->PropagateRequestedRegion();
After making these calls, all the meta data and pipeline information should
be available (LargestPossibleRegion, RequestedRegion, pipeline modified
times).
You can then call
filter->GetInput()->GetRequestedRegion()
to see what RequestedRegion is being requested for the input to your filter.
Note that the first two calls are on the OUTPUT of the filter. Everything
is driven from the filter output. After calling these methods on the
OUTPUT of the filter, the meta data on the INPUTS will be valid.
Jim
-----Original Message-----
From: Julien Jomier [mailto:jjomier at cs.unc.edu]
Sent: Monday, October 11, 2004 12:49 PM
To: insight-developers at itk.org
Subject: [Insight-developers] How to get the input requested region of a
filter?
Hi,
I'm tying to get the input requested region of a filter, before running it.
I know that GenerateInputRequestionRegion() is computing the requested
region, but for most of the ITK filters this function is protected.
Is there another way to get the input requested region of a filter?
Thanks,
Julien
_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list