[Insight-users] How to make the input of a filter to its output

Pan Ross rosspan2004 at yahoo.com.cn
Sat Oct 30 08:06:52 EDT 2004


I want to make the input of a filter to its output. But I do not know how to do it. I have write the following code, but there are some errors when I run the program. Could anyone help me?
 
ImageType::Pointer workImage;
workImage = imageReader->GetOutput();
...
...
 FlipFilterType::Pointer flip = FlipFilterType::New();
 flip->SetInput(workImage);
 FlipFilterType::FlipAxesArrayType flipAxesSet=flip->GetFlipAxes();
 flipAxesSet[1]=true;
 flip->SetFlipAxes(flipAxesSet);
 workImage = flip->GetOutput();
 
the error is:
itk::InvalidRequestedRegionError @ 0x0012eeec 




---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20041030/d84c5d8f/attachment.html


More information about the Insight-users mailing list