VTK  9.1.0
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
54
55//------------------------------------------------------------------------------
56class vtkCollection;
57class vtkDoubleArray;
58class vtkIdTypeArray;
59class vtkImageData;
60class vtkTable;
61//------------------------------------------------------------------------------
62class VTKFILTERSIMAGING_EXPORT vtkComputeHistogram2DOutliers : public vtkSelectionAlgorithm
63{
64public:
67 void PrintSelf(ostream& os, vtkIndent indent) override;
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 {
92 this->SetInputConnection(INPUT_TABLE_DATA, cxn);
93 }
94
99 {
100 this->SetInputConnection(INPUT_HISTOGRAMS_IMAGE_DATA, cxn);
101 }
102
108 {
109 this->SetInputConnection(INPUT_HISTOGRAMS_MULTIBLOCK, cxn);
110 }
111
112protected:
115
118
120
123
128 virtual int ComputeOutlierThresholds(vtkCollection* histograms, vtkCollection* thresholds);
129
134 vtkImageData* histogram, vtkDoubleArray* thresholds, double threshold);
135
140 virtual int FillOutlierIds(
141 vtkTable* data, vtkCollection* thresholds, vtkIdTypeArray* rowIds, vtkTable* outTable);
142
143private:
145 void operator=(const vtkComputeHistogram2DOutliers&) = delete;
146};
147
148#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 ordered lists of objects
Definition: vtkCollection.h:53
compute the outliers in a set of 2D histograms and extract the corresponding row data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputTableConnection(vtkAlgorithmOutput *cxn)
Set the source table data, from which data will be filtered.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkComputeHistogram2DOutliers * New()
void SetInputHistogramMultiBlockConnection(vtkAlgorithmOutput *cxn)
Set the input histogram data as a vtkMultiBlockData set containing multiple vtkImageData objects.
virtual int ComputeOutlierThresholds(vtkCollection *histograms, vtkCollection *thresholds)
Compute the thresholds (essentially bin extents) that contain outliers for a collection of vtkImageDa...
~vtkComputeHistogram2DOutliers() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetInputHistogramImageDataConnection(vtkAlgorithmOutput *cxn)
Set the input histogram data as a (repeatable) vtkImageData.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
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 ...
dynamic, self-adjusting array of double
dynamic, self-adjusting array of vtkIdType
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
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:172
record modification and/or execution time
Definition: vtkTimeStamp.h:52
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ data
Definition: vtkX3D.h:321