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 "Image.h"
#include "ShapeworksUtils.h"

#include <itkThinPlateSplineKernelTransform.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);

};

} // shapeworks

Updated on 2024-07-14 at 17:07:25 +0000