plastimatch
Loading...
Searching...
No Matches
itk_resample.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _itk_resample_h_
5#define _itk_resample_h_
6
7#include "plmbase_config.h"
8#include "itk_image_type.h"
9#include "plm_image_header.h"
10
11template <class T> T
12vector_resample_image (const T& vf_image, const Plm_image_header* pih);
13
14template <class T> T
15resample_image (T& image, const Plm_image_header* pih,
16 float default_val, int interp_lin);
17template <class T> T
18resample_image (T& image, const Plm_image_header& pih,
19 float default_val, int interp_lin);
20
21template <class T> T
22resample_image (T& image, float spacing[3]);
23PLMBASE_API UCharVecImageType::Pointer
24resample_image (UCharVecImageType::Pointer image, float spacing[3]);
25
26template <class T, class U>
27static inline T
28itk_resample_image (T& image, const U& ref_image,
29 float default_val, int interp_lin)
30{
31 return resample_image (image, Plm_image_header(ref_image),
32 default_val, interp_lin);
33}
34
35template <class T> T
36subsample_image (T& image, int x_sampling_rate,
37 int y_sampling_rate, int z_sampling_rate,
38 float default_val);
39
40#endif
The Plm_image_header class defines the geometry of an image. It defines image origin,...
Definition plm_image_header.h:24
T resample_image(T &image, const Plm_image_header *pih, float default_val, int interp_lin)
Definition itk_resample.cxx:131
static T itk_resample_image(T &image, const U &ref_image, float default_val, int interp_lin)
Definition itk_resample.h:28
T vector_resample_image(const T &vf_image, const Plm_image_header *pih)
Definition itk_resample.cxx:23
T subsample_image(T &image, int x_sampling_rate, int y_sampling_rate, int z_sampling_rate, float default_val)
Definition itk_resample.cxx:267
#define PLMBASE_API
Definition plmbase_config.h:19