<div><div class="gmail_quote">On Wed, Mar 2, 2011 at 4:32 PM, Jérôme <span dir="ltr">&lt;<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi David,<br>
I think that your image has a 3-components data array, such as RGB.<br>
ParaView &quot;Gradient&quot; filter is based on vtkImageGradient which expects<br>
a 1-component image. You can<br>
- convert your image in grey level with a third party software,<br>
- use the calculator to compute a norm of the input image,<br>
- enable the vtkImageMagnitude or vtkImageLuminance in ParaView (I<br>
already did it here: <a href="http://github.com/jeromevelut/Peavip" target="_blank">http://github.com/jeromevelut/Peavip</a>, but it<br>
seems that vtkImageMagnitude needs some update...)<br>
<br>
HTH<br>
Jerome<br><br></blockquote><meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote"><br></div>Jerome,<div><br></div><div>That is great! Can you include it in the actual Paraview distribution?</div>
<div><br></div><div>FYI vtkImageMagnitude appears in the filters list, but vtkImageLuminance seems to be absent. Also, when I run vtkImageMagnitude, I get:</div><div><br></div><div><meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:&#39;Courier&#39;; font-size:10pt; color:#000000;">Warning: In /home/doriad/src/ParaView/Servers/Filters/vtkTexturePainter.cxx, line 179</span></p>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:&#39;Courier&#39;; font-size:10pt; color:#000000;">vtkTexturePainter (0x8dee780): Failed to locate selected scalars. Will use image scalars by default.</span></p>

<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:&#39;Courier&#39;; font-size:10pt; color:#000000;"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:&#39;Courier&#39;; font-size:10pt; color:#000000;"></p><div><br></div>
<div>and then there is no output. The data is in an array called PNGImage of type unsigned char with Data range [0,255],[0,255],[0,255].</div><div><br></div><div>Any thoughts? The file I&#39;m trying it on is here: <a href="http://daviddoria.com/Uploads/daveDepth.png">http://daviddoria.com/Uploads/daveDepth.png</a> if you want to try to reproduce.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><br></div><div>David </div></div></div>