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  //
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 
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
vtkComputeHistogram2DOutliers::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
vtkFiltersImagingModule.h
vtkComputeHistogram2DOutliers
compute the outliers in a set of 2D histograms and extract the corresponding row data.
Definition: vtkComputeHistogram2DOutliers.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkComputeHistogram2DOutliers::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
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)
VTKFILTERSIMAGING_EXPORT
#define VTKFILTERSIMAGING_EXPORT
Definition: vtkFiltersImagingModule.h:15
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkCollection
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:53
vtkComputeHistogram2DOutliers::New
static vtkComputeHistogram2DOutliers * New()
vtkComputeHistogram2DOutliers::InputPorts
InputPorts
Definition: vtkComputeHistogram2DOutliers.h:75
vtkComputeHistogram2DOutliers::SetInputHistogramMultiBlockConnection
void SetInputHistogramMultiBlockConnection(vtkAlgorithmOutput *cxn)
Definition: vtkComputeHistogram2DOutliers.h:102
vtkComputeHistogram2DOutliers::PreferredNumberOfOutliers
int PreferredNumberOfOutliers
Definition: vtkComputeHistogram2DOutliers.h:110
vtkComputeHistogram2DOutliers::GetOutputTable
vtkTable * GetOutputTable()
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkComputeHistogram2DOutliers::INPUT_HISTOGRAMS_IMAGE_DATA
@ INPUT_HISTOGRAMS_IMAGE_DATA
Definition: vtkComputeHistogram2DOutliers.h:77
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkComputeHistogram2DOutliers::OutputPorts
OutputPorts
Definition: vtkComputeHistogram2DOutliers.h:81
vtkComputeHistogram2DOutliers::ComputeOutlierThresholds
virtual int ComputeOutlierThresholds(vtkImageData *histogram, vtkDoubleArray *thresholds, double threshold)
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkComputeHistogram2DOutliers::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkComputeHistogram2DOutliers::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkComputeHistogram2DOutliers::~vtkComputeHistogram2DOutliers
~vtkComputeHistogram2DOutliers()
vtkComputeHistogram2DOutliers::ComputeOutlierThresholds
virtual int ComputeOutlierThresholds(vtkCollection *histograms, vtkCollection *thresholds)
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:46
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
vtkComputeHistogram2DOutliers::SetInputHistogramImageDataConnection
void SetInputHistogramImageDataConnection(vtkAlgorithmOutput *cxn)
Definition: vtkComputeHistogram2DOutliers.h:95
vtkComputeHistogram2DOutliers::SetInputTableConnection
void SetInputTableConnection(vtkAlgorithmOutput *cxn)
Definition: vtkComputeHistogram2DOutliers.h:89