/usr/include/vtk-6.1/vtkComputeHistogram2DOutliers.h is in libvtk6-dev 6.1.0+dfsg2-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkComputeHistogram2DOutliers.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2009 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
// .NAME vtkComputeHistogram2DOutliers - compute the outliers in a set
// of 2D histograms and extract the corresponding row data.
//
// .SECTION Description
// This class takes a table and one or more vtkImageData histograms as input
// and computes the outliers in that data. In general it does so by
// identifying histogram bins that are removed by a median (salt and pepper)
// filter and below a threshold. This threshold is automatically identified
// to retrieve a number of outliers close to a user-determined value. This
// value is set by calling SetPreferredNumberOfOutliers(int).
//
// The image data input can come either as a multiple vtkImageData via the
// repeatable INPUT_HISTOGRAM_IMAGE_DATA port, or as a single
// vtkMultiBlockDataSet containing vtkImageData objects as blocks. One
// or the other must be set, not both (or neither).
//
// The output can be retrieved as a set of row ids in a vtkSelection or
// as a vtkTable containing the actual outlier row data.
//
// .SECTION See Also
// vtkExtractHistogram2D vtkPComputeHistogram2DOutliers
//
// .SECTION Thanks
// Developed by David Feng at Sandia National Laboratories
//------------------------------------------------------------------------------
#ifndef __vtkComputeHistogram2DOutliers_h
#define __vtkComputeHistogram2DOutliers_h
//------------------------------------------------------------------------------
#include "vtkFiltersImagingModule.h" // For export macro
#include "vtkSelectionAlgorithm.h"
//------------------------------------------------------------------------------
class vtkCollection;
class vtkDoubleArray;
class vtkIdTypeArray;
class vtkImageData;
class vtkTable;
//------------------------------------------------------------------------------
class VTKFILTERSIMAGING_EXPORT vtkComputeHistogram2DOutliers : public vtkSelectionAlgorithm
{
public:
static vtkComputeHistogram2DOutliers* New();
vtkTypeMacro(vtkComputeHistogram2DOutliers, vtkSelectionAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
vtkSetMacro(PreferredNumberOfOutliers,int);
vtkGetMacro(PreferredNumberOfOutliers,int);
//
vtkTable* GetOutputTable();
//BTX
enum InputPorts
{
INPUT_TABLE_DATA=0,
INPUT_HISTOGRAMS_IMAGE_DATA,
INPUT_HISTOGRAMS_MULTIBLOCK
};
enum OutputPorts
{
OUTPUT_SELECTED_ROWS=0,
OUTPUT_SELECTED_TABLE_DATA
};
//ETX
// Description:
// Set the source table data, from which data will be filtered.
void SetInputTableConnection(vtkAlgorithmOutput* cxn)
{ this->SetInputConnection(INPUT_TABLE_DATA,cxn); }
// Description:
// Set the input histogram data as a (repeatable) vtkImageData
void SetInputHistogramImageDataConnection(vtkAlgorithmOutput* cxn)
{ this->SetInputConnection(INPUT_HISTOGRAMS_IMAGE_DATA,cxn); }
// Description:
// Set the input histogram data as a vtkMultiBlockData set
// containing multiple vtkImageData objects.
void SetInputHistogramMultiBlockConnection(vtkAlgorithmOutput* cxn)
{ this->SetInputConnection(INPUT_HISTOGRAMS_MULTIBLOCK,cxn); }
protected:
vtkComputeHistogram2DOutliers();
~vtkComputeHistogram2DOutliers();
int PreferredNumberOfOutliers;
vtkTimeStamp BuildTime;
virtual int RequestData(
vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
virtual int FillInputPortInformation( int port, vtkInformation* info );
virtual int FillOutputPortInformation( int port, vtkInformation* info );
// Description:
// Compute the thresholds (essentially bin extents) that contain outliers for
// a collection of vtkImageData histograms.
virtual int ComputeOutlierThresholds(vtkCollection* histograms, vtkCollection* thresholds);
// Description:
// Compute the thresholds (bin extents) that contain outliers for a single vtkImageData histogram
virtual int ComputeOutlierThresholds(vtkImageData* histogram, vtkDoubleArray* thresholds, double threshold);
// Description:
// Take a set of range thresholds (bin extents) and filter out rows from the input table data that
// fits inside those thresholds.
virtual int FillOutlierIds(vtkTable* data, vtkCollection* thresholds, vtkIdTypeArray* rowIds, vtkTable* outTable);
private:
vtkComputeHistogram2DOutliers(const vtkComputeHistogram2DOutliers&); // Not implemented
void operator=(const vtkComputeHistogram2DOutliers&); // Not implemented
};
#endif
|