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 -------------------------------------------------------------------------*/
49 #ifndef vtkComputeHistogram2DOutliers_h
50 #define vtkComputeHistogram2DOutliers_h
51 //------------------------------------------------------------------------------
52 #include "vtkFiltersImagingModule.h" // For export macro
53 #include "vtkSelectionAlgorithm.h"
54 
55 //------------------------------------------------------------------------------
56 class vtkCollection;
57 class vtkDoubleArray;
58 class vtkIdTypeArray;
59 class vtkImageData;
60 class vtkTable;
61 //------------------------------------------------------------------------------
62 class VTKFILTERSIMAGING_EXPORT vtkComputeHistogram2DOutliers : public vtkSelectionAlgorithm
63 {
64 public:
67  void PrintSelf(ostream& os, vtkIndent indent);
68 
69  vtkSetMacro(PreferredNumberOfOutliers,int);
70  vtkGetMacro(PreferredNumberOfOutliers,int);
71 
72  //
74 
76  {
77  INPUT_TABLE_DATA=0,
79  INPUT_HISTOGRAMS_MULTIBLOCK
80  };
82  {
83  OUTPUT_SELECTED_ROWS=0,
84  OUTPUT_SELECTED_TABLE_DATA
85  };
86 
91  { this->SetInputConnection(INPUT_TABLE_DATA,cxn); }
92 
97  { this->SetInputConnection(INPUT_HISTOGRAMS_IMAGE_DATA,cxn); }
98 
104  { this->SetInputConnection(INPUT_HISTOGRAMS_MULTIBLOCK,cxn); }
105 
106 protected:
109 
112 
113  virtual int RequestData(
117 
120 
125  virtual int ComputeOutlierThresholds(vtkCollection* histograms, vtkCollection* thresholds);
126 
130  virtual int ComputeOutlierThresholds(vtkImageData* histogram, vtkDoubleArray* thresholds, double threshold);
131 
136  virtual int FillOutlierIds(vtkTable* data, vtkCollection* thresholds, vtkIdTypeArray* rowIds, vtkTable* outTable);
137 
138 private:
140  void operator=(const vtkComputeHistogram2DOutliers&) VTK_DELETE_FUNCTION;
141 };
142 
143 #endif
Proxy object to connect input/output ports.
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
compute the outliers in a set of 2D histograms and extract the corresponding row data.
void SetInputTableConnection(vtkAlgorithmOutput *cxn)
Set the source table data, from which data will be filtered.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void SetInputHistogramMultiBlockConnection(vtkAlgorithmOutput *cxn)
Set the input histogram data as a vtkMultiBlockData set containing multiple vtkImageData objects.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
virtual int ComputeOutlierThresholds(vtkCollection *histograms, vtkCollection *thresholds)
Compute the thresholds (essentially bin extents) that contain outliers for a collection of vtkImageDa...
static vtkComputeHistogram2DOutliers * New()
void SetInputHistogramImageDataConnection(vtkAlgorithmOutput *cxn)
Set the input histogram data as a (repeatable) vtkImageData.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int ComputeOutlierThresholds(vtkImageData *histogram, vtkDoubleArray *thresholds, double threshold)
Compute the thresholds (bin extents) that contain outliers for a single vtkImageData histogram.
virtual int FillOutlierIds(vtkTable *data, vtkCollection *thresholds, vtkIdTypeArray *rowIds, vtkTable *outTable)
Take a set of range thresholds (bin extents) and filter out rows from the input table data that fits ...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of double
dynamic, self-adjusting array of vtkIdType
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
record modification and/or execution time
Definition: vtkTimeStamp.h:36
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ data
Definition: vtkX3D.h:315
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.