dox/Imaging/vtkImageSolitaryFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   BioImageXD
00004   Module:    $RCSfile: vtkImageSolitaryFilter.h,v $
00005 
00006  Copyright (C) 2005  BioImageXD Project
00007  See CREDITS.txt for details
00008 
00009  This program is free software; you can redistribute it and/or modify
00010  it under the terms of the GNU General Public License as published by
00011  the Free Software Foundation; either version 2 of the License, or
00012  (at your option) any later version.
00013 
00014  This program is distributed in the hope that it will be useful,
00015  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  GNU General Public License for more details.
00018 
00019  You should have received a copy of the GNU General Public License
00020  along with this program; if not, write to the Free Software
00021  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023 =========================================================================*/
00036 #ifndef __vtkImageSolitaryFilter_h
00037 #define __vtkImageSolitaryFilter_h
00038 
00039 #include "vtkThreadedImageAlgorithm.h"
00040 
00041 class VTK_IMAGING_EXPORT vtkImageSolitaryFilter : public vtkThreadedImageAlgorithm
00042 {
00043 public:
00044   vtkTypeRevisionMacro(vtkImageSolitaryFilter, vtkThreadedImageAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048   static vtkImageSolitaryFilter *New();
00049      
00051 
00053   vtkSetMacro(HorizontalThreshold,int);
00054   vtkGetMacro(HorizontalThreshold,int);
00055   // Description:
00056   // Specify the Y threshold. Vertical neighboring pixels that 
00057   // have lower scalar value than this will be set to zero
00058   vtkSetMacro(VerticalThreshold,int);
00059   vtkGetMacro(VerticalThreshold,int);
00060   // Description:
00061   // Specify the filtering threshold. Pixels with scalar value over
00062   // this threshold are inspected.
00063   vtkSetMacro(FilteringThreshold,int);  
00064   vtkGetMacro(FilteringThreshold,int);
00066 
00067 
00068 protected:
00069   vtkImageSolitaryFilter();
00070   ~vtkImageSolitaryFilter() {};
00071 
00072 
00073   virtual int RequestUpdateExtent (
00074   vtkInformation* vtkNotUsed(request),
00075   vtkInformationVector** inputVector,
00076   vtkInformationVector* outputVector);  
00077   // Method that can be called by multiple threads that is given the input data and an input extent
00078   // and is responsible for producing the matching output data.
00079   void ThreadedRequestData (vtkInformation* request, vtkInformationVector** inputVector,
00080                             vtkInformationVector* outputVector,vtkImageData ***inData, vtkImageData **outData,
00081                             int ext[6], int id);
00082 
00083   // Implement methods required by vtkAlgorithm.
00084   virtual int FillInputPortInformation(int, vtkInformation*);  
00085   int HorizontalThreshold;
00086   int VerticalThreshold;
00087   int FilteringThreshold;
00088 private:
00089   vtkImageSolitaryFilter(const vtkImageSolitaryFilter&);  // Not implemented.
00090   void operator=(const vtkImageSolitaryFilter&);  // Not implemented.
00091 };
00092 
00093 #endif
00094 
00095 

Generated on Fri Sep 7 17:44:06 2007 for VTK by  doxygen 1.5.3