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
vtkComputeHistogram2DOutliers::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkComputeHistogram2DOutliers
compute the outliers in a set of 2D histograms and extract the corresponding row data.
Definition: vtkComputeHistogram2DOutliers.h:63
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkComputeHistogram2DOutliers::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkComputeHistogram2DOutliers::BuildTime
vtkTimeStamp BuildTime
Definition: vtkComputeHistogram2DOutliers.h:111
vtkComputeHistogram2DOutliers::vtkComputeHistogram2DOutliers
vtkComputeHistogram2DOutliers()
vtkSelectionAlgorithm.h
vtkComputeHistogram2DOutliers::FillOutlierIds
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 ...
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkCollection
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
vtkComputeHistogram2DOutliers::New
static vtkComputeHistogram2DOutliers * New()
vtkComputeHistogram2DOutliers::InputPorts
InputPorts
Definition: vtkComputeHistogram2DOutliers.h:76
vtkComputeHistogram2DOutliers::SetInputHistogramMultiBlockConnection
void SetInputHistogramMultiBlockConnection(vtkAlgorithmOutput *cxn)
Set the input histogram data as a vtkMultiBlockData set containing multiple vtkImageData objects.
Definition: vtkComputeHistogram2DOutliers.h:103
vtkComputeHistogram2DOutliers::PreferredNumberOfOutliers
int PreferredNumberOfOutliers
Definition: vtkComputeHistogram2DOutliers.h:110
vtkComputeHistogram2DOutliers::GetOutputTable
vtkTable * GetOutputTable()
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkComputeHistogram2DOutliers::INPUT_HISTOGRAMS_IMAGE_DATA
@ INPUT_HISTOGRAMS_IMAGE_DATA
Definition: vtkComputeHistogram2DOutliers.h:78
vtkComputeHistogram2DOutliers::OutputPorts
OutputPorts
Definition: vtkComputeHistogram2DOutliers.h:82
vtkComputeHistogram2DOutliers::ComputeOutlierThresholds
virtual int ComputeOutlierThresholds(vtkImageData *histogram, vtkDoubleArray *thresholds, double threshold)
Compute the thresholds (bin extents) that contain outliers for a single vtkImageData histogram.
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:42
vtkComputeHistogram2DOutliers::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkComputeHistogram2DOutliers::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkComputeHistogram2DOutliers::~vtkComputeHistogram2DOutliers
~vtkComputeHistogram2DOutliers()
vtkComputeHistogram2DOutliers::ComputeOutlierThresholds
virtual int ComputeOutlierThresholds(vtkCollection *histograms, vtkCollection *thresholds)
Compute the thresholds (essentially bin extents) that contain outliers for a collection of vtkImageDa...
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:47
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:42
vtkComputeHistogram2DOutliers::SetInputHistogramImageDataConnection
void SetInputHistogramImageDataConnection(vtkAlgorithmOutput *cxn)
Set the input histogram data as a (repeatable) vtkImageData.
Definition: vtkComputeHistogram2DOutliers.h:96
vtkComputeHistogram2DOutliers::SetInputTableConnection
void SetInputTableConnection(vtkAlgorithmOutput *cxn)
Set the source table data, from which data will be filtered.
Definition: vtkComputeHistogram2DOutliers.h:90