plastimatch
Loading...
Searching...
No Matches
cxt_extract.cxx File Reference
#include "plm_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkContourExtractor2DImageFilter.h"
#include "itkImage.h"
#include "itkImageLinearIteratorWithIndex.h"
#include "itkAndConstantToImageFilter.h"
#include "itkImageSliceConstIteratorWithIndex.h"
#include "cxt_extract.h"
#include "itk_image.h"
#include "itk_image_origin.h"
#include "itk_image_type.h"
#include "rtss.h"
#include "rtss_contour.h"
#include "rtss_roi.h"
#include "slice_extract.h"
#include "ss_img_extract.h"
#include "volume.h"

Functions

static void run_marching_squares (Rtss_roi *curr_structure, const UCharImage2DType::Pointer uchar_slice, unsigned int slice_no, const OriginType &origin, const SpacingType &spacing, const DirectionType &direction)
 
template<class T >
void cxt_extract (Rtss *cxt, T image, int num_structs, bool check_cxt_bits)
 
template<>
void cxt_extract (Rtss *cxt, UCharVecImageType::Pointer image, int num_structs, bool check_cxt_bits)
 
template void cxt_extract (Rtss *cxt, UInt32ImageType::Pointer image, int num_structs, bool check_cxt_bits)
 

Function Documentation

◆ cxt_extract() [1/3]

template<class T >
void cxt_extract ( Rtss * cxt,
T image,
int num_structs,
bool check_cxt_bits )

◆ cxt_extract() [2/3]

template<>
void cxt_extract ( Rtss * cxt,
UCharVecImageType::Pointer image,
int num_structs,
bool check_cxt_bits )

◆ cxt_extract() [3/3]

template void cxt_extract ( Rtss * cxt,
UInt32ImageType::Pointer image,
int num_structs,
bool check_cxt_bits )

◆ run_marching_squares()

static void run_marching_squares ( Rtss_roi * curr_structure,
const UCharImage2DType::Pointer uchar_slice,
unsigned int slice_no,
const OriginType & origin,
const SpacingType & spacing,
const DirectionType & direction )
static