VTK
vtkComputeHistogram2DOutliers.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkComputeHistogram2DOutliers.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2009 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
48 #ifndef vtkComputeHistogram2DOutliers_h
49 #define vtkComputeHistogram2DOutliers_h
50 //------------------------------------------------------------------------------
51 #include "vtkFiltersImagingModule.h" // For export macro
52 #include "vtkSelectionAlgorithm.h"
53 
54 //------------------------------------------------------------------------------
55 class vtkCollection;
56 class vtkDoubleArray;
57 class vtkIdTypeArray;
58 class vtkImageData;
59 class vtkTable;
60 //------------------------------------------------------------------------------
62 {
63 public:
66  void PrintSelf(ostream& os, vtkIndent indent);
67 
68  vtkSetMacro(PreferredNumberOfOutliers,int);
69  vtkGetMacro(PreferredNumberOfOutliers,int);
70 
71  //
72  vtkTable* GetOutputTable();
73 //BTX
75  {
76  INPUT_TABLE_DATA=0,
78  INPUT_HISTOGRAMS_MULTIBLOCK
79  };
81  {
82  OUTPUT_SELECTED_ROWS=0,
83  OUTPUT_SELECTED_TABLE_DATA
84  };
85 //ETX
86 
88 
90  { this->SetInputConnection(INPUT_TABLE_DATA,cxn); }
92 
94 
96  { this->SetInputConnection(INPUT_HISTOGRAMS_IMAGE_DATA,cxn); }
98 
100 
103  { this->SetInputConnection(INPUT_HISTOGRAMS_MULTIBLOCK,cxn); }
105 
106 protected:
109 
112 
113  virtual int RequestData(
117 
118  virtual int FillInputPortInformation( int port, vtkInformation* info );
119  virtual int FillOutputPortInformation( int port, vtkInformation* info );
120 
123  virtual int ComputeOutlierThresholds(vtkCollection* histograms, vtkCollection* thresholds);
124 
127  virtual int ComputeOutlierThresholds(vtkImageData* histogram, vtkDoubleArray* thresholds, double threshold);
128 
130 
132  virtual int FillOutlierIds(vtkTable* data, vtkCollection* thresholds, vtkIdTypeArray* rowIds, vtkTable* outTable);
133 private:
135  void operator=(const vtkComputeHistogram2DOutliers&); // Not implemented
136 };
138 
139 #endif
Store vtkAlgorithm input/output information.
virtual int FillInputPortInformation(int port, vtkInformation *info)
record modification and/or execution time
Definition: vtkTimeStamp.h:34
dynamic, self-adjusting array of vtkIdType
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Proxy object to connect input/output ports.
dynamic, self-adjusting array of double
void SetInputHistogramImageDataConnection(vtkAlgorithmOutput *cxn)
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSIMAGING_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
void SetInputHistogramMultiBlockConnection(vtkAlgorithmOutput *cxn)
Superclass for algorithms that produce only Selection as output.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetInputTableConnection(vtkAlgorithmOutput *cxn)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
compute the outliers in a set of 2D histograms and extract the corresponding row data.