37 #ifndef vtkImageHistogram_h
38 #define vtkImageHistogram_h
40 #include "vtkImagingStatisticsModule.h"
45 class vtkImageHistogramThreadData;
46 class vtkImageHistogramSMPThreadLocal;
72 vtkGetMacro(ActiveComponent,
int);
89 vtkGetMacro(AutomaticBinning,
int);
102 vtkGetMacro(MaximumNumberOfBins,
int);
111 vtkGetMacro(NumberOfBins,
int);
120 vtkGetMacro(BinOrigin,
double);
129 vtkGetMacro(BinSpacing,
double);
153 vtkGetMacro(GenerateHistogramImage,
int);
161 vtkSetVector2Macro(HistogramImageSize,
int);
162 vtkGetVector2Macro(HistogramImageSize,
int);
170 vtkSetClampMacro(HistogramImageScale,
int,
178 vtkGetMacro(HistogramImageScale,
int);
232 int HistogramImageSize[2];
253 friend class vtkImageHistogramFunctor;
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.
void SetStencilData(vtkImageStencilData *stencil)
Use a stencil to compute the histogram for just a part of the image.
void SetHistogramImageScaleToLog()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **inInfo, vtkInformationVector *vtkNotUsed(outInfo))
vtkImageHistogramThreadData * ThreadData
void ComputeImageScalarRange(vtkImageData *data, double range[2])
Compute the range of the data.
int GenerateHistogramImage
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetHistogramImageScaleToLinear()
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int ext[6], int id)
This is part of the executive, but is public so that it can be accessed by non-member functions.
void SetStencilConnection(vtkAlgorithmOutput *algOutput)
Equivalent to SetInputConnection(1, algOutput).
static vtkImageHistogram * New()
vtkImageHistogramSMPThreadLocal * SMPThreadData
virtual int RequestUpdateExtent(vtkInformation *vtkNotUsed(request), vtkInformationVector **inInfo, vtkInformationVector *vtkNotUsed(outInfo))
virtual int FillOutputPortInformation(int port, vtkInformation *info)
These method should be reimplemented by subclasses that have more than a single input or single outpu...
void SetHistogramImageScaleToSqrt()
const char * GetHistogramImageScaleAsString()
vtkIdTypeArray * Histogram
vtkIdTypeArray * GetHistogram()
Get the histogram as a vtkIdTypeArray.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkIdType GetTotal()
Get the total count of the histogram.
vtkImageStencilData * GetStencil()
efficient description of an image stencil
a simple class to control print indentation
Generic filter that has one input.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.