Libs/Image/ImageUtils.h
Namespaces
| Name |
|---|
| shapeworks User usage reporting (telemetry) |
Classes
| Name | |
|---|---|
| class | shapeworks::EigenThinPlateSplineKernelTransform |
| class | shapeworks::ImageUtils Helper functions for image. |
Source code
#pragma once
#include <itkThinPlateSplineKernelTransform.h>
#include "Image.h"
namespace shapeworks {
using PixelType = float;
using ImageType = itk::Image<PixelType, 3>;
class EigenThinPlateSplineKernelTransform : public itk::ThinPlateSplineKernelTransform<double, 3> {
public:
using Self = EigenThinPlateSplineKernelTransform;
using Superclass = itk::ThinPlateSplineKernelTransform<double, 3>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkOverrideGetNameOfClassMacro(EigenThinPlateSplineKernelTransform);
void ComputeWMatrix();
protected:
EigenThinPlateSplineKernelTransform() = default;
};
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 = EigenThinPlateSplineKernelTransform;
static TPSTransform::Pointer createWarpTransform(const std::string& source_landmarks_file,
const std::string& target_landmarks_file, const int stride = 1);
static void register_itk_factories();
static ImageType::Pointer make_axis_aligned(ImageType::Pointer input);
};
} // namespace shapeworks
Updated on 2026-10-11 at 04:33:09 +0000