plastimatch
Loading...
Searching...
No Matches
volume.cxx File Reference
#include "plmbase_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "direction_matrices.h"
#include "interpolate.h"
#include "interpolate_macros.h"
#include "logfile.h"
#include "plm_int.h"
#include "plm_math.h"
#include "print_and_exit.h"
#include "volume_header.h"
#include "volume.h"

Macros

#define CONVERT_INPLACE(new_type, old_type, new_type_enum)
 

Functions

template<class T , class U >
static void convert_raw (T *new_img, const Volume *vol)
 
template<class T , class U >
static T * convert_raw (const Volume *vol)
 
Volumevolume_clone_empty (Volume *ref)
 
Volumevolume_clone (const Volume *ref)
 
void volume_convert_to_float (Volume *ref)
 
void volume_convert_to_short (Volume *ref)
 
void volume_convert_to_uchar (Volume *ref)
 
void volume_convert_to_uint16 (Volume *ref)
 
void volume_convert_to_uint32 (Volume *ref)
 
void volume_convert_to_int32 (Volume *ref)
 
void vf_convert_to_interleaved (Volume *vf)
 
void vf_convert_to_planar (Volume *ref)
 
template<class T >
static void clone_inner (Volume::Pointer &vol_out, const Volume *vol_in)
 
Volumevolume_difference (Volume *vol, Volume *warped)
 

Macro Definition Documentation

◆ CONVERT_INPLACE

#define CONVERT_INPLACE ( new_type,
old_type,
new_type_enum )
Value:
{ \
new_type *new_img = convert_raw<new_type,old_type> (ref); \
ref->pix_size = sizeof(new_type); \
ref->pix_type = new_type_enum; \
free (ref->img); \
ref->img = (void*) new_img; \
}
static void convert_raw(T *new_img, const Volume *vol)
Definition volume.cxx:21

Function Documentation

◆ clone_inner()

template<class T >
static void clone_inner ( Volume::Pointer & vol_out,
const Volume * vol_in )
static

◆ convert_raw() [1/2]

template<class T , class U >
static T * convert_raw ( const Volume * vol)
static

◆ convert_raw() [2/2]

template<class T , class U >
static void convert_raw ( T * new_img,
const Volume * vol )
static

◆ vf_convert_to_interleaved()

void vf_convert_to_interleaved ( Volume * vf)

◆ vf_convert_to_planar()

void vf_convert_to_planar ( Volume * ref)

◆ volume_clone()

Volume * volume_clone ( const Volume * ref)

◆ volume_clone_empty()

Volume * volume_clone_empty ( Volume * ref)

◆ volume_convert_to_float()

void volume_convert_to_float ( Volume * ref)

◆ volume_convert_to_int32()

void volume_convert_to_int32 ( Volume * ref)

◆ volume_convert_to_short()

void volume_convert_to_short ( Volume * ref)

◆ volume_convert_to_uchar()

void volume_convert_to_uchar ( Volume * ref)

◆ volume_convert_to_uint16()

void volume_convert_to_uint16 ( Volume * ref)

◆ volume_convert_to_uint32()

void volume_convert_to_uint32 ( Volume * ref)

◆ volume_difference()

Volume * volume_difference ( Volume * vol,
Volume * warped )