7 #ifndef __vtkPlusRfToBrightnessConvert_h 8 #define __vtkPlusRfToBrightnessConvert_h 10 #include "vtkPlusImageProcessingExport.h" 11 #include "vtkThreadedImageAlgorithm.h" 41 virtual void PrintSelf(ostream& os, vtkIndent indent)
VTK_OVERRIDE;
44 virtual PlusStatus ReadConfiguration(vtkXMLDataElement* rfToBrightnessElement);
47 virtual PlusStatus WriteConfiguration(vtkXMLDataElement* rfToBrightnessElement);
50 vtkSetMacro(ImageType, US_IMAGE_TYPE);
51 vtkGetMacro(ImageType, US_IMAGE_TYPE);
53 vtkSetMacro(NumberOfHilbertFilterCoeffs,
int);
54 vtkGetMacro(NumberOfHilbertFilterCoeffs,
int);
56 vtkSetMacro(BrightnessScale,
double);
57 vtkGetMacro(BrightnessScale,
double);
63 virtual int RequestInformation(vtkInformation*,
64 vtkInformationVector**,
65 vtkInformationVector* outputVector);
67 void ThreadedRequestData( vtkInformation *request,
68 vtkInformationVector **inputVector,
69 vtkInformationVector *outputVector,
70 vtkImageData ***inData, vtkImageData **outData,
71 int outExt[6],
int id);
74 virtual void ComputeHilbertTransformCoeffs();
77 template<
typename ScalarType>
78 void ThreadedLineByLineHilbertTransform(
int inExt[6],
int outExt[6], vtkImageData ***inData, vtkImageData **outData,
int threadId);
81 template<
typename ScalarType>
82 PlusStatus ComputeHilbertTransform(ScalarType *hilbertTransformOutput, ScalarType *input,
int npt);
85 template<
typename ScalarType>
86 void ComputeAmplitudeILineQLine(
unsigned char *ampl, ScalarType *inputSignal, ScalarType *inputSignalHilbertTransformed,
int npt);
89 template<
typename ScalarType>
90 void ComputeAmplitudeIqLine(
unsigned char *ampl, ScalarType *inputSignal,
const int npt);
This class converts ultrasound RF data to brightness values.
std::vector< double > HilbertTransformCoeffs
int NumberOfHilbertFilterCoeffs