You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.9 KiB
C++

/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageDotProduct.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.
=========================================================================*/
/**
* @class vtkImageDotProduct
* @brief Dot product of two vector images.
*
* vtkImageDotProduct interprets the scalar components of two images
* as vectors and takes the dot product vector by vector (pixel by pixel).
*/
#ifndef vtkImageDotProduct_h
#define vtkImageDotProduct_h
#include "vtkImagingMathModule.h" // For export macro
#include "vtkThreadedImageAlgorithm.h"
class VTKIMAGINGMATH_EXPORT vtkImageDotProduct : public vtkThreadedImageAlgorithm
{
public:
static vtkImageDotProduct* New();
vtkTypeMacro(vtkImageDotProduct, vtkThreadedImageAlgorithm);
/**
* Set the two inputs to this filter
*/
virtual void SetInput1Data(vtkDataObject* in) { this->SetInputData(0, in); }
virtual void SetInput2Data(vtkDataObject* in) { this->SetInputData(1, in); }
protected:
vtkImageDotProduct();
~vtkImageDotProduct() override {}
int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
int extent[6], int threadId) override;
private:
vtkImageDotProduct(const vtkImageDotProduct&) = delete;
void operator=(const vtkImageDotProduct&) = delete;
};
#endif
// VTK-HeaderTest-Exclude: vtkImageDotProduct.h