iMSTK
Interactive Medical Simulation Toolkit
imstkImageResample.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 #include "imstkMath.h"
11 
12 namespace imstk
13 {
14 class ImageData;
15 
22 {
23 public:
24  ImageResample();
25  ~ImageResample() override = default;
26 
27 public:
28  std::shared_ptr<ImageData> getOutputImage() const;
29 
30  void setInputImage(std::shared_ptr<ImageData> inputData);
31 
32  imstkGetMacro(Dimensions, const Vec3i&);
33 
34  imstkSetMacro(Dimensions, const Vec3i&);
35 
36 protected:
37  void requestUpdate() override;
38 
39 private:
40  Vec3i m_Dimensions;
41 };
42 } // namespace imstk
void requestUpdate() override
Users can implement this for the logic to be run.
Compound Geometry.
Abstract base class for geometry algorithms. GeometryAlgorithms take N input geometries and produce N...
Trilinearly Resamples a 3d image to different dimensions.