The first one (S2.3 Running the software on a 2D intersecting circle voting example) generates black images ... and the second one (S2.4 Running the code on somite data) generates a black image on the step 11 (Apply the planarity detection filter - The source code for this filter is located at MR-Source/Examples/MultiscalePlateMeasureImageFilter.cxx) here is the code that isn't working for me ...
// Declare the type of multiscale vesselness filter
typedef itk::MultiscaleStructMeasureImageFilter<
InputImageType, OutputImageType> MultiscalePlateFilterType;
// Create a vesselness Filter
MultiscalePlateFilterType::Pointer MultiscalePlateFilter =
MultiscalePlateFilterType::New();
MultiscalePlateFilter->SetInput( reader->GetOutput() );
MultiscalePlateFilter->SetObjectType( 0 );
MultiscalePlateFilter->SetSigmaMin( atof(argv[4]) );
MultiscalePlateFilter->SetSigmaMax( atof(argv[4]) );
MultiscalePlateFilter->SetNumberOfSigmaSteps( 1 );
try
{
MultiscalePlateFilter->Update();
}
catch( itk::ExceptionObject & err )
{
std::cerr << "Exception caught: " << err << std::endl;
return EXIT_FAILURE;
}
std::cout << "Writing out the enhanced image to " << argv[2]
<< std::endl;
ImageWriterType::Pointer writer = ImageWriterType::New();
writer->SetFileName( argv[2] );
writer->SetInput ( MultiscalePlateFilter->GetOutput() );
try
{
writer->Update();
}
catch( itk::ExceptionObject & err )
{
std::cerr << "Exception caught: " << err << std::endl;
return EXIT_FAILURE;
}
reader->GetOutput() contains the preprocessed image and its good i already verified it. The problem is when i do "writer->SetInput ( MultiscalePlateFilter->GetOutput() );" ... that is a black image ... whats the problem?