<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.11">
<TITLE>Pipeline execution when output information depends on input data</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi,<BR>
<BR>
I've made a filter that changes the output dimensions based on the data in the input. I know that I need give the correct output regions when pipeline update goes upstream using the GenerateOutputInformation-method, but in my filter the output dimensions are known only after the GenerateData-method is invoked. My question is what is the correct way to handle this situation? I cannot obviously calculate the output regions (RequestedRegion etc.) during the GenerateOutputInformation, because I cannot assume that the input is unchanged. On the otherhand if I update the output regions during GenerateData, the pipeline-mechanism does not work correctly, but I end up giving the original (the regions of the input) to the next filter along the pipeline. I hope I made myself clear, and hope someone can give a hint on how to handle this situation...<BR>
<BR>
Cheers, Janne<BR>
<BR>
<BR>
--<BR>
Janne Hämäläinen<BR>
Physicist<BR>
HUS, Helsinki Medical Imaging Center<BR>
</FONT>
</P>

</BODY>
</HTML>