plastimatch
Loading...
Searching...
No Matches
plm_warp.cxx File Reference
#include "plm_config.h"
#include <time.h>
#include "bspline_warp.h"
#include "bspline_xform.h"
#include "itk_image_type.h"
#include "itk_warp.h"
#include "mha_io.h"
#include "plm_image.h"
#include "plm_image_header.h"
#include "plm_warp.h"
#include "print_and_exit.h"
#include "volume.h"
#include "xform.h"

Functions

static void plm_warp_itk (Plm_image::Pointer &im_warped, DeformationFieldType::Pointer *vf_out, const Xform::Pointer &xf_in, Plm_image_header *pih, const Plm_image::Pointer &im_in, float default_val, int interp_lin)
 
static void plm_warp_linear (Plm_image::Pointer &im_warped, DeformationFieldType::Pointer *vf_out, const Xform::Pointer &xf_in, const Plm_image_header *pih, const Plm_image::Pointer &im_in)
 
static void plm_warp_native (Plm_image::Pointer &im_warped, DeformationFieldType::Pointer *vf, const Xform::Pointer &xf_in, Plm_image_header *pih, const Plm_image::Pointer &im_in, float default_val, int interp_lin)
 
static void plm_warp_native_vec (Plm_image::Pointer &im_warped, DeformationFieldType::Pointer *vf, const Xform::Pointer &xf_in, Plm_image_header *pih, const Plm_image::Pointer &im_in, float default_val, int interp_lin)
 
void plm_warp (Plm_image::Pointer &im_warped, DeformationFieldType::Pointer *vf, const Xform::Pointer &xf_in, Plm_image_header *pih, const Plm_image::Pointer &im_in, float default_val, bool resample_linear_xf, bool use_itk, bool interp_lin)
 The plm_warp function creates a new image from an input image and a transform. It also, optionally, creates a vector field.
 

Function Documentation

◆ plm_warp()

void plm_warp ( Plm_image::Pointer & im_warped,
DeformationFieldType::Pointer * vf,
const Xform::Pointer & xf_in,
Plm_image_header * pih,
const Plm_image::Pointer & im_in,
float default_val,
bool resample_linear_xf,
bool use_itk,
bool interp_lin )

The plm_warp function creates a new image from an input image and a transform. It also, optionally, creates a vector field.

Parameters
im_warpedOutput: Output image (optional)
vfOutput: Output vf (optional)
xf_inInput: Input image warped by this xform
pihInput: Size of output image
im_inInput: Input image
default_valInput: Value for pixels without match
resample_linear_xfInput: Force resample of image for linear transforms
use_itkInput: Force use of itk (1) or not (0)
interp_linInput: Trilinear (1) or nn (0)

◆ plm_warp_itk()

static void plm_warp_itk ( Plm_image::Pointer & im_warped,
DeformationFieldType::Pointer * vf_out,
const Xform::Pointer & xf_in,
Plm_image_header * pih,
const Plm_image::Pointer & im_in,
float default_val,
int interp_lin )
static

◆ plm_warp_linear()

static void plm_warp_linear ( Plm_image::Pointer & im_warped,
DeformationFieldType::Pointer * vf_out,
const Xform::Pointer & xf_in,
const Plm_image_header * pih,
const Plm_image::Pointer & im_in )
static

◆ plm_warp_native()

static void plm_warp_native ( Plm_image::Pointer & im_warped,
DeformationFieldType::Pointer * vf,
const Xform::Pointer & xf_in,
Plm_image_header * pih,
const Plm_image::Pointer & im_in,
float default_val,
int interp_lin )
static

◆ plm_warp_native_vec()

static void plm_warp_native_vec ( Plm_image::Pointer & im_warped,
DeformationFieldType::Pointer * vf,
const Xform::Pointer & xf_in,
Plm_image_header * pih,
const Plm_image::Pointer & im_in,
float default_val,
int interp_lin )
static