Skip to content

shapeworks::ImageUtils

Helper functions for image.

#include <ImageUtils.h>

Public Types

Name
using itk::ThinPlateSplineKernelTransform< double, 3 > TPSTransform
computes a thin plate spline (TSP) transform from the source to the target landmarks (in the given files) using every stride points

Public Functions

Name
PhysicalRegion boundingBox(const std::vector< std::string > & filenames, Image::PixelType isoValue =1.0)
calculate bounding box for images using the region of data <= the given isoValue
PhysicalRegion boundingBox(const std::vector< std::reference_wrapper< const Image > > & images, Image::PixelType isoValue =1.0)
calculate bounding box for shapework images using the region of data <= the given isoValue
TPSTransform::Pointer createWarpTransform(const std::string & source_landmarks_file, const std::string & target_landmarks_file, const int stride =1)

Public Types Documentation

using TPSTransform

using shapeworks::ImageUtils::TPSTransform =  itk::ThinPlateSplineKernelTransform<double, 3>;

computes a thin plate spline (TSP) transform from the source to the target landmarks (in the given files) using every stride points

Public Functions Documentation

function boundingBox

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

calculate bounding box for images using the region of data <= the given isoValue

function boundingBox

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

calculate bounding box for shapework images using the region of data <= the given isoValue

function createWarpTransform

static TPSTransform::Pointer createWarpTransform(
    const std::string & source_landmarks_file,
    const std::string & target_landmarks_file,
    const int stride =1
)

Updated on 2024-03-17 at 12:58:44 -0600