<p dir="ltr">Arnaud,<br>
I have my old code working. I will send you a copy tomorrow.</p>
<div class="gmail_quote">On Jan 28, 2014 8:11 AM, "Arnaud Gelas" <<a href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Bill,<br>
<br>
I have been playing with existing ITK examples, but results are not good enough for my case…<br>
<br>
Would you mind sharing the code, please?<br>
<br>
Thanks!!<br>
<br>
Cheers,<br>
Arnaud<br>
<br>
On Jan 24, 2014, at 4:33 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
<br>
> I have some code we wrote years ago. It used<br>
> typedef itk::ExpNegativeImageFilter<InputImageType,InternalImageType><br>
> ExpNegativeType;<br>
> ExpNegativeType::Pointer expNegative = ExpNegativeType::New();<br>
> expNegative->SetInput( thresh->GetOutput());<br>
> expNegative->SetFactor( -.0011 );<br>
><br>
> followed by<br>
> // grab a row for the 'DRR'<br>
> typedef itk::AccumulateImageFilter<InternalImageType,InternalImageType><br>
> AccumulateType;<br>
> AccumulateType::Pointer APAccumulate = AccumulateType::New();<br>
> AccumulateType::Pointer lateralAccumulate = AccumulateType::New();<br>
><br>
> APAccumulate->SetAverage(false);<br>
> lateralAccumulate->SetAverage(false);<br>
> APAccumulate->SetAccumulateDimension(1);<br>
> lateralAccumulate->SetAccumulateDimension(0);<br>
><br>
> APAccumulate->SetInput ( expNegative->GetOutput() );<br>
> lateralAccumulate->SetInput ( expNegative->GetOutput() );<br>
> APAccumulate->Update();<br>
> lateralAccumulate->Update();<br>
><br>
> I'll be happy to share the code with the caveat that it has lots of<br>
> application specific code in it.<br>
><br>
> There is also the ITK Example:<br>
> Examples/Filtering/DigitallyReconstructedRadiograph1.cxx<br>
><br>
> Bill<br>
><br>
> On Fri, Jan 24, 2014 at 10:23 AM, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I would like to render as realistic as possible 1 3D CT Scan, as if it was 2D X Ray Image.<br>
>><br>
>> I have tried Average Intensity Projection, but results are much smoother than what it should look like.<br>
>><br>
>> Has anyone any experience on the question? Any advice appreciated?<br>
>><br>
>> Do I need to generate a specific transfer function for this CT? Could I apply the same transfer function to another one?<br>
>> Has anyone got such a transfer function that could be shared?<br>
>><br>
>> Thanks in advance,<br>
>><br>
>> Best regards<br>
>> Arnaud Gelas<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
><br>
> --<br>
> Unpaid intern in BillsBasement at noware dot com<br>
<br>
</blockquote></div>