Skip to content

Libs/Image/ImageUtils.h

Namespaces

Name
shapeworks
User usage reporting (telemetry)

Classes

Name
class shapeworks::ImageUtils
Helper functions for image.

Source code

#pragma once

#include <itkThinPlateSplineKernelTransform.h>

#include "Image.h"
//#include "ShapeworksUtils.h"

namespace shapeworks {

class ImageUtils {
 public:
  static PhysicalRegion boundingBox(const std::vector<std::string>& filenames, Image::PixelType isoValue = 1.0);

  static PhysicalRegion boundingBox(const std::vector<std::reference_wrapper<const Image>>& images,
                                    Image::PixelType isoValue = 1.0);

  using TPSTransform = itk::ThinPlateSplineKernelTransform<double, 3>;
  static TPSTransform::Pointer createWarpTransform(const std::string& source_landmarks_file,
                                                   const std::string& target_landmarks_file, const int stride = 1);
};

}  // namespace shapeworks

Updated on 2024-11-11 at 19:51:46 +0000