21 #ifndef mia_core_ica_template_hh 22 #define mia_core_ica_template_hh 28 #ifndef EXPORT_TDataSeriesICA 30 # define EXPORT_TDataSeriesICA __declspec(dllimport) 33 # define EXPORT_TDataSeriesICA __attribute__((visibility("default"))) 35 # define EXPORT_TDataSeriesICA 68 typedef typename Data::Pointer
PData;
80 TDataSeriesICA(
const CIndepCompAnalysisFactory& icatool,
const std::vector<Data>& initializer,
bool strip_mean);
88 bool run(
size_t ncomponents,
bool strip_mean,
bool ica_normalize,
89 std::vector<std::vector<float> > guess = std::vector<std::vector<float> >());
105 Data get_mix(
size_t idx)
const;
108 const Data& get_mean_image()
const;
116 Data get_incomplete_mix(
size_t idx,
const IndexSet& skip)
const;
124 Data get_partial_mix(
size_t idx,
const IndexSet& comps)
const;
135 std::vector<float> get_mixing_curve(
unsigned idx)
const;
138 PData get_feature_image(
size_t idx)
const;
146 PData get_delta_feature(
const IndexSet& plus,
const IndexSet& minus)
const;
153 void set_mixing_series(
size_t index,
const std::vector<float>& series);
160 void set_max_iterations(
int n);
166 void set_approach(CIndepCompAnalysis::EApproach approach);
172 typedef typename Data::dimsize_type dimsize_type;
std::shared_ptr< Image > normalize(const Image &image)
a normalizer for image intensities
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
CIndepCompAnalysis::IndexSet IndexSet
CIndepCompAnalysis::Pointer PIndepCompAnalysis
#define EXPORT_TDataSeriesICA
std::vector< std::vector< float > > CSlopeColumns
class to store the ICA weight matrix
Templated representation of a ICA series analyis.
#define NS_MIA_END
conveniance define to end the mia namespace