34 #ifndef AIMS_SPARSEMATRIX_CIFTITOOLS_H 35 #define AIMS_SPARSEMATRIX_CIFTITOOLS_H 55 class SparseOrDenseMatrix;
74 typedef std::vector<carto::rc_ptr<TimeTexture<float> > >
TextureList;
78 const BrainStuctureToMeshMap & smap = BrainStuctureToMeshMap() );
103 RoiTextureList *roiTextureFromDimension(
int dim )
const;
119 TextureList *expandedValueTextureFromDimension(
121 const std::vector<int> & dim_indices_pos,
122 TextureList* existing_tex_list = 0 )
const;
129 static BrainStuctureToMeshMap defaultBrainStructureToMeshMap();
130 int valuesDimNum()
const;
134 static std::string dimensionType(
carto::Object cifti_info,
int dim );
135 std::string dimensionType(
int dim )
const;
142 template <
typename T>
143 void buildDimensionObjectFromLabelsTexture(
int dim,
146 static void getLabelsInfo(
carto::Object cifti_info, RoiTextureList & );
147 static void getSeriesInfo(
carto::Object cifti_info, RoiTextureList & );
148 void getParcelsInfo(
carto::Object cifti_info, RoiTextureList & )
const;
150 RoiTextureList & )
const;
151 void getBrainModelsTexture(
153 const std::vector<int> & dim_indices_pos )
const;
154 void getParcelsTexture(
156 const std::vector<int> & dim_indices_pos )
const;
157 std::list<std::string> getBrainStructures(
int dim,
158 bool keepSurfaces =
true,
159 bool keepVoxels =
true )
const;
162 std::vector<int> getIndicesForBrainStructure(
163 int dim,
const std::string & struct_name )
const;
167 std::vector<int> getIndicesForSurfaceIndices(
168 int dim,
int surface_num,
const std::vector<int> & roi_indices )
const;
169 size_t getBrainStructureMeshNumberOfNodes(
170 int dim,
const std::string & struct_name )
const;
178 std::list<std::string> & brainmodels,
179 int & surf_index,
int surf_hint = 0 )
const 181 return isMatchingSurfaceOrTexture( dim, mesh, brainmodels, surf_index,
190 template <
typename T>
192 std::list<std::string> & brainmodels,
193 int & surf_index,
int surf_hint = 0 )
const 195 return isMatchingSurfaceOrTexture( dim, tex, brainmodels, surf_index,
198 bool isMatchingSurfaceOrTexture(
int dim,
size_t nvertices,
200 std::list<std::string> & brainmodels,
202 int surf_hint = 0 )
const;
205 template <
typename T>
bool 206 isMatchingSurfaceOrTexture(
int dim,
const T & mesh,
207 std::list<std::string> & brainmodels,
208 int & surf_index,
int surf_hint = 0 )
const;
209 void getSurfaceModelTexture(
211 const BrainStuctureToMeshMap & smap,
213 const std::vector<int> & dim_indices_pos,
214 unsigned nsurfaces )
const;
220 BrainStuctureToMeshMap _smap;
The class for EcatSino data write operation.
The template class to manage a mesh with time if needed.