My Project
C2DPerfusionAnalysis Class Reference

A class to run an ICA on a heart perfusion series. More...

#include <mia/2d/perfusion.hh>

Collaboration diagram for C2DPerfusionAnalysis:
[legend]

Public Types

enum  EBoxSegmentation { bs_delta_feature , bs_delta_peak , bs_features , bs_unknown }
 Possible bases for LV-RV heart segmentation. More...
 

Public Member Functions

 C2DPerfusionAnalysis (size_t components, bool normalize, bool meanstrip)
 
P2DFilter get_crop_filter (float scale, C2DBounds &crop_start, EBoxSegmentation approach, const std::string &save_features="") const
 
P2DImage get_feature_image (int index) const
 
int get_LV_idx () const
 
int get_LV_peak_idx () const __attribute__((deprecated))
 
int get_LV_peak_time () const
 
std::vector< float > get_mixing_curve (unsigned idx) const
 
int get_movement_idx () const
 
int get_perfusion_idx () const
 
std::vector< C2DFImageget_references () const
 
int get_RV_idx () const
 
int get_RV_peak_idx () const __attribute__((deprecated))
 
int get_RV_peak_time () const
 
bool has_movement () const
 
bool run (const std::vector< C2DFImage > &series, const CIndepCompAnalysisFactory &icatool)
 
void save_coefs (const std::string &coefs_name) const
 
void save_feature_images (const std::string &base_name) const
 
void set_approach (CIndepCompAnalysis::EApproach approach)
 
void set_max_ica_iterations (size_t maxiter)
 
void set_min_movement_frequency (float min_freq)
 
void set_use_guess_model ()
 
 ~C2DPerfusionAnalysis ()
 

Static Public Attributes

static TDictMap< EBoxSegmentationsegmethod_dict
 

Detailed Description

A class to run an ICA on a heart perfusion series.

This class provides the tools for ICA based 2D perfusion image series. This class is specifically designed for the analysis of free breathingly aquired myocardial perfusion images.

Definition at line 42 of file perfusion.hh.

Member Enumeration Documentation

◆ EBoxSegmentation

Possible bases for LV-RV heart segmentation.

Enumerator
bs_delta_feature 

Segmentation based on the difference of the LV and RV feature images

bs_delta_peak 

Segmentation based on the difference of the LV and RV peak enhancenemt images

bs_features 

Segmentation based on the LV and RV feature images

bs_unknown 

place holder

Definition at line 46 of file perfusion.hh.

Constructor & Destructor Documentation

◆ C2DPerfusionAnalysis()

C2DPerfusionAnalysis::C2DPerfusionAnalysis ( size_t  components,
bool  normalize,
bool  meanstrip 
)

Constructor

Parameters
componentsnumber of independend components, 0 = auto estimate from [3,4,5,6,7]
normalizenormalize feature images
meanstripstrip mean from mixing time curves

◆ ~C2DPerfusionAnalysis()

C2DPerfusionAnalysis::~C2DPerfusionAnalysis ( )

Member Function Documentation

◆ get_crop_filter()

P2DFilter C2DPerfusionAnalysis::get_crop_filter ( float  scale,
C2DBounds crop_start,
EBoxSegmentation  approach,
const std::string &  save_features = "" 
) const

Evaluate an image cropping filter. This code is specifically designed to deal with the segmentantion of the left heart ventricle in short axis heart MRI The algorithm evaluates the centers of the LV and the RV and uses the distance between both to estimata a bounding box. Some heuristics are used to check whether the segmentation makes sense

Parameters
scaleenlargement scale of the bounding box to create the cropping region
[out]crop_startreturns the left upper corner of the cropping region that can be used to adjust segmentations
approachon what input data to base thesegmentation on
save_featuresif not empty store feature images in files with this prefix
Returns
the cropping filter or C2DFilterPlugin::ProductPtr() if the segmentation fails.

◆ get_feature_image()