34 #ifndef vtkImageHistogram_h
35 #define vtkImageHistogram_h
37 #include "vtkImagingStatisticsModule.h"
40 VTK_ABI_NAMESPACE_BEGIN
43 class vtkImageHistogramThreadData;
44 class vtkImageHistogramSMPThreadLocal;
70 vtkSetMacro(ActiveComponent,
int);
71 vtkGetMacro(ActiveComponent,
int);
100 vtkSetMacro(MaximumNumberOfBins,
int);
101 vtkGetMacro(MaximumNumberOfBins,
int);
109 vtkSetMacro(NumberOfBins,
int);
110 vtkGetMacro(NumberOfBins,
int);
118 vtkSetMacro(BinOrigin,
double);
119 vtkGetMacro(BinOrigin,
double);
127 vtkSetMacro(BinSpacing,
double);
128 vtkGetMacro(BinSpacing,
double);
160 vtkSetVector2Macro(HistogramImageSize,
int);
161 vtkGetVector2Macro(HistogramImageSize,
int);
173 vtkGetMacro(HistogramImageScale,
int);
221 int HistogramImageSize[2];
242 friend class vtkImageHistogramFunctor;
245 VTK_ABI_NAMESPACE_END
Proxy object to connect input/output ports.
dynamic, self-adjusting array of vtkIdType
topologically and geometrically regular array of data
Compute the histogram for an image.
vtkTypeBool GenerateHistogramImage
void SetStencilData(vtkImageStencilData *stencil)
Use a stencil to compute the histogram for just a part of the image.
void SetHistogramImageScaleToLog()
Set the scale to use for the histogram image.
int RequestUpdateExtent(vtkInformation *vtkNotUsed(request), vtkInformationVector **inInfo, vtkInformationVector *vtkNotUsed(outInfo)) override
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
vtkImageHistogramThreadData * ThreadData
vtkTypeBool AutomaticBinning
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int ext[6], int id) override
This is part of the executive, but is public so that it can be accessed by non-member functions.
void ComputeImageScalarRange(vtkImageData *data, double range[2])
Compute the range of the data.
int FillOutputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
~vtkImageHistogram() override
void SetHistogramImageScaleToLinear()
Set the scale to use for the histogram image.
void SetStencilConnection(vtkAlgorithmOutput *algOutput)
Equivalent to SetInputConnection(1, algOutput).
static vtkImageHistogram * New()
vtkImageHistogramSMPThreadLocal * SMPThreadData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetHistogramImageScaleToSqrt()
Set the scale to use for the histogram image.
int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **inInfo, vtkInformationVector *vtkNotUsed(outInfo)) override
const char * GetHistogramImageScaleAsString()
Set the scale to use for the histogram image.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdTypeArray * Histogram
vtkIdTypeArray * GetHistogram()
Get the histogram as a vtkIdTypeArray.
vtkIdType GetTotal()
Get the total count of the histogram.
vtkImageStencilData * GetStencil()
Use a stencil to compute the histogram for just a part of the image.
efficient description of an image stencil
a simple class to control print indentation
Generic filter that has one input.