[Insight-users] Allowed image filter input

Luis Ibanez luis.ibanez at kitware.com
Fri Jan 20 07:14:20 EST 2006


Hi Uwe,

Thanks for pointing this out.

Could you please log a bug entry for this issue ?

      http://public.kitware.com/Bug/index.php

we should fix the Doxygen documentation of this class,
or take advantage of the ConceptChecking and introduce
one concept checker that verifies that the pixel type
is signed.


   Thanks


      Luis



------------------
Uwe Köhler wrote:
> HiYa,
> 
> I am trying to find a way to determine the allowed input types for an image 
> filter. When supplying itk::SobelEdgeDetectionImageFilter or 
> itk::LaplacianImageFilter with real images everything works fine. When 
> suppying short images the program compiles, but I get the following 
> exception:
> 
>     try{
> 	sobelFilter->SetInput(meanFilter->GetOutput());
> 	sobelFilter->Update();
>     }
>     catch( itk::ExceptionObject & err ) { 
> 	std::cout << "ExceptionObject caught SobelFilter!" << std::endl; 
> 	std::cout << err << std::endl; 
> 	return -1; 
>     }
> 
> ExceptionObject caught SobelFilter!
> 
> itk::ExceptionObject (0x814e128)
> Location: "void itk::MultiThreader::SingleMethodExecute()"
> File: /usr/local/src/Insight/Code/Common/itkMultiThreader.cxx
> Line: 358
> Description: itk::ERROR: MultiThreader(0x81440e8): Exception occurred during 
> SingleMethodExecute
> 
> I can see the laplacian filter needing signed values, but I cannot find these 
> precondions in the documentation. Where can I look for this information? The 
> exception doesn't help initially. Getting the exception on a SMP system 
> certainly pointed me in completely the wrong direction.
> 
> I would be very grateful for any help.
> 
> Cheers
> 
> Uwe
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 



More information about the Insight-users mailing list