<html><div style='background-color:'><DIV class=RTE>Hi, I'm using Sobel2D from java but I receive the following error:<BR><BR> vtkImageSobel2D (0x02cf1d20): Expecting input with only one compenent.<BR><BR><BR>The code is as follows:<BR><BR> vtkImageSobel2D myFilter = new vtkImageSobel2D();<BR><BR> vtkJPEGReader myReader = new vtkJPEGReader();<BR> myReader.SetFileName(".\\david.jpg");<BR> myReader.Update();<BR><BR> vtkImageActor myActor = new vtkImageActor();<BR><BR> vtkImageShiftScale myShift = new vtkImageShiftScale();<BR><BR> myFilter.SetInput(myReader.GetOutput());<BR><BR> vtkImageData img = new vtkImageData();<BR> <BR> myShift.SetInput(myFilter.GetOutput());<BR><BR> myShift.SetOutputScalarTypeToUnsignedChar();<BR><BR> myActor.SetInput(myShift.GetOutput() );<BR> myPanel.GetRenderer().AddActor(myActor);<BR><BR>If anyone has tried it and has any clue, please let me know, I'm really lost<BR>here. Thanks a lot!<BR><BR>Cordialmente,<BR><BR>Georgean Britton<BR><BR>"Estar quebrado es temporal, ser pobre es para toda la vida"<BR>Padre Rico.</DIV></div><br clear=all><hr>MSN Amor <a href="http://g.msn.com/8HMAES/2740??PS=47575">Busca tu ½ naranja</a> </html>