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

```cpp

pragma once

include

include "Image.h"

namespace shapeworks {

using PixelType = float; using ImageType = itk::Image;

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

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

using TPSTransform = itk::ThinPlateSplineKernelTransform; 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-03-31 at 16:02:11 +0000