int main( int, char* [] )
{
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
SourceType::Pointer source = SourceType::New();
ImageType::SizeType size;
size.Fill( 3 );
source->SetSize( size );
MonitorFilterType::Pointer monitorFilter = MonitorFilterType::New();
monitorFilter->SetInput( source->GetOutput() );
monitorFilter->DebugOn();
StreamingFilterType::Pointer streamingFilter = StreamingFilterType::New();
streamingFilter->SetInput( monitorFilter->GetOutput() );
streamingFilter->SetNumberOfStreamDivisions( 3 );
try
{
streamingFilter->Update();
}
{
std::cerr << "Error: " << error << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}