[Insight-users] Filter output zeroed somehow

Dženan Zukić dzenanz at gmail.com
Mon Jun 27 04:43:01 EDT 2011


I found the error. Instead of output=filter->GetOutput(); I had to use
this->GraftOutput(smoothing->GetOutput());

2011/6/24 Dženan Zukić <dzenanz at gmail.com>

> Hi all,
>
> I am trying to write a filter for calculating structure tensor
> from arbitrary images. However the output is always 0. The complete (and
> relatively small) test case is attached.
>
> Putting a breakpoint in .h file on line 51, I see that for voxel 0,0,0 the
> output is non-zero. However in .cpp file, line 30 spews out zeroes. Can
> anyone tell me why this is happening and how to correct it?
>
> Regards,
> Dženan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110627/0feb5254/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkStructureTensorImageFilter.txx
Type: application/octet-stream
Size: 1357 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110627/0feb5254/attachment.obj>


More information about the Insight-users mailing list