Class CosImageFilter


public class CosImageFilter extends ImageFilter
Computes the cosine of each pixel. This filter is templated over the pixel type of the input image and the pixel type of the output image. The filter walks over all of the pixels in the input image, and for each pixel does the following: cast the pixel value to double , apply the std::cos() function to the double value, cast the double value resulting from std::cos() to the pixel type of the output image, store the cast value into the output image. The filter expects both images to have the same dimension (e.g. both 2D, or both 3D, or both ND) See: itk::simple::Cos for the procedural interface itk::CosImageFilter for the Doxygen on the original ITK class. C++ includes: sitkCosImageFilter.h
  • Constructor Details

    • CosImageFilter

      protected CosImageFilter(long cPtr, boolean cMemoryOwn)
    • CosImageFilter

      public CosImageFilter()
      itk::simple::CosImageFilter::CosImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(CosImageFilter obj)
    • swigRelease

      protected static long swigRelease(CosImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::CosImageFilter::~CosImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • getName

      public String getName()
      std::string itk::simple::CosImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::CosImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Image execute(Image image1)
      Image itk::simple::CosImageFilter::Execute(Image &&image1) Execute the filter on the input image