<font size="2"><font face="verdana,sans-serif">I found the error. Instead of </font><font class="Apple-style-span" face="'courier new', monospace">output=filter->GetOutput();</font><font face="verdana,sans-serif"> I had to use </font><font class="Apple-style-span" face="'courier new', monospace">this->GraftOutput(smoothing->GetOutput());</font><br>
</font><div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div>2011/6/24 Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>></span></div><div><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font size="2"><font face="verdana,sans-serif">Hi all,</font></font><div><font size="2"><font face="verdana,sans-serif"><br>
</font></font></div><div><font size="2"><font face="verdana,sans-serif">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.</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">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?</font></font></div>
<div><font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">Regards,</font></font></div><div><font size="2"><font face="verdana,sans-serif">Dženan</font></font></div>
</blockquote></div><br></div>