plastimatch
Loading...
Searching...
No Matches
itk_local_intensity_correction.cxx File Reference
#include "plmutil_config.h"
#include <limits>
#include "itk_image.h"
#include "itk_image_header_compare.h"
#include "itk_resample.h"
#include "itkImageRegionIterator.h"
#include "itk_local_intensity_correction.h"
#include "itk_image_clone.h"
#include "itk_image_save.h"
#include "itkResampleImageFilter.h"
#include "itkTranslationTransform.h"
#include "itkNearestNeighborInterpolateImageFunction.h"
#include "itk_mask.h"
#include "itkMedianImageFilter.h"

Functions

UCharImageType::Pointer GetFullMask (FloatImageType::Pointer img)
 
void GetIntensityCorrectionField (FloatImageType::Pointer &source_image, FloatImageType::Pointer &reference_image, SizeType patch_size, UCharImageType::Pointer &source_mask, UCharImageType::Pointer &reference_mask, FloatImageType::Pointer &shift_field, FloatImageType::Pointer &scale_field)
 
FloatImageType::Pointer BlendField (FloatImageType::Pointer field, FloatImageType::Pointer source, bool trilinear)
 
void BlendIntensityCorrectionField (FloatImageType::Pointer &shift_field, FloatImageType::Pointer &scale_field, const FloatImageType::Pointer &source, const UCharImageType::Pointer &mask, bool trilinear)
 
void ApplyIntensityCorrectionField (FloatImageType::Pointer &img, const FloatImageType::Pointer &shift, const FloatImageType::Pointer &scale)
 
FloatImageType::Pointer ApplyMedianFilter (FloatImageType::Pointer img, SizeType mediansize)
 
FloatImageType::Pointer itk_local_intensity_correction (FloatImageType::Pointer &source_image, FloatImageType::Pointer &reference_image, SizeType patch_size, bool blend, SizeType mediansize)
 
FloatImageType::Pointer itk_local_intensity_correction (FloatImageType::Pointer &source_image, FloatImageType::Pointer &reference_image, SizeType patch_size, FloatImageType::Pointer &shift_field, FloatImageType::Pointer &scale_field, bool blend, SizeType mediansize)
 
FloatImageType::Pointer itk_masked_local_intensity_correction (FloatImageType::Pointer &source_image, FloatImageType::Pointer &reference_image, SizeType patch_size, UCharImageType::Pointer &source_mask, UCharImageType::Pointer &reference_mask, FloatImageType::Pointer &shift_field, FloatImageType::Pointer &scale_field, bool blend, SizeType mediansize)
 

Function Documentation

◆ ApplyIntensityCorrectionField()

void ApplyIntensityCorrectionField ( FloatImageType::Pointer & img,
const FloatImageType::Pointer & shift,
const FloatImageType::Pointer & scale )

◆ ApplyMedianFilter()

FloatImageType::Pointer ApplyMedianFilter ( FloatImageType::Pointer img,
SizeType mediansize )

◆ BlendField()

FloatImageType::Pointer BlendField ( FloatImageType::Pointer field,
FloatImageType::Pointer source,
bool trilinear )

◆ BlendIntensityCorrectionField()

void BlendIntensityCorrectionField ( FloatImageType::Pointer & shift_field,
FloatImageType::Pointer & scale_field,
const FloatImageType::Pointer & source,
const UCharImageType::Pointer & mask,
bool trilinear )

◆ GetFullMask()

UCharImageType::Pointer GetFullMask ( FloatImageType::Pointer img)

◆ GetIntensityCorrectionField()

void GetIntensityCorrectionField ( FloatImageType::Pointer & source_image,
FloatImageType::Pointer & reference_image,
SizeType patch_size,
UCharImageType::Pointer & source_mask,
UCharImageType::Pointer & reference_mask,
FloatImageType::Pointer & shift_field,
FloatImageType::Pointer & scale_field )

◆ itk_local_intensity_correction() [1/2]

FloatImageType::Pointer itk_local_intensity_correction ( FloatImageType::Pointer & source_image,
FloatImageType::Pointer & reference_image,
SizeType patch_size,
bool blend,
SizeType mediansize )

◆ itk_local_intensity_correction() [2/2]

FloatImageType::Pointer itk_local_intensity_correction ( FloatImageType::Pointer & source_image,
FloatImageType::Pointer & reference_image,
SizeType patch_size,
FloatImageType::Pointer & shift_field,
FloatImageType::Pointer & scale_field,
bool blend,
SizeType mediansize )

◆ itk_masked_local_intensity_correction()

FloatImageType::Pointer itk_masked_local_intensity_correction ( FloatImageType::Pointer & source_image,
FloatImageType::Pointer & reference_image,
SizeType patch_size,
UCharImageType::Pointer & source_mask,
UCharImageType::Pointer & reference_mask,
FloatImageType::Pointer & shift_field,
FloatImageType::Pointer & scale_field,
bool blend,
SizeType mediansize )