1 #ifndef TIL_SCALING_MAP_TOOLS_H 2 #define TIL_SCALING_MAP_TOOLS_H 16 template <
class TImage1,
class TImage2 >
24 throw std::invalid_argument(
"Input image has no elements");
28 mulFactor /= from.dim();
void convert(TTo &x, const TFrom &y)
Belongs to package Box Do not include directly, include til/Box.h instead.
ScalingMap< double > getScalingBetween(const TImage1 &from, const TImage2 &to)
Computes the mapping that transforms im1 into im2, assuming that they cover exactly the same volume i...
This file contains forward declarations of classes defined in the TIL library.
INLINE void allocationCheck(const TImage &im)
Check whether smart pointer and image are allocated.