aimstil  5.0.5
image_common.h
Go to the documentation of this file.
1 #ifndef TIL_IMAGE_COMMON_H
2 #define TIL_IMAGE_COMMON_H
3 
4 // includes from TIL library
5 #include "til/til_common.h"
6 #include "til/ImageBase.h"
7 
8 
9 namespace til {
10 
18 
20  {
23 
26 
29  : m_dim(dim), m_vDim(vDim){};
30  };
31 
33  template < typename TImage >
34  ImageParameter param(const TImage &im)
35  {
36  allocationCheck(im);
37  return ImageParameter(im.dim(), im.vdim());
38  }
39 
40 } // namespace
41 
42 
43 #endif
44 
ImageParameter(numeric_array< int, 3 > dim, numeric_array< t_voxsize, 3 > vDim)
Simple constructor.
Definition: image_common.h:28
ImageParameter param(const TImage &im)
Create an ImageParameter structure out of an Image.
Definition: image_common.h:34
Collects image information to create similar images.
Definition: image_common.h:19
Belongs to package Box Do not include directly, include til/Box.h instead.
Definition: Accumulator.h:10
General macros, definitions and functions.
numeric_array< t_voxsize, 3 > m_vDim
Voxel size.
Definition: image_common.h:25
INLINE void allocationCheck(const TImage &im)
Check whether smart pointer and image are allocated.
Definition: imageTools.h:42
numeric_array< int, 3 > m_dim
Image dimensions.
Definition: image_common.h:22