i want to copy the output of a nested filter to outer filter. The outer filter has the OutputImagePointer set (w.r. t. region, size, etc.) and I want to replace the output with the result from the nested filter. The images have the same size and PixelType. This looks similar to following code:
OutputImagePointer output = this->GetOutput();
[... other filter is running, m_OtherFilter is a member variable, it doesnt need to be in a pipeline]
Output = this->m_OtherFilter->GetOutput(); // Now Output is the output from OtherFilter->GetOutput()
If I call OuterFilter->GetOutput() later on it will return the OutputImagePointer that was set before the OuterFilter::GenerateData() call.
How do I get the output from the outer filter to be replaced by the output from the inner filter?
If more informations needed please ask. Thank you in advance.
Edit: Moved topic to Uncategorized because no explicit Algorithm is discussed.