Hi all,<br><br>There is a strange behavior with the vtkImageAnisotropicDiffusion3D applied on an unsigned char volume. The computation of the diffusion is done with a double precision, and at the end of the process, the whole image is casted to the original format using vtkImageData CopyAndCastFrom(..) . But some value are greater than 255 (or lower than 0) and the cast gives some wrong values. For Exemple a value of 300 in double gives a 44 uchar.<br>
<br>And the result is a noisy image which is not so good for a smooth filter ...<br>Maybe before to be casted, all the scalars should be scaled into a correct window [0,255] for unsigned char, etc ...<br><br>
Can someone do something for 2 /* lazy-coders */ french students :o)<br><br>We've tried to but we don't know how to manage it with a threaded method (min and max could be different on each thread, no ?)<br><br>Thanks for your help<br>
<br>Simon<br><br>------------------------------------------------------------------<br>Simon Esneault<br>Laboratoire Traitement du Signal et de l'Image, (LTSI, UMR-INSERM 642)<br>Université de Rennes I, Campus de Beaulieu, <br>
35042 Rennes Cedex, France.<br>Tel : +33 (0)6 64 61 30 94<br>Mail : <a href="mailto:simon.esneault@univ-rennes1.fr" target="_blank">simon.esneault@univ-rennes1.fr</a><br>------------------------------------------------------------------