[Insight-developers] fltkLightButton behavior

Damion Shelton dmshelto@andrew.cmu.edu
Tue, 16 Apr 2002 13:53:45 -0400


Here's the source for the pipeline creation part. It's essentially the same 
as the bloxcoreatomtest file, with addition of a reader on the front end:

//set up the reader and register the possible types
  reader = ImageFileReaderType::New();
  itk::MetaImageIOFactory::RegisterOneFactory();

  inputImage = reader->GetOutput();
  inputImage->SetRequestedRegionToLargestPossibleRegion();

  //--------------------Do blurring-------------------

  // Create a binomial blur filter
  binfilter = itk::BinomialBlurImageFilter<TInputImage, 
TOutputImage>::New();
  binfilter->DebugOn();

  // Set filter parameters
  binfilter->SetInput(inputImage);
  binfilter->SetRepetitions(blurRepetitions);

  //-----------------------Downsample the image-----------------------

  pShrink = TShrinkFilter::New();
  pShrink->DebugOn();
  pShrink->SetInput( binfilter->GetOutput() );
  pShrink->SetShrinkFactors(computationShrinkFactor);

  //-------------------------Find gradients-------------------------

  // Create a difference of gaussians gradient filter
  DOGFilter = TDOGFilterType::New();
  DOGFilter->DebugOn();

  // We're filtering the output of the binomial filter
  DOGFilter->SetInput( pShrink->GetOutput() );


  //------------------------Blox Boundary Point Analysis--------------------

  bpFilter = TBPFilter::New();
  bpFilter->DebugOn();
  bpFilter->SetInput( DOGFilter->GetOutput() );
  bpFilter->SetThreshold(bpThreshold);
  bpFilter->SetBloxResolution(bpResolution);
  bloxBoundaryPointImage = bpFilter->GetOutput();

  //--------------------------Blox core atom analysis----------------------

  caFilter = TCAFilter::New();
  caFilter->DebugOn();
  caFilter->SetInput(bloxBoundaryPointImage);
  caFilter->SetDistanceMin(caDistanceMin);
  caFilter->SetDistanceMax(caDistanceMax);
  caFilter->SetEpsilon(caEpsilon);
  caFilter->SetPolarity(caPolarity);

  bloxCoreAtomImage = caFilter->GetOutput();

-Damion-

--On Tuesday, April 16, 2002 1:46 PM -0400 "Lorensen, William E (Research)" 
<lorensen@crd.ge.com> wrote:

> Can you describe the pipeline from start to finish...