iMSTK
Interactive Medical Simulation Toolkit
imstkImageDistanceTransform.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkGeometryAlgorithm.h"
10 
11 namespace imstk
12 {
13 class ImageData;
14 
21 {
22 public:
24  virtual ~ImageDistanceTransform() override = default;
25 
26 public:
27  std::shared_ptr<ImageData> getOutputImage() const;
28 
32  void setInputImage(std::shared_ptr<ImageData> refImage);
33 
34  imstkGetMacro(UseUnsigned, bool);
35  imstkSetMacro(UseUnsigned, bool);
36 
37 protected:
38  void requestUpdate() override;
39 
40 private:
41  bool m_UseUnsigned = false;
42 };
43 } // namespace imstk
Compound Geometry.
void requestUpdate() override
Users can implement this for the logic to be run.
Abstract base class for geometry algorithms. GeometryAlgorithms take N input geometries and produce N...
This filter generates a signed or unsigned distance transform from a binary mask. ...
void setInputImage(std::shared_ptr< ImageData > refImage)
Required input, port 0.