Module: soma.aims¶
Here are listed members (classes, functions) of the soma.aims module. Note that this module is mainly a binding of the C++ aimsdata library, and corresponds to a C++ namespace. Thus once soma.aimsalgo is also imported, the namespace is fed with more classes. As a result the list here includes members from both libraries.
The aims module allows access to the AIMS library in python.
Comptibility and requirements¶
Since version 4.5.1 both Python 2 (2.7 and higher) and Python 3 (3.4 and higher) are supported. However as the module contains compiled code (python / C++ bindings) using specific python C interfaces (APIs/ABIs), PyAIMS has to be compiled separately for a given version of python.
PyAIMS also has bindings to the numpy library, allowing easy array manipulations. This also involves constraints on the Numpy ABI version: once PyAims is compiled, it is not possible to swith numpy to a different version featuring a different ABI (which pip often does without warning, unfortunately).
Most of it is a set of direct bindings to the AIMS C++ library API. But a few classes have been customized or specially written to make easy links to the python world. See also the small AIMS C++ developer doc.
aims contains mainly the AIMS and carto data structures and IO system. It covers several C++ libraries: cartobase, cartodata, graph, aimsdata, plus some C++ classes from the standard library (like std::vector)
Main classes¶
ReaderandWriterfor the generic IO system, which allows to read and write everything, and which can be, in most cases, replaced with the more convenient globalread()andwrite()functions.Finderis also part of the IO system to identify files and get information about them.Volume_<type>:
volumes. An important feature of Volumes is the link with thenumpy.ndarrayarrays, so all the power of numpy can be used to work on volumes. See for instanceVolume_FLOAT. Volumes of various types can be build using the convenience factory functionVolume(). Note that the older classesAimsDataare deprecated in the C++ library and have been removed from the python bindings in Aims 5.1.
carto.GenericObject: the dynamic C++ generic object which behaves much like a python object, and its proxyObjectwhich should always be used to access aGenericObjectAimsVector_<type>_<size> for fixed-size vectors, and their aliases for points:
Point3df,Point2df,Point3dvector_<type>, set_<type>, list_<type>, map_<type1>_<type2> provide bindings to the C++ std::vector, std::list, std::set, std::map template classes and easy conversions from / to python lists
rc_ptr_<type>: bridge with C++ reference counters, which should interact quite well, and most of the time transparently, with python reference counting
BucketMap_VOID: list of voxels. Created using the factory functionBucketMap()AimsTimeSurface_<polygons_size>_<texture_type=VOID>: meshes, and the factory function
AimsTimeSurface(). See for instanceAimsTimeSurface_3_VOID.TimeTexture_<type>: textures to map on meshes, and the factory function
TimeTexture().
AffineTransformation3d: the transformation class that allows referential conversionsConverter_<type1>_<type2> and ShallowConverter_<type1>_<type2>: conversions between data types (mainly volume types). See the factory functions
Converter()andShallowConverter()a few algorithms will be added
- class soma.aims.AffineTransformation3d¶
- class soma.aims.AffineTransformation3d(a0: aims.AffineTransformation3d)
- class soma.aims.AffineTransformation3d(a0: aims.Quaternion)
- class soma.aims.AffineTransformation3d(a0: carto.Object)
- class soma.aims.AffineTransformation3d(a0: vector_FLOAT)
Bases:
AffineTransformation3dBase- affine()¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- rotation(self) rc_ptr_Volume_FLOAT¶
- rotationaroundx(a0: float) rc_ptr_Volume_FLOAT¶
- rotationaroundy(a0: float) rc_ptr_Volume_FLOAT¶
- rotationaroundz(a0: float) rc_ptr_Volume_FLOAT¶
- scale(self, a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3)¶
- setRotationAffine(self, a0: float, a1: float, a2: float, a3: AimsVector_FLOAT_3 = Point3df(0, 0, 0))¶
- setToIdentity(self)¶
- setTranslation(self, a0: AimsVector_FLOAT_3)¶
- transformDouble(self, a0: float, a1: float, a2: float) AimsVector_DOUBLE_3¶
- transformNormalDouble(self, x: float, y: float, z: float) AimsVector_DOUBLE_3¶
- transformNormalFloat(self, x: float, y: float, z: float) AimsVector_FLOAT_3¶
- transformNormalPoint3dd(self, dir: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3¶
- transformNormalPoint3df(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- transformVectorDouble(self, x: float, y: float, z: float) AimsVector_DOUBLE_3¶
- transformVectorFloat(self, x: float, y: float, z: float) AimsVector_FLOAT_3¶
- transformVectorPoint3dd(self, vec: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3¶
- transformVectorPoint3df(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- translation(self) AimsVector_FLOAT_3¶
- translationTransform(tx: float, ty: float, tz: float) aims.AffineTransformation3d¶
- translationTransform(t: AimsVector_FLOAT_3) aims.AffineTransformation3d
- translationTransform(t: vector_FLOAT) aims.AffineTransformation3d
- class soma.aims.AffineTransformation3dBase¶
- class soma.aims.AffineTransformation3dBase(other: soma.AffineTransformation3dBase)
- class soma.aims.AffineTransformation3dBase(mat: vector_FLOAT)
- class soma.aims.AffineTransformation3dBase(mat: carto.Object)
Bases:
Transformation3d,AffineTransformationBase- getInverse(self) rc_ptr_Transformation¶
- scale(self, sizeFrom: AimsVector_FLOAT_3, sizeTo: AimsVector_FLOAT_3)¶
- setToIdentity(self)¶
- setTranslation(self, trans: AimsVector_FLOAT_3)¶
- transform(self, p: AimsVector_S16_3) AimsVector_S16_3¶
- transform(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3
- transform(self, pos: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3
- transform(self, x: float, y: float, z: float) AimsVector_DOUBLE_3
- transform(self, pos: vector_S32) vector_S32
- transform(self, pos: vector_FLOAT) vector_FLOAT
- transform(self, pos: vector_DOUBLE) vector_DOUBLE
- transformDouble(self, x: float, y: float, z: float) AimsVector_DOUBLE_3¶
- transformNormal(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- transformNormal(self, dir: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3
- transformNormal(self, x: float, y: float, z: float) AimsVector_DOUBLE_3
- transformUnitNormal(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- transformUnitNormal(self, dir: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3
- transformUnitNormal(self, x: float, y: float, z: float) AimsVector_DOUBLE_3
- transformVector(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- transformVector(self, vec: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3
- transformVector(self, x: float, y: float, z: float) AimsVector_DOUBLE_3
- transformVector(self, pos: vector_S32) vector_S32
- transformVector(self, pos: vector_FLOAT) vector_FLOAT
- transformVector(self, pos: vector_DOUBLE) vector_DOUBLE
- class soma.aims.AffineTransformationBase(order: int = 3)¶
- class soma.aims.AffineTransformationBase(other: soma.AffineTransformationBase)
- class soma.aims.AffineTransformationBase(mat: vector_FLOAT)
- class soma.aims.AffineTransformationBase(mat: carto.Object)
Bases:
Transformation- fromColumnVector(self, vec: vector_FLOAT)¶
- fromMatrix(value)¶
- getInverse(self) rc_ptr_Transformation¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setToIdentity(self)¶
- toColumnVector(self) vector_FLOAT¶
- toMatrix()¶
This function return a copy of the transformation matrix
- toVector(self) vector_FLOAT¶
- transform(self, pos: vector_S32) vector_S32¶
- transform(self, pos: vector_FLOAT) vector_FLOAT
- transform(self, pos: vector_DOUBLE) vector_DOUBLE
- class soma.aims.AimsApplication(a0: List, a1: object)¶
- class soma.aims.AimsApplication(a0: aims.AimsApplication)
Bases:
wrapper- initialize(self)¶
- soma.aims.AimsConnectedComponent(data: rc_ptr_Volume_S16, connectivity: aims.Connectivity.Type, valids: object, backgrnd: int = 0, bin: bool = True, minSize: int = 0, numMax: int = 0, verbose: bool = True)¶
- void AimsConnectedComponent(data, connectivity, valids, backgrnd=0,
bin=True, minSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_S16, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: BucketMap_S16, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction, Bucket version. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_U16, connectivity: aims.Connectivity.Type, valids: object, backgrnd: int = 0, bin: bool = True, minSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, valids, backgrnd=0,
bin=True, minSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_U16, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: BucketMap_U16, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction, Bucket version. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_S32, connectivity: aims.Connectivity.Type, valids: object, backgrnd: int = 0, bin: bool = True, minSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, valids, backgrnd=0,
bin=True, minSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_S32, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: BucketMap_S32, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction, Bucket version. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_U32, connectivity: aims.Connectivity.Type, valids: object, backgrnd: int = 0, bin: bool = True, minSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, valids, backgrnd=0,
bin=True, minSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_U32, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: BucketMap_U32, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction, Bucket version. The function modifies the input data, and does not return a new one.
- class soma.aims.AimsGraphReader(filename: object)¶
- class soma.aims.AimsGraphReader(a0: aims.AimsGraphReader)
Bases:
wrapper- setExcludeFilter(self, toexclude: set_STRING)¶
- setReadFilter(self, toread: set_STRING)¶
- class soma.aims.AimsGraphWriter(filename: object)¶
- class soma.aims.AimsGraphWriter(a0: aims.AimsGraphWriter)
Bases:
wrapper- Global = 1¶
- Keep = 0¶
- Local = 2¶
- writeElements(self, g: Graph, newmode: aims.AimsGraphWriter.SavingMode = aims.AimsGraphWriter.Keep, oldmode: aims.AimsGraphWriter.SavingMode = aims.AimsGraphWriter.Keep, saveOnlyModified: bool = False)¶
- class soma.aims.AimsHSV(a0: AimsHSV)¶
- class soma.aims.AimsHSV(a0: int = 0, a1: int = 0, a2: int = 0)
Bases:
wrapper
- class soma.aims.AimsMerge_S16_S16(type: merge_t, value: int = 0, label: int = 0)¶
- class soma.aims.AimsMerge_S16_S16(a0: AimsMerge_S16_S16)
Bases:
wrapper
- class soma.aims.AimsRGB(a0: AimsRGB)¶
- class soma.aims.AimsRGB(a0: AimsRGBA)
- class soma.aims.AimsRGB(a0: int = 0, a1: int = 0, a2: int = 0)
Bases:
wrapper
- class soma.aims.AimsRGBA(a0: AimsRGBA)¶
- class soma.aims.AimsRGBA(a0: AimsRGB)
- class soma.aims.AimsRGBA(a0: int = 0, a1: int = 0, a2: int = 0, a3: int = 0)
Bases:
wrapper
- soma.aims.AimsSurfaceTriangle¶
alias of
AimsTimeSurface_3_VOID
- soma.aims.AimsThreshold(*args, **kwargs)[source]¶
Create a AimsThreshold instance from input and output types. Types may be passed as keyword arguments intype and outtype, or dtype if both are the same. Otherwise the arguments are parsed to find types arguments. Types may be specified as allowed by typeCode().
Other arguments are otherwise passed to the constructor of the underlying threshold object. See for instance:
soma.aims.AimsThreshold_S16_S16.
- class soma.aims.AimsThreshold_FLOAT_S16(a0: threshold_t, a1: float, a2: float = 0, a3: float = 0)¶
Bases:
wrapper- AimsThreshold_FLOAT_S16(ttype, th1, th2=0,
background=0)
Thresholding types are specified as the soma.aims.threshold_t enum. Values are:
AIMS_LOWER_THAN
AIMS_LOWER_OR_EQUAL_TO
AIMS_GREATER_THAN
AIMS_GREATER_OR_EQUAL_TO
AIMS_EQUAL_TO
AIMS_DIFFER
AIMS_BETWEEN
AIMS_OUTSIDE
AIMS_BETWEEN_EXCLUDE_LOWER_BOUND
AIMS_BETWEEN_EXCLUDE_HIGHER_BOUND
AIMS_BETWEEN_EXCLUDE_BOUNDS
AIMS_OUTSIDE_INCLUDE_LOWER_BOUND
AIMS_OUTSIDE_INCLUDE_HIGHER_BOUND
AIMS_OUTSIDE_INCLUDE_BOUNDS
Use:
thresholded_vol = threshold(volume)
Apply non-binary thresholding: voxels passing the theshold are left with their initial value.
thresholded_vol = threshold.bin(volume)
Apply binary thresholding: voxels passing the theshold are set to a constant value – which one ?
- Parameters:
ttype (soma.aims.threshold_t enum) – thresholding type (see above)
th1 (float) – first (main) threshold
th2 (float) – second threshold (in case of double thresholding)
background (float) – value set to elements not passing the threshold condition
volume (Volume_S16) – input volume to be thresholded
volume – input volume to be thresholded
- Returns:
thresholded_vol (rc_ptr_Volume_FLOAT) – thresholded volume
AimsThreshold_FLOAT_S16(a0 (AimsThreshold_FLOAT_S16))
thresholded_vol = threshold(volume)
Apply non-binary thresholding (voxels passing the theshold are left with)
their initial value.
- Returns:
thresholded_vol – thresholded volume
- Return type:
- bin(self, a0: rc_ptr_Volume_FLOAT) rc_ptr_Volume_S16¶
thresholded_vol = threshold.bin(volume)
Apply binary thresholding: voxels passing the theshold are set to a constant value – which one ?
- Parameters:
volume (Volume_FLOAT) – input volume to be thresholded
- Returns:
thresholded_vol – thresholded volume
- Return type:
- class soma.aims.AimsThreshold_S16_S16(a0: threshold_t, a1: int, a2: int = 0, a3: int = 0)¶
Bases:
wrapper- AimsThreshold_S16_S16(ttype, th1, th2=0,
background=0)
Thresholding types are specified as the soma.aims.threshold_t enum. Values are:
AIMS_LOWER_THAN
AIMS_LOWER_OR_EQUAL_TO
AIMS_GREATER_THAN
AIMS_GREATER_OR_EQUAL_TO
AIMS_EQUAL_TO
AIMS_DIFFER
AIMS_BETWEEN
AIMS_OUTSIDE
AIMS_BETWEEN_EXCLUDE_LOWER_BOUND
AIMS_BETWEEN_EXCLUDE_HIGHER_BOUND
AIMS_BETWEEN_EXCLUDE_BOUNDS
AIMS_OUTSIDE_INCLUDE_LOWER_BOUND
AIMS_OUTSIDE_INCLUDE_HIGHER_BOUND
AIMS_OUTSIDE_INCLUDE_BOUNDS
Use:
thresholded_vol = threshold(volume)
Apply non-binary thresholding: voxels passing the theshold are left with their initial value.
thresholded_vol = threshold.bin(volume)
Apply binary thresholding: voxels passing the theshold are set to a constant value – which one ?
- Parameters:
ttype (soma.aims.threshold_t enum) – thresholding type (see above)
th1 (short) – first (main) threshold
th2 (short) – second threshold (in case of double thresholding)
background (short) – value set to elements not passing the threshold condition
volume (Volume_S16) – input volume to be thresholded
volume – input volume to be thresholded
- Returns:
thresholded_vol (rc_ptr_Volume_S16) – thresholded volume
AimsThreshold_S16_S16(a0 (AimsThreshold_S16_S16))
thresholded_vol = threshold(volume)
Apply non-binary thresholding (voxels passing the theshold are left with)
their initial value.
- Returns:
thresholded_vol – thresholded volume
- Return type:
- bin(self, a0: rc_ptr_Volume_S16) rc_ptr_Volume_S16¶
thresholded_vol = threshold.bin(volume)
Apply binary thresholding: voxels passing the theshold are set to a constant value – which one ?
- Parameters:
volume (Volume_S16) – input volume to be thresholded
- Returns:
thresholded_vol – thresholded volume
- Return type:
- soma.aims.AimsTimeSurface(*args, **kwargs)[source]¶
Create an instance of Aims mesh (AimsTimeSurface_<dim>_<dtype>) from a dimension parameter, or copies a mesh, or build it from arrays.
See for instance
AimsTimeSurface_3_VOIDUsages:
mesh1 = AimsTimeSurface() mesh2 = AimsTimeSurface(3) mesh3 = AimsTimeSurface(3, 'VOID') mesh4 = AimsTimeSurface(3, dtype='VOID') mesh5 = AimsTimeSurface(dim=3, dtype='VOID')
mesh6 = AimsTimeSurface(mesh)
mesh7 = AimsTimeSurface(vertices=[[1,2,3], [3,4,5.6]], polygons=[[0,1]]) mesh8 = AimsTimeSurface([[1,2,3], [3,4,5.6]], polygons=[[0,1]]) mesh9 = AimsTimeSurface([[1,2,3], [3,4,5.6]], None, [[0,1]]) mesh10 = AimsTimeSurface([[1,2,3], [3,4,5.6]], [[0,1]], normals=[])
- soma.aims.AimsTimeSurface_2¶
alias of
AimsTimeSurface_2_VOID
- class soma.aims.AimsTimeSurface_2_FLOAT¶
- class soma.aims.AimsTimeSurface_2_FLOAT(a0: AimsTimeSurface_2_FLOAT)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_2_FLOAT¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_2 | None¶
- texture(self, a0: int = 0) vector_FLOAT | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- class soma.aims.AimsTimeSurface_2_POINT2DF¶
- class soma.aims.AimsTimeSurface_2_POINT2DF(a0: AimsTimeSurface_2_POINT2DF)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_2_POINT2DF¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_2 | None¶
- texture(self, a0: int = 0) vector_POINT2DF | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- class soma.aims.AimsTimeSurface_2_VOID¶
- class soma.aims.AimsTimeSurface_2_VOID(a0: AimsTimeSurface_2_VOID)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_2_VOID¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_2 | None¶
- texture(self, a0: int = 0) vector_VOID | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- soma.aims.AimsTimeSurface_3¶
alias of
AimsTimeSurface_3_VOID
- class soma.aims.AimsTimeSurface_3_FLOAT¶
- class soma.aims.AimsTimeSurface_3_FLOAT(a0: AimsTimeSurface_3_FLOAT)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_3_FLOAT¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_3 | None¶
- texture(self, a0: int = 0) vector_FLOAT | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- class soma.aims.AimsTimeSurface_3_POINT2DF¶
- class soma.aims.AimsTimeSurface_3_POINT2DF(a0: AimsTimeSurface_3_POINT2DF)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_3_POINT2DF¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_3 | None¶
- texture(self, a0: int = 0) vector_POINT2DF | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- class soma.aims.AimsTimeSurface_3_VOID¶
- class soma.aims.AimsTimeSurface_3_VOID(a0: AimsTimeSurface_3_VOID)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_3_VOID¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_3 | None¶
- texture(self, a0: int = 0) vector_VOID | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- soma.aims.AimsTimeSurface_4¶
alias of
AimsTimeSurface_4_VOID
- class soma.aims.AimsTimeSurface_4_FLOAT¶
- class soma.aims.AimsTimeSurface_4_FLOAT(a0: AimsTimeSurface_4_FLOAT)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_4_FLOAT¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_4 | None¶
- texture(self, a0: int = 0) vector_FLOAT | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- class soma.aims.AimsTimeSurface_4_POINT2DF¶
- class soma.aims.AimsTimeSurface_4_POINT2DF(a0: AimsTimeSurface_4_POINT2DF)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_4_POINT2DF¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_4 | None¶
- texture(self, a0: int = 0) vector_POINT2DF | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- class soma.aims.AimsTimeSurface_4_VOID¶
- class soma.aims.AimsTimeSurface_4_VOID(a0: AimsTimeSurface_4_VOID)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_AimsTimeSurface_4_VOID¶
- header(self) Any¶
The header contains all meta-data.
- keys(self) List¶
- normal(self, a0: int = 0) vector_POINT3DF | None¶
- polygon(self, a0: int = 0) vector_AimsVector_U32_4 | None¶
- texture(self, a0: int = 0) vector_VOID | None¶
- updateNormals(self)¶
- vertex(self, a0: int = 0) vector_POINT3DF | None¶
- soma.aims.AimsVector(*args, **kwargs)[source]¶
Create an AimsVector instance from type and dimension arguments. Types may be passed as the keyword argument dtype. Otherwise the arguments are parsed to find types arguments. Dimension should be passed as the keyword argument dim, or is guessed from the input value(s).
Types may be specified as allowed by typeCode().
If unspecified, type is guessed from the 1st element of the vector data.
- class soma.aims.AimsVector_DOUBLE_2¶
- class soma.aims.AimsVector_DOUBLE_2(a0: float)
- class soma.aims.AimsVector_DOUBLE_2(a0: float, a1: float, a2: float)
- class soma.aims.AimsVector_DOUBLE_2(a0: AimsVector_DOUBLE_2)
- class soma.aims.AimsVector_DOUBLE_2(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_DOUBLE_2 | None)¶
- crossed(self, a0: AimsVector_DOUBLE_2) AimsVector_DOUBLE_3 | None¶
- dot(self, a0: AimsVector_DOUBLE_2) float¶
- fromObject(a0: carto.GenericObject) AimsVector_DOUBLE_2 | None¶
- list(self) List¶
- normalize(self) AimsVector_DOUBLE_2¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_DOUBLE_2)¶
- class soma.aims.AimsVector_DOUBLE_3¶
- class soma.aims.AimsVector_DOUBLE_3(a0: float)
- class soma.aims.AimsVector_DOUBLE_3(a0: float, a1: float, a2: float)
- class soma.aims.AimsVector_DOUBLE_3(a0: AimsVector_DOUBLE_3)
- class soma.aims.AimsVector_DOUBLE_3(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_DOUBLE_3 | None)¶
- crossed(self, a0: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3 | None¶
- dot(self, a0: AimsVector_DOUBLE_3) float¶
- fromObject(a0: carto.GenericObject) AimsVector_DOUBLE_3 | None¶
- list(self) List¶
- normalize(self) AimsVector_DOUBLE_3¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_DOUBLE_3)¶
- class soma.aims.AimsVector_DOUBLE_4¶
- class soma.aims.AimsVector_DOUBLE_4(a0: float)
- class soma.aims.AimsVector_DOUBLE_4(a0: float, a1: float, a2: float)
- class soma.aims.AimsVector_DOUBLE_4(a0: AimsVector_DOUBLE_4)
- class soma.aims.AimsVector_DOUBLE_4(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_DOUBLE_4 | None)¶
- crossed(self, a0: AimsVector_DOUBLE_4) AimsVector_DOUBLE_3 | None¶
- dot(self, a0: AimsVector_DOUBLE_4) float¶
- fromObject(a0: carto.GenericObject) AimsVector_DOUBLE_4 | None¶
- list(self) List¶
- normalize(self) AimsVector_DOUBLE_4¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_DOUBLE_4)¶
- class soma.aims.AimsVector_FLOAT_2¶
- class soma.aims.AimsVector_FLOAT_2(a0: float)
- class soma.aims.AimsVector_FLOAT_2(a0: float, a1: float, a2: float)
- class soma.aims.AimsVector_FLOAT_2(a0: AimsVector_FLOAT_2)
- class soma.aims.AimsVector_FLOAT_2(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_FLOAT_2 | None)¶
- crossed(self, a0: AimsVector_FLOAT_2) AimsVector_FLOAT_3 | None¶
- dot(self, a0: AimsVector_FLOAT_2) float¶
- fromObject(a0: carto.GenericObject) AimsVector_FLOAT_2 | None¶
- list(self) List¶
- normalize(self) AimsVector_FLOAT_2¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_FLOAT_2)¶
- class soma.aims.AimsVector_FLOAT_3¶
Bases:
wrapperThis class wraps an aims Point3df aka AimsVector<3, float> use the method items() to get a tuple out of it use setItems(Point3df) to affect new values
- arraydata(self) Any¶
- assign(self, a0: AimsVector_FLOAT_3 | None)¶
- crossed(self, a0: AimsVector_FLOAT_3) AimsVector_FLOAT_3 | None¶
- dot(self, a0: AimsVector_FLOAT_3) float¶
- fromObject(a0: carto.GenericObject) AimsVector_FLOAT_3 | None¶
- list(self) List¶
- normalize(self) AimsVector_FLOAT_3¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_FLOAT_3)¶
- class soma.aims.AimsVector_FLOAT_4¶
- class soma.aims.AimsVector_FLOAT_4(a0: float)
- class soma.aims.AimsVector_FLOAT_4(a0: float, a1: float, a2: float)
- class soma.aims.AimsVector_FLOAT_4(a0: AimsVector_FLOAT_4)
- class soma.aims.AimsVector_FLOAT_4(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_FLOAT_4 | None)¶
- crossed(self, a0: AimsVector_FLOAT_4) AimsVector_FLOAT_3 | None¶
- dot(self, a0: AimsVector_FLOAT_4) float¶
- fromObject(a0: carto.GenericObject) AimsVector_FLOAT_4 | None¶
- list(self) List¶
- normalize(self) AimsVector_FLOAT_4¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_FLOAT_4)¶
- class soma.aims.AimsVector_S16_2¶
- class soma.aims.AimsVector_S16_2(a0: int)
- class soma.aims.AimsVector_S16_2(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S16_2(a0: AimsVector_S16_2)
- class soma.aims.AimsVector_S16_2(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S16_2 | None)¶
- crossed(self, a0: AimsVector_S16_2) AimsVector_S16_3 | None¶
- dot(self, a0: AimsVector_S16_2) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S16_2 | None¶
- list(self) List¶
- normalize(self) AimsVector_S16_2¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S16_2)¶
- class soma.aims.AimsVector_S16_3¶
- class soma.aims.AimsVector_S16_3(a0: int)
- class soma.aims.AimsVector_S16_3(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S16_3(a0: AimsVector_S16_3)
- class soma.aims.AimsVector_S16_3(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S16_3 | None)¶
- crossed(self, a0: AimsVector_S16_3) AimsVector_S16_3 | None¶
- dot(self, a0: AimsVector_S16_3) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S16_3 | None¶
- list(self) List¶
- normalize(self) AimsVector_S16_3¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S16_3)¶
- class soma.aims.AimsVector_S16_4¶
- class soma.aims.AimsVector_S16_4(a0: int)
- class soma.aims.AimsVector_S16_4(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S16_4(a0: AimsVector_S16_4)
- class soma.aims.AimsVector_S16_4(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S16_4 | None)¶
- crossed(self, a0: AimsVector_S16_4) AimsVector_S16_3 | None¶
- dot(self, a0: AimsVector_S16_4) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S16_4 | None¶
- list(self) List¶
- normalize(self) AimsVector_S16_4¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S16_4)¶
- class soma.aims.AimsVector_S32_2¶
- class soma.aims.AimsVector_S32_2(a0: int)
- class soma.aims.AimsVector_S32_2(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S32_2(a0: AimsVector_S32_2)
- class soma.aims.AimsVector_S32_2(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S32_2 | None)¶
- crossed(self, a0: AimsVector_S32_2) AimsVector_S32_3 | None¶
- dot(self, a0: AimsVector_S32_2) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S32_2 | None¶
- list(self) List¶
- normalize(self) AimsVector_S32_2¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S32_2)¶
- class soma.aims.AimsVector_S32_3¶
- class soma.aims.AimsVector_S32_3(a0: int)
- class soma.aims.AimsVector_S32_3(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S32_3(a0: AimsVector_S32_3)
- class soma.aims.AimsVector_S32_3(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S32_3 | None)¶
- crossed(self, a0: AimsVector_S32_3) AimsVector_S32_3 | None¶
- dot(self, a0: AimsVector_S32_3) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S32_3 | None¶
- list(self) List¶
- normalize(self) AimsVector_S32_3¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S32_3)¶
- class soma.aims.AimsVector_S32_4¶
- class soma.aims.AimsVector_S32_4(a0: int)
- class soma.aims.AimsVector_S32_4(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S32_4(a0: AimsVector_S32_4)
- class soma.aims.AimsVector_S32_4(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S32_4 | None)¶
- crossed(self, a0: AimsVector_S32_4) AimsVector_S32_3 | None¶
- dot(self, a0: AimsVector_S32_4) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S32_4 | None¶
- list(self) List¶
- normalize(self) AimsVector_S32_4¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S32_4)¶
- class soma.aims.AimsVector_S64_2¶
- class soma.aims.AimsVector_S64_2(a0: int)
- class soma.aims.AimsVector_S64_2(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S64_2(a0: AimsVector_S64_2)
- class soma.aims.AimsVector_S64_2(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S64_2 | None)¶
- crossed(self, a0: AimsVector_S64_2) AimsVector_S64_3 | None¶
- dot(self, a0: AimsVector_S64_2) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S64_2 | None¶
- list(self) List¶
- normalize(self) AimsVector_S64_2¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S64_2)¶
- class soma.aims.AimsVector_S64_3¶
- class soma.aims.AimsVector_S64_3(a0: int)
- class soma.aims.AimsVector_S64_3(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S64_3(a0: AimsVector_S64_3)
- class soma.aims.AimsVector_S64_3(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S64_3 | None)¶
- crossed(self, a0: AimsVector_S64_3) AimsVector_S64_3 | None¶
- dot(self, a0: AimsVector_S64_3) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S64_3 | None¶
- list(self) List¶
- normalize(self) AimsVector_S64_3¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S64_3)¶
- class soma.aims.AimsVector_S64_4¶
- class soma.aims.AimsVector_S64_4(a0: int)
- class soma.aims.AimsVector_S64_4(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_S64_4(a0: AimsVector_S64_4)
- class soma.aims.AimsVector_S64_4(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_S64_4 | None)¶
- crossed(self, a0: AimsVector_S64_4) AimsVector_S64_3 | None¶
- dot(self, a0: AimsVector_S64_4) int¶
- fromObject(a0: carto.GenericObject) AimsVector_S64_4 | None¶
- list(self) List¶
- normalize(self) AimsVector_S64_4¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_S64_4)¶
- class soma.aims.AimsVector_U32_2¶
- class soma.aims.AimsVector_U32_2(a0: int)
- class soma.aims.AimsVector_U32_2(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_U32_2(a0: AimsVector_U32_2)
- class soma.aims.AimsVector_U32_2(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_U32_2 | None)¶
- crossed(self, a0: AimsVector_U32_2) AimsVector_U32_3 | None¶
- dot(self, a0: AimsVector_U32_2) int¶
- fromObject(a0: carto.GenericObject) AimsVector_U32_2 | None¶
- list(self) List¶
- normalize(self) AimsVector_U32_2¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_U32_2)¶
- class soma.aims.AimsVector_U32_3¶
- class soma.aims.AimsVector_U32_3(a0: int)
- class soma.aims.AimsVector_U32_3(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_U32_3(a0: AimsVector_U32_3)
- class soma.aims.AimsVector_U32_3(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_U32_3 | None)¶
- crossed(self, a0: AimsVector_U32_3) AimsVector_U32_3 | None¶
- dot(self, a0: AimsVector_U32_3) int¶
- fromObject(a0: carto.GenericObject) AimsVector_U32_3 | None¶
- list(self) List¶
- normalize(self) AimsVector_U32_3¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_U32_3)¶
- class soma.aims.AimsVector_U32_4¶
- class soma.aims.AimsVector_U32_4(a0: int)
- class soma.aims.AimsVector_U32_4(a0: int, a1: int, a2: int)
- class soma.aims.AimsVector_U32_4(a0: AimsVector_U32_4)
- class soma.aims.AimsVector_U32_4(a0: Any)
Bases:
wrapper- arraydata(self) Any¶
- assign(self, a0: AimsVector_U32_4 | None)¶
- crossed(self, a0: AimsVector_U32_4) AimsVector_U32_3 | None¶
- dot(self, a0: AimsVector_U32_4) int¶
- fromObject(a0: carto.GenericObject) AimsVector_U32_4 | None¶
- list(self) List¶
- normalize(self) AimsVector_U32_4¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- setItems(self, a0: AimsVector_U32_4)¶
- class soma.aims.BorderFiller_BOOL¶
- class soma.aims.BorderFiller_BOOL(a0: BorderFiller_BOOL)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_BOOL, value: bool = False, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_BOOL data,
const bool & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_BOOL instance to fill border.)
value (bool value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_BOOL, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_BOOL data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_BOOL instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_BOOL, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_BOOL data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_BOOL instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_BOOL, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_BOOL data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_BOOL instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_DOUBLE¶
- class soma.aims.BorderFiller_DOUBLE(a0: BorderFiller_DOUBLE)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_DOUBLE, value: float = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_DOUBLE data,
const double & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_DOUBLE instance to fill border.)
value (double value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_DOUBLE, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_DOUBLE data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_DOUBLE instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_DOUBLE, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_DOUBLE data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_DOUBLE instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_DOUBLE, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_DOUBLE data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_DOUBLE instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_FLOAT¶
- class soma.aims.BorderFiller_FLOAT(a0: BorderFiller_FLOAT)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_FLOAT, value: float = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_FLOAT data,
const float & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_FLOAT instance to fill border.)
value (float value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_FLOAT, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_FLOAT data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_FLOAT instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_FLOAT, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_FLOAT data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_FLOAT instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_FLOAT, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_FLOAT data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_FLOAT instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_RGB¶
- class soma.aims.BorderFiller_RGB(a0: BorderFiller_RGB)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_RGB, value: AimsRGB = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_RGB data,
const AimsRGB & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_RGB instance to fill border.)
value (AimsRGB value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_RGB, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_RGB data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_RGB instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_RGB, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_RGB data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_RGB instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_RGB, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_RGB data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_RGB instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_RGBA¶
- class soma.aims.BorderFiller_RGBA(a0: BorderFiller_RGBA)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_RGBA, value: AimsRGBA = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_RGBA data,
const AimsRGBA & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_RGBA instance to fill border.)
value (AimsRGBA value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_RGBA, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_RGBA data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_RGBA instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_RGBA, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_RGBA data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_RGBA instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_RGBA, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_RGBA data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_RGBA instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_S16¶
- class soma.aims.BorderFiller_S16(a0: BorderFiller_S16)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_S16, value: int = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_S16 data,
const short & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_S16 instance to fill border.)
value (short value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_S16, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_S16 data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_S16 instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_S16, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_S16 data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_S16 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_S16, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_S16 data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_S16 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_S32¶
- class soma.aims.BorderFiller_S32(a0: BorderFiller_S32)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_S32, value: int = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_S32 data,
const int & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_S32 instance to fill border.)
value (int value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_S32, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_S32 data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_S32 instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_S32, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_S32 data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_S32 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_S32, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_S32 data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_S32 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_U16¶
- class soma.aims.BorderFiller_U16(a0: BorderFiller_U16)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_U16, value: int = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_U16 data,
const unsigned short & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U16 instance to fill border.)
value (unsigned short value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_U16, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_U16 data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U16 instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_U16, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_U16 data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U16 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_U16, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_U16 data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U16 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_U32¶
- class soma.aims.BorderFiller_U32(a0: BorderFiller_U32)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_U32, value: int = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_U32 data,
const unsigned & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U32 instance to fill border.)
value (unsigned value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_U32, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_U32 data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U32 instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_U32, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_U32 data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U32 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_U32, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_U32 data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U32 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- class soma.aims.BorderFiller_U8¶
- class soma.aims.BorderFiller_U8(a0: BorderFiller_U8)
Bases:
wrapper- fillConstant(data: rc_ptr_Volume_U8, value: bytes = 0, unread_only: bool = False)¶
- static void fillConstant( rc_ptr_Volume_U8 data,
const unsigned char & value = 0, bool unread_only = false )
Fills volume border with a constant value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U8 instance to fill border.)
value (unsigned char value to fill border with (optional)) – Default is 0.
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False
- fillMedian(data: rc_ptr_Volume_U8, size: AimsVector_S64_4 = Point4dl(-1, -1, -1, -1), unreadOnly: bool = False)¶
- static void fillMedian( rc_ptr_Volume_U8 data,
Point4dl size = Point4dl(-1,-1,-1,-1), bool unreadOnly = false )
Fills the border with a median value. The median value is processed in the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U8 instance to fill border.)
size (Point4dl size of inside border to use to define median value) – [-1,-1,-1,-1] means that the median value is processed in the inside border of equal outside border size. if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0) (optional). Default is [-1,-1,-1,-1].
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillMirror(data: rc_ptr_Volume_U8, unreadOnly: bool = False)¶
- static void fillMirror( rc_ptr_Volume_U8 data,
bool unreadOnly = false )
Fills the border mirroring the inside border. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U8 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- fillNearest(data: rc_ptr_Volume_U8, unreadOnly: bool = False)¶
- static void fillNearest( rc_ptr_Volume_U8 data,
bool unreadOnly = false )
Fills the border with the nearest inside voxel value. The function modifies the input data, and does not return a new one.
- Parameters:
data (Volume_U8 instance to fill border.)
unread_only (bool (optional)) – For partial reading, fill the data only where it has not been read. Default is False.
- soma.aims.BucketMap(*args, **kwargs)[source]¶
Create an instance of Aims bucket (BucketMap_<type>) from a type parameter, which may be specified as the dtype keyword argument, or as one of the arguments if one is identitied as a type.
The default type is ‘VOID’.
Type definitions should match those accepted by typeCode().
- class soma.aims.BucketMap_DOUBLE¶
- class soma.aims.BucketMap_DOUBLE(a0: BucketMap_DOUBLE)
Bases:
RCObject- class Bucket¶
- class Bucket(a0: BucketMap_DOUBLE.Bucket)
Bases:
wrapper- clear(self)¶
- has_key(self, a0: AimsVector_S16_3) bool¶
- items()¶
- iteritems()¶
- keys(self) Tuple¶
- clear(self)¶
- erase(self, a0: int)¶
- erase(self, a0: AimsVector_S16_3) None
- fromObject(a0: carto.GenericObject) rc_ptr_BucketMap_DOUBLE¶
- header(self) Any¶
The header contains all meta-data.
- insert(self, a0: AimsVector_S16_3, a1: float = double())¶
- insert(self, t: int, a1: AimsVector_S16_3, a2: float = double()) None
- items()¶
- iteritems()¶
- keys(self) List¶
- merge(self, a0: BucketMap_DOUBLE)¶
- rcToObject(self) carto.Object¶
- class soma.aims.BucketMap_FLOAT¶
- class soma.aims.BucketMap_FLOAT(a0: BucketMap_FLOAT)
Bases:
RCObject- class Bucket¶
- class Bucket(a0: BucketMap_FLOAT.Bucket)
Bases:
wrapper- clear(self)¶
- has_key(self, a0: AimsVector_S16_3) bool¶
- items()¶
- iteritems()¶
- keys(self) Tuple¶
- clear(self)¶
- erase(self, a0: int)¶
- erase(self, a0: AimsVector_S16_3) None
- fromObject(a0: carto.GenericObject) rc_ptr_BucketMap_FLOAT¶
- header(self) Any¶
The header contains all meta-data.
- insert(self, a0: AimsVector_S16_3, a1: float = float())¶
- insert(self, t: int, a1: AimsVector_S16_3, a2: float = float()) None
- items()¶
- iteritems()¶
- keys(self) List¶
- merge(self, a0: BucketMap_FLOAT)¶
- rcToObject(self) carto.Object¶
- class soma.aims.BucketMap_S16¶
- class soma.aims.BucketMap_S16(a0: BucketMap_S16)
Bases:
RCObject- class Bucket¶
- class Bucket(a0: BucketMap_S16.Bucket)
Bases:
wrapper- clear(self)¶
- has_key(self, a0: AimsVector_S16_3) bool¶
- items()¶
- iteritems()¶
- keys(self) Tuple¶
- clear(self)¶
- erase(self, a0: int)¶
- erase(self, a0: AimsVector_S16_3) None
- fromObject(a0: carto.GenericObject) rc_ptr_BucketMap_S16¶
- header(self) Any¶
The header contains all meta-data.
- insert(self, a0: AimsVector_S16_3, a1: int = short())¶
- insert(self, t: int, a1: AimsVector_S16_3, a2: int = short()) None
- items()¶
- iteritems()¶
- keys(self) List¶
- merge(self, a0: BucketMap_S16)¶
- rcToObject(self) carto.Object¶
- class soma.aims.BucketMap_S32¶
- class soma.aims.BucketMap_S32(a0: BucketMap_S32)
Bases:
RCObject- class Bucket¶
- class Bucket(a0: BucketMap_S32.Bucket)
Bases:
wrapper- clear(self)¶
- has_key(self, a0: AimsVector_S16_3) bool¶
- items()¶
- iteritems()¶
- keys(self) Tuple¶
- clear(self)¶
- erase(self, a0: int)¶
- erase(self, a0: AimsVector_S16_3) None
- fromObject(a0: carto.GenericObject) rc_ptr_BucketMap_S32¶
- header(self) Any¶
The header contains all meta-data.
- insert(self, a0: AimsVector_S16_3, a1: int = int())¶
- insert(self, t: int, a1: AimsVector_S16_3, a2: int = int()) None
- items()¶
- iteritems()¶
- keys(self) List¶
- merge(self, a0: BucketMap_S32)¶
- rcToObject(self) carto.Object¶
- class soma.aims.BucketMap_U16¶
- class soma.aims.BucketMap_U16(a0: BucketMap_U16)
Bases:
RCObject- class Bucket¶
- class Bucket(a0: BucketMap_U16.Bucket)
Bases:
wrapper- clear(self)¶
- has_key(self, a0: AimsVector_S16_3) bool¶
- items()¶
- iteritems()¶
- keys(self) Tuple¶
- clear(self)¶
- erase(self, a0: int)¶
- erase(self, a0: AimsVector_S16_3) None
- fromObject(a0: carto.GenericObject) rc_ptr_BucketMap_U16¶
- header(self) Any¶
The header contains all meta-data.
- insert(self, a0: AimsVector_S16_3, a1: int = ::uint16_t())¶
- insert(self, t: int, a1: AimsVector_S16_3, a2: int = ::uint16_t()) None
- items()¶
- iteritems()¶
- keys(self) List¶
- merge(self, a0: BucketMap_U16)¶
- rcToObject(self) carto.Object¶
- class soma.aims.BucketMap_U32¶
- class soma.aims.BucketMap_U32(a0: BucketMap_U32)
Bases:
RCObject- class Bucket¶
- class Bucket(a0: BucketMap_U32.Bucket)
Bases:
wrapper- clear(self)¶
- has_key(self, a0: AimsVector_S16_3) bool¶
- items()¶
- iteritems()¶
- keys(self) Tuple¶
- clear(self)¶
- erase(self, a0: int)¶
- erase(self, a0: AimsVector_S16_3) None
- fromObject(a0: carto.GenericObject) rc_ptr_BucketMap_U32¶
- header(self) Any¶
The header contains all meta-data.
- insert(self, a0: AimsVector_S16_3, a1: int = uint())¶
- insert(self, t: int, a1: AimsVector_S16_3, a2: int = uint()) None
- items()¶
- iteritems()¶
- keys(self) List¶
- merge(self, a0: BucketMap_U32)¶
- rcToObject(self) carto.Object¶
- class soma.aims.BucketMap_VOID¶
- class soma.aims.BucketMap_VOID(a0: BucketMap_VOID)
Bases:
RCObject- class Bucket¶
- class Bucket(a0: BucketMap_VOID.Bucket)
Bases:
wrapper- clear(self)¶
- has_key(self, a0: AimsVector_S16_3) bool¶
- items()¶
- iteritems()¶
- keys(self) Tuple¶
- clear(self)¶
- erase(self, a0: int)¶
- erase(self, a0: AimsVector_S16_3) None
- fromObject(a0: carto.GenericObject) rc_ptr_BucketMap_VOID¶
- header(self) Any¶
The header contains all meta-data.
- insert(self, a0: AimsVector_S16_3, a1: object = Void())¶
- insert(self, t: int, a1: AimsVector_S16_3, a2: object = Void()) None
- items()¶
- iteritems()¶
- keys(self) List¶
- merge(self, a0: BucketMap_VOID)¶
- rcToObject(self) carto.Object¶
- class soma.aims.BucketUtil¶
Bases:
wrapperUtility class related to buckets
- volumeFromBucket(bucket: BucketMap_VOID, borderwidth: int = 0, enable_shift: bool = True)¶
- volume, offser = BucketUtil.volumeFromBucket(bucket, borderwidth=0,
enable_shift=True)
Bucket to volume conversion. Compared to Converter_BucketMap_Volume, this function has options to handle min bounding box, and allows to have borders.
If enable_shift is False, the volume will start at coordinates (0, 0, 0), without an offset (thus the volume may be much lager than needed, or may not contain the whole bucket if it has negative coordinates). In such case, pos is not used (thus passing 0 is OK).
volumeFromBucket(bucket: BucketMap_VOID, bbmin: AimsVector_S16_3, bbmax: AimsVector_S16_3, borderwidth: int = 0) -> rc_ptr_Volume_S16 volume = BucketUtil.volumeFromBucket(bucket, bbmin, bmax, borderwidth=0)
Bucket to volume conversion. Compared to Converter_BucketMap_Volume, this function has options to handle bounding box, and allows to have borders.
- class soma.aims.BundleInfo¶
- class soma.aims.BundleInfo(name: object)
- class soma.aims.BundleInfo(id: int)
- class soma.aims.BundleInfo(id: int, name: object)
- class soma.aims.BundleInfo(a0: aims.BundleInfo)
Bases:
wrapper
- class soma.aims.BundleListener¶
Bases:
wrapperSerial processing of bundles.
BundleListener listens events from a
BundleProducerobject, typically emitted when a new bundle starts or ends, a fiber starts or ends etc.To use it, BundleListener has to be subclassed and some of the following methods overloaded: * bundleStarted * bundleTerminated * fiberStarted * fiberTerminated * newFiberPoint * noMoreBundle
To connect the listener to a producer, use
BundleProducer::addBundleListener().Inherited classes may inherit both BundleListener and BundleProducer, if they are part of a processing chain.
- bundleStarted(self, a0: aims.BundleProducer, a1: aims.BundleInfo)¶
- bundleStarted(producer, bundle_info) None
- bundleTerminated(self, a0: aims.BundleProducer, a1: aims.BundleInfo)¶
- bundleTerminated(producer, bundle_info) None
- fiberStarted(self, a0: aims.BundleProducer, a1: aims.BundleInfo, a2: aims.FiberInfo)¶
- fiberStarted(producer, bundle_info, fiber_info) None
- fiberTerminated(self, a0: aims.BundleProducer, a1: aims.BundleInfo, a2: aims.FiberInfo)¶
- fiberTerminated(producer, bundle_info, fiber_info) None
- newFiberPoint(self, a0: aims.BundleProducer, a1: aims.BundleInfo, a2: aims.FiberInfo, a3: AimsVector_FLOAT_3)¶
- newFiberPoint(producer, bundle_info, fiber_info, point) None
- noMoreBundle(self, a0: aims.BundleProducer)¶
- noMoreBundle(producer) None
- class soma.aims.BundleMotion(a0: object)¶
- class soma.aims.BundleMotion(a0: aims.AffineTransformation3d)
- class soma.aims.BundleMotion(a0: aims.BundleMotion)
Bases:
BundleProducer,BundleListener
- class soma.aims.BundleProducer¶
Bases:
wrapperSerial processing of bundles.
BundleProducer emits events to a
BundleListenerobject while walking through a bundles set structure (or a bundles file), typically when a new bundle starts or ends, a fiber starts or ends etc.To connect the listener to a producer, use
BundleProducer::addBundleListener().Inherited classes may inherit both BundleListener and BundleProducer, if they are part of a processing chain.
- addBundleListener(self, a0: aims.BundleListener)¶
- addBundleListener(listener) None
Connects a
BundleProducerto aBunsdleListener.
- addFiberPoint(self, a0: aims.BundleInfo, a1: aims.FiberInfo, a2: AimsVector_FLOAT_3)¶
- noMoreBundle(self)¶
- startBundle(self, a0: aims.BundleInfo)¶
- startFiber(self, a0: aims.BundleInfo, a1: aims.FiberInfo)¶
- terminateBundle(self, a0: aims.BundleInfo)¶
- terminateFiber(self, a0: aims.BundleInfo, a1: aims.FiberInfo)¶
- class soma.aims.BundleROISelect(roiIterator: carto.rc_ptr_RoiIterator, a1: object, defaultROIMinimumOverlap: float = 0)¶
- class soma.aims.BundleROISelect(a0: aims.BundleROISelect)
Bases:
BundleProducer,BundleListener
- class soma.aims.BundleROISplit(roiIterator: carto.rc_ptr_RoiIterator, keepOriginalBundle: bool = False)¶
- class soma.aims.BundleROISplit(a0: aims.BundleROISplit)
Bases:
BundleProducer,BundleListener
- class soma.aims.BundleReader¶
Bases:
BundleProducerReads a bundles file, and emits events while walking through its data.
BundleReader is a
BundleProducer, so can be listened by anyBundleListener. It may read several bundles/fibers formats, using a lower-levelBundleProducerdedicated to a specific format.Currently
.bundles(AIMS/Connectomist) and.trk(Trackvis) formats are supported.- formatExtensions(format: object = 'ALL') set_STRING¶
- formatExtensions(format='ALL') None
return a set of file extensions associated with the given format. If the format is “ALL” (default) then all extensions of all supported formats are returned. If the format does not exist, an empty set is returned, and no error is issued.
- read(self)¶
- read() None
read() is the entry point to fibers processing, and triggers the producer machinery.
- supportedFormats() set_STRING¶
- supportedFormats() None
return a set of fiber tracts formats names supported by the BundlesReader.
- class soma.aims.BundleSampler(percent: float, bundle_name: object, sampled_bundle_name: object, mode: int)¶
- class soma.aims.BundleSampler(percent: float, bundle_name: object, sampled_bundle_name: object, mode: int, discarded: bool)
- class soma.aims.BundleSampler(a0: aims.BundleSampler)
Bases:
BundleProducer,BundleListener
- class soma.aims.BundleToGraph¶
Bases:
BundleListener,PropertySetBundles structure building as a Graph
The
Graphstructure is used to represent bundles and fibers when we need to keep their complete structure in memory. This structure is especially used for 3D rendering in Anatomist.BundleToGraph is a
BundleListener, thus has to be connected to aBundleProducerto work (typically, aBundleReader).Note that the BundleProducer / BundleListener system work as processing chains, and allows to keep only a small set of data in memory at one time. The Graph structure, on the contrary, keeps all information in memory, so may need a large amount of memory.
- class soma.aims.BundleToGraphWriter¶
- class soma.aims.BundleToGraphWriter(a0: aims.BundleToGraphWriter)
Bases:
BundleToGraph
- class soma.aims.BundleWriter¶
Bases:
BundleListener,PropertySetWrites bundles information to a bundles file.
BundleWriter is a
BundleListener, thus must be connected to aBundleProducer, and is fed by it.It will write the
.bundlesformat.
- class soma.aims.BundlesSlicer¶
- class soma.aims.BundlesSlicer(a0: aims.BundlesSlicer)
Bases:
BundleListener- addBundlesSlicerListener(self, a0: aims.BundlesSlicerListener)¶
- class soma.aims.BundlesSlicerListener¶
- class soma.aims.BundlesSlicerListener(a0: aims.BundlesSlicerListener)
Bases:
wrapper- newBundleSlice(self, slicer: aims.BundlesSlicer, bundle: aims.BundleInfo, time: float, points: vector_POINT3DF)¶
- noMoreBundleSlice(self, slicer: aims.BundlesSlicer)¶
- startBundleSlicing(self, slicer: aims.BundlesSlicer, bundle: aims.BundleInfo)¶
- terminateBundleSlicing(self, slicer: aims.BundlesSlicer, bundle: aims.BundleInfo)¶
- class soma.aims.CiftiTools(matrix: rc_ptr_SparseOrDenseMatrix, smap: object = aims.CiftiTools.BrainStuctureToMeshMap())¶
- class soma.aims.CiftiTools(matrix, smap={})
Bases:
wrapper- Parameters:
mat (rc_ptr_SparseOrDenseMatrix) – matrix with CIFTI header (typically, read from CIFTI format via aims.read())
smap (map_STRING_S32) – brain structure name to mesh number map: defaults to the result of defaultBrainStructureToMeshMap()
aims.CiftiTools(a0 (aims.CiftiTools))
tools. (CIFTI-2 shaped matrices manipulation)
with (This class eases manipulation of matrices (SparseOrDenseMatrix))
nature (CIFTI information in their header. CIFTI information specify the)
matrix (of data contained in the)
parcellations (and can bring ROIs or)
information.
meshes. (Mainly one can obtain textures to map matrix information onto)
textures (Textures may be ROI information (label)
TimeTexture_S32)
:param : :param or matrix values textures: :param possibly expanded onto brain regions: :param (TimeTexture_FLOAT in this case).:
- buildDimensionObjectFromLabelsTexture(self, dim: int, tex: TimeTexture_FLOAT)¶
- buildDimensionObjectFromLabelsTexture(self, dim: int, tex: TimeTexture_S16) None
- buildDimensionObjectFromLabelsTexture(self, dim: int, tex: TimeTexture_S32) None
- defaultBrainStructureToMeshMap() object¶
- defaultBrainStructureToMeshMap() None
Define the brain structure to mesh mapping: several meshes may be involved in CIFTI data mapping (typically a left hemisphere mesh and a right
- Returns:
mesh_map – mesh identifier to index mapping
- Return type:
map_STRING_S32
- expandedValueTextureFromDimension(self, dim: int, other_dim_index_pos: vector_S32) List¶
- expandedValueTextureFromDimension(dim, other_dim_index_pos) None
Get matrix data in textures, possibly expanded to regions if needed.
Parcels data will be expanded to all vertices of each parcel, etc. The resulting textures can be mapped on appropriate brain meshes.
- Parameters:
dim (int) – dimension in the matrix to get info for
other_dim_index_pos (vector_S32) – position in fixed dimensions. Actually all dimensions must be specified (the size of this list must match the number of dimensions) but the specified dimension position will not be used (since all values will be extracted in textures), and possibly another one (scalars, series, labels dimension will be extracted in time steps or several textures).
- Returns:
textures – Scalar or time series data will be stored in texture timepoints. Labels data will be stored in separate textures because they provide possibly different colormaps. In this case the returned list will have the size meshes_number * labels_number, and will be stored in this order: [mesh0_label0, mesh1_label0, .. meshN_label0, mesh0_label1, ..
meshN_label1, .. mesh0_label0, .. meshN_labelM]
- Return type:
- getBrainStructures(self, dim: int, keepSurfaces: bool = True, keepVoxels: bool = True) list_STRING¶
- getBrainStructures(dim, keepSurfaces=True, keepVoxels=True) None
Retreive brain structures list in a brain models dimension
- getDimensionObject(self, dim: int) carto.Object¶
- getIndicesForBrainStructure(self, dim: int, struct_name: object) vector_S32¶
- getIndicesForBrainStructure(dim, struct_name) None
Get the list of indices corresponding to a given brain structure in the matrix, on a given dimension.
- getIndicesForSurfaceIndices(self, dim: int, surface_num: int, roi_indices: vector_S32) vector_S32¶
- getIndicesForSurfaceIndices(dim, surface_num, roi_indices) None
Get the list of matrix indices corresponding to a given region on a mesh, for a given dimension.
- Parameters:
- Returns:
indices – list of indices in the matrix
- Return type:
- isMatchingSurface(self, dim: int, mesh: AimsTimeSurface_3_VOID, brainmodels: list_STRING, surf_hint: int = 0)¶
- isMatchingSurfaceOrTexture(self, dim: int, nvertices: int, header: carto.Object, brainmodels: list_STRING, surf_hint: int = 0)¶
- isMatchingTexture(self, dim: int, tex: TimeTexture_S16, brainmodels: list_STRING, surf_hint: int = 0)¶
- isMatchingTexture(self, dim: int, tex: TimeTexture_S32, brainmodels: list_STRING, surf_hint: int = 0) None
- isMatchingTexture(self, dim: int, tex: TimeTexture_FLOAT, brainmodels: list_STRING, surf_hint: int = 0) None
- matrix(self) rc_ptr_SparseOrDenseMatrix¶
- roiTextureFromDimension(self, dim: int) List¶
- roiTextureFromDimension(dim) None
Get ROI information for a given matrix dimension.
If the matrix dimension defines ROIs (parcels, brain regions), textures defining these regions are built.
If the matrix dimension defines labels, an empty texture will be created, with appropriate colormap information
If the matrix dimensions defines scalars or series, this function will probably not be useful.
- Parameters:
dim (int) – dimension in the matrix to get info for
- Returns:
textures – textures of regions, possibly with colormaps in headers, for regions, parcels etc. One texture per mesh. For scalars or series, the list will be empty since no particular ROI description is contained in the header for this dimension.
- Return type:
- setMatrix(self, matrix: rc_ptr_SparseOrDenseMatrix)¶
- valuesDimNum(self) int¶
- valuesDimNum(cifti_info: carto.Object) int
- valuesDimSize(mat: aims.SparseOrDenseMatrix, value_dim: int) int¶
- class soma.aims.Connectivity(oline: int, oslice: int, type: aims.Connectivity.Type)¶
- class soma.aims.Connectivity(a0: aims.Connectivity)
Bases:
wrapper- CONNECTIVITY_18_XYZ = 7¶
- CONNECTIVITY_26_XYZ = 8¶
- CONNECTIVITY_4_XY = 0¶
- CONNECTIVITY_4_XYdiag = 28¶
- CONNECTIVITY_4_XZ = 1¶
- CONNECTIVITY_4_XZdiag = 29¶
- CONNECTIVITY_4_YZ = 2¶
- CONNECTIVITY_4_YZdiag = 30¶
- CONNECTIVITY_5_XYminus = 17¶
- CONNECTIVITY_5_XYplus = 18¶
- CONNECTIVITY_5_XZminus = 21¶
- CONNECTIVITY_5_XZplus = 22¶
- CONNECTIVITY_5_XminusY = 15¶
- CONNECTIVITY_5_XminusZ = 19¶
- CONNECTIVITY_5_XplusY = 16¶
- CONNECTIVITY_5_XplusZ = 20¶
- CONNECTIVITY_5_YZminus = 25¶
- CONNECTIVITY_5_YZplus = 26¶
- CONNECTIVITY_5_YminusZ = 23¶
- CONNECTIVITY_5_YplusZ = 24¶
- CONNECTIVITY_6_XYZ = 3¶
- CONNECTIVITY_8_XY = 4¶
- CONNECTIVITY_8_XYZ = 27¶
- CONNECTIVITY_8_XZ = 5¶
- CONNECTIVITY_8_YZ = 6¶
- CONNECTIVITY_9_XY_Zminus = 9¶
- CONNECTIVITY_9_XY_Zplus = 10¶
- CONNECTIVITY_9_XZ_Yminus = 11¶
- CONNECTIVITY_9_XZ_Yplus = 12¶
- CONNECTIVITY_9_YZ_Xminus = 13¶
- CONNECTIVITY_9_YZ_Xplus = 14¶
- dir(self, n: int) AimsVector_FLOAT_3¶
- type(self) aims.Connectivity.Type¶
- type_from_string(a0: object) aims.Connectivity.Type¶
- type_to_string(a0: aims.Connectivity.Type) object¶
- xyzOffset(self, n: int) AimsVector_S16_3¶
- soma.aims.Converter(*args, **kwargs)[source]¶
Create a Converter instance from input and output types. Types may be passed as keyword arguments intype and outtype, or dtype if both are the same (not very useful for a converter). Otherwise the arguments are parsed to find types arguments.
Types may be specified as allowed by typeCode().
Note that for volumes, the method
astypeis often more convenient than using a Converter object (with the same result).
- class soma.aims.Converter_BucketMap_DOUBLE_rc_ptr_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
output_data (rc_ptr_Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_DOUBLE_rc_ptr_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
output_data (rc_ptr_Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_DOUBLE_rc_ptr_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
output_data (rc_ptr_Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_DOUBLE_rc_ptr_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
output_data (rc_ptr_Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_DOUBLE_rc_ptr_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
output_data (rc_ptr_Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_DOUBLE_rc_ptr_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
output_data (rc_ptr_Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_DOUBLE_rc_ptr_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_DOUBLE) – data to be converted
output_data (rc_ptr_Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_FLOAT_rc_ptr_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
output_data (rc_ptr_Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_FLOAT_rc_ptr_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
output_data (rc_ptr_Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_FLOAT_rc_ptr_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
output_data (rc_ptr_Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_FLOAT_rc_ptr_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
output_data (rc_ptr_Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_FLOAT_rc_ptr_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
output_data (rc_ptr_Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_FLOAT_rc_ptr_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
output_data (rc_ptr_Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_FLOAT_rc_ptr_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_FLOAT) – data to be converted
output_data (rc_ptr_Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S16_rc_ptr_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S16) – data to be converted
output_data (rc_ptr_Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S16_rc_ptr_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S16) – data to be converted
output_data (rc_ptr_Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S16_rc_ptr_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S16) – data to be converted
output_data (rc_ptr_Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S16_rc_ptr_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S16) – data to be converted
output_data (rc_ptr_Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S16_rc_ptr_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S16) – data to be converted
output_data (rc_ptr_Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S16_rc_ptr_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S16) – data to be converted
output_data (rc_ptr_Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S16_rc_ptr_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S16) – data to be converted
output_data (rc_ptr_Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S32_rc_ptr_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S32) – data to be converted
output_data (rc_ptr_Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S32_rc_ptr_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S32) – data to be converted
output_data (rc_ptr_Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S32_rc_ptr_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S32) – data to be converted
output_data (rc_ptr_Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S32_rc_ptr_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S32) – data to be converted
output_data (rc_ptr_Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S32_rc_ptr_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S32) – data to be converted
output_data (rc_ptr_Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S32_rc_ptr_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S32) – data to be converted
output_data (rc_ptr_Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_S32_rc_ptr_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_S32) – data to be converted
output_data (rc_ptr_Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U16_rc_ptr_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U16) – data to be converted
output_data (rc_ptr_Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U16_rc_ptr_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U16) – data to be converted
output_data (rc_ptr_Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U16_rc_ptr_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U16) – data to be converted
output_data (rc_ptr_Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U16_rc_ptr_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U16) – data to be converted
output_data (rc_ptr_Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U16_rc_ptr_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U16) – data to be converted
output_data (rc_ptr_Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U16_rc_ptr_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U16) – data to be converted
output_data (rc_ptr_Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U16_rc_ptr_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U16) – data to be converted
output_data (rc_ptr_Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U32_rc_ptr_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U32) – data to be converted
output_data (rc_ptr_Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U32_rc_ptr_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U32) – data to be converted
output_data (rc_ptr_Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U32_rc_ptr_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U32) – data to be converted
output_data (rc_ptr_Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U32_rc_ptr_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U32) – data to be converted
output_data (rc_ptr_Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U32_rc_ptr_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U32) – data to be converted
output_data (rc_ptr_Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U32_rc_ptr_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U32) – data to be converted
output_data (rc_ptr_Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_U32_rc_ptr_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_U32) – data to be converted
output_data (rc_ptr_Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_VOID_rc_ptr_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_VOID) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_VOID) – data to be converted
output_data (rc_ptr_Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_VOID_rc_ptr_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_VOID) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_VOID) – data to be converted
output_data (rc_ptr_Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_VOID_rc_ptr_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_VOID) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_VOID) – data to be converted
output_data (rc_ptr_Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_VOID_rc_ptr_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_VOID) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_VOID) – data to be converted
output_data (rc_ptr_Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_VOID_rc_ptr_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_VOID) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_VOID) – data to be converted
output_data (rc_ptr_Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_VOID_rc_ptr_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_VOID) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_VOID) – data to be converted
output_data (rc_ptr_Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_BucketMap_VOID_rc_ptr_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (BucketMap_VOID) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (BucketMap_VOID) – data to be converted
output_data (rc_ptr_Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_DOUBLE_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_DOUBLE, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_DOUBLE) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_FLOAT_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_FLOAT, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_FLOAT) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_HSV_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_HSV) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_HSV, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_HSV) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGBA_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGBA) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGBA, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGBA) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_RGB_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_RGB) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_RGB, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_RGB) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S16_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S16, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S16) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_S32_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_S32, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_S32) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U16_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U16, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U16) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U32_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U32, a1: Volume_U8)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U32) – data to be converted
output_data (Volume_U8) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_HSV¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_HSV)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_HSV) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_RGB¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_RGB)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_RGB) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_RGBA¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_RGBA)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_RGBA) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: Volume_U8, a1: Volume_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (Volume_U8) – data to be converted
output_data (Volume_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_Volume_U8_Volume_U8¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- class soma.aims.Converter_rc_ptr_Volume_DOUBLE_BucketMap_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
output_data (BucketMap_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_DOUBLE_BucketMap_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
output_data (BucketMap_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_DOUBLE_BucketMap_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
output_data (BucketMap_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_DOUBLE_BucketMap_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
output_data (BucketMap_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_DOUBLE_BucketMap_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
output_data (BucketMap_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_DOUBLE_BucketMap_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
output_data (BucketMap_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_DOUBLE_BucketMap_VOID¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_VOID)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_DOUBLE) – data to be converted
output_data (BucketMap_VOID) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_FLOAT_BucketMap_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
output_data (BucketMap_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_FLOAT_BucketMap_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
output_data (BucketMap_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_FLOAT_BucketMap_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
output_data (BucketMap_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_FLOAT_BucketMap_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
output_data (BucketMap_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_FLOAT_BucketMap_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
output_data (BucketMap_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_FLOAT_BucketMap_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
output_data (BucketMap_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_FLOAT_BucketMap_VOID¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_VOID)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_FLOAT) – data to be converted
output_data (BucketMap_VOID) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S16_BucketMap_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
output_data (BucketMap_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S16_BucketMap_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
output_data (BucketMap_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S16_BucketMap_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
output_data (BucketMap_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S16_BucketMap_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
output_data (BucketMap_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S16_BucketMap_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
output_data (BucketMap_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S16_BucketMap_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
output_data (BucketMap_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S16_BucketMap_VOID¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_VOID)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S16) – data to be converted
output_data (BucketMap_VOID) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S32_BucketMap_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
output_data (BucketMap_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S32_BucketMap_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
output_data (BucketMap_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S32_BucketMap_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
output_data (BucketMap_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S32_BucketMap_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
output_data (BucketMap_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S32_BucketMap_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
output_data (BucketMap_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S32_BucketMap_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
output_data (BucketMap_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_S32_BucketMap_VOID¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_VOID)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_S32) – data to be converted
output_data (BucketMap_VOID) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U16_BucketMap_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
output_data (BucketMap_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U16_BucketMap_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
output_data (BucketMap_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U16_BucketMap_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
output_data (BucketMap_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U16_BucketMap_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
output_data (BucketMap_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U16_BucketMap_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
output_data (BucketMap_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U16_BucketMap_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
output_data (BucketMap_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U16_BucketMap_VOID¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_VOID)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U16) – data to be converted
output_data (BucketMap_VOID) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U32_BucketMap_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
output_data (BucketMap_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U32_BucketMap_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
output_data (BucketMap_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U32_BucketMap_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
output_data (BucketMap_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U32_BucketMap_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
output_data (BucketMap_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U32_BucketMap_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
output_data (BucketMap_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U32_BucketMap_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
output_data (BucketMap_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U32_BucketMap_VOID¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_VOID)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U32) – data to be converted
output_data (BucketMap_VOID) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U8_BucketMap_DOUBLE¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_DOUBLE)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
output_data (BucketMap_DOUBLE) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U8_BucketMap_FLOAT¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_FLOAT)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
output_data (BucketMap_FLOAT) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U8_BucketMap_S16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_S16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
output_data (BucketMap_S16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U8_BucketMap_S32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_S32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
output_data (BucketMap_S32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U8_BucketMap_U16¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_U16)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
output_data (BucketMap_U16) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U8_BucketMap_U32¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_U32)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
output_data (BucketMap_U32) – conversion output will be done into this data
- Return type:
None
- class soma.aims.Converter_rc_ptr_Volume_U8_BucketMap_VOID¶
Bases:
wrapperConverter classes can be used using the convert() method, or as a callable object:
result = converter(input_data)
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
- Returns:
output data – converted data
- Return type:
- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_VOID)¶
- convert(input_data, output_data) None
In-place converson inside existing allocated data
- Parameters:
input_data (rc_ptr_Volume_U8) – data to be converted
output_data (BucketMap_VOID) – conversion output will be done into this data
- Return type:
None
- class soma.aims.CurveSelection(minimumLength: float)¶
- class soma.aims.CurveSelection(a0: aims.CurveSelection)
Bases:
BundleProducer,BundleListener
- class soma.aims.CutMesh¶
Bases:
wrapperCut meshes by a plane. The output of the operation is one cut mesh per input mesh, and possibly a border polygon mesh, and a plane intersection mesh.
The plane mesh is not always correct, it is now preferred to use GLU’s tesselation algorithm.
To use it:
initialize using a constructor and/or set input parameters (see also the CutTexturedMesh subclasses to handle textured meshes)
call cut() or cutBorder(), these are the methods actually doing things
get outputs using cutMeshes(), borderLine(), planeMesh() and CutTexturedMesh.cutTextures()
- borderLine(self) rc_ptr_AimsTimeSurface_2_VOID¶
- cutMeshes(self) vector_rc_ptr_AimsTimeSurface_3_VOID¶
- planeMesh(self) rc_ptr_AimsTimeSurface_3_VOID¶
- class soma.aims.Edge(*args, **kwargs)¶
Bases:
GraphObject- vertices(self) Tuple¶
- class soma.aims.FiberInfo¶
- class soma.aims.FiberInfo(id: int)
- class soma.aims.FiberInfo(a0: aims.FiberInfo)
Bases:
wrapper
- class soma.aims.FileFormatDictionary_AimsTimeSurface_2_VOID¶
- class soma.aims.FileFormatDictionary_AimsTimeSurface_2_VOID(a0: FileFormatDictionary_AimsTimeSurface_2_VOID)
Bases:
wrapper- fileFormat(format: object) FileFormat_AimsTimeSurface_2_VOID | None¶
- formats() set_STRING¶
- init()¶
- registerBaseFormats()¶
- registerFormat(formatID: object, format: FileFormat_AimsTimeSurface_2_VOID | None, extensions: vector_STRING, before: object = '')¶
- class soma.aims.FileFormatDictionary_AimsTimeSurface_3_VOID¶
- class soma.aims.FileFormatDictionary_AimsTimeSurface_3_VOID(a0: FileFormatDictionary_AimsTimeSurface_3_VOID)
Bases:
wrapper- fileFormat(format: object) FileFormat_AimsTimeSurface_3_VOID | None¶
- formats() set_STRING¶
- init()¶
- registerBaseFormats()¶
- registerFormat(formatID: object, format: FileFormat_AimsTimeSurface_3_VOID | None, extensions: vector_STRING, before: object = '')¶
- class soma.aims.FileFormatDictionary_Object¶
- class soma.aims.FileFormatDictionary_Object(a0: FileFormatDictionary_Object)
Bases:
wrapper- fileFormat(format: object) FileFormat_Object | None¶
- formats() set_STRING¶
- init()¶
- registerBaseFormats()¶
- registerFormat(formatID: object, format: FileFormat_Object | None, extensions: vector_STRING, before: object = '')¶
- class soma.aims.FileFormatDictionary_SparseOrDenseMatrix¶
- class soma.aims.FileFormatDictionary_SparseOrDenseMatrix(a0: FileFormatDictionary_SparseOrDenseMatrix)
Bases:
wrapper- fileFormat(format: object) FileFormat_SparseOrDenseMatrix | None¶
- formats() set_STRING¶
- init()¶
- registerBaseFormats()¶
- registerFormat(formatID: object, format: FileFormat_SparseOrDenseMatrix | None, extensions: vector_STRING, before: object = '')¶
- class soma.aims.FileFormatDictionary_Transformation3d¶
- class soma.aims.FileFormatDictionary_Transformation3d(a0: FileFormatDictionary_Transformation3d)
Bases:
wrapper- fileFormat(format: object) FileFormat_Transformation3d | None¶
- formats() set_STRING¶
- init()¶
- registerBaseFormats()¶
- registerFormat(formatID: object, format: FileFormat_Transformation3d | None, extensions: vector_STRING, before: object = '')¶
- class soma.aims.FileFormatDictionary_TransformationGraph3d¶
- class soma.aims.FileFormatDictionary_TransformationGraph3d(a0: FileFormatDictionary_TransformationGraph3d)
Bases:
wrapper- fileFormat(format: object) FileFormat_TransformationGraph3d | None¶
- formats() set_STRING¶
- init()¶
- registerBaseFormats()¶
- registerFormat(formatID: object, format: FileFormat_TransformationGraph3d | None, extensions: vector_STRING, before: object = '')¶
- class soma.aims.FileFormat_AimsTimeSurface_2_VOID¶
- class soma.aims.FileFormat_AimsTimeSurface_2_VOID(a0: FileFormat_AimsTimeSurface_2_VOID)
Bases:
wrapper- read(self, filename: object, obj: AimsTimeSurface_2_VOID, context: carto.AllocatorContext, options: carto.Object) bool¶
- read(self, filename: object, context: carto.AllocatorContext, options: carto.Object) AimsTimeSurface_2_VOID | None
- write(self, a0: object, a1: AimsTimeSurface_2_VOID, options: carto.Object = carto.none()) bool¶
- class soma.aims.FileFormat_AimsTimeSurface_3_VOID¶
- class soma.aims.FileFormat_AimsTimeSurface_3_VOID(a0: FileFormat_AimsTimeSurface_3_VOID)
Bases:
wrapper- read(self, filename: object, obj: AimsTimeSurface_3_VOID, context: carto.AllocatorContext, options: carto.Object) bool¶
- read(self, filename: object, context: carto.AllocatorContext, options: carto.Object) AimsTimeSurface_3_VOID | None
- write(self, a0: object, a1: AimsTimeSurface_3_VOID, options: carto.Object = carto.none()) bool¶
- class soma.aims.FileFormat_Object¶
- class soma.aims.FileFormat_Object(a0: FileFormat_Object)
Bases:
wrapper- read(self, filename: object, obj: carto.Object, context: carto.AllocatorContext, options: carto.Object) bool¶
- read(self, filename: object, context: carto.AllocatorContext, options: carto.Object) carto.Object | None
- write(self, a0: object, a1: carto.Object, options: carto.Object = carto.none()) bool¶
- class soma.aims.FileFormat_SparseOrDenseMatrix¶
- class soma.aims.FileFormat_SparseOrDenseMatrix(a0: FileFormat_SparseOrDenseMatrix)
Bases:
wrapper- read(self, filename: object, obj: aims.SparseOrDenseMatrix, context: carto.AllocatorContext, options: carto.Object) bool¶
- read(self, filename: object, context: carto.AllocatorContext, options: carto.Object) aims.SparseOrDenseMatrix | None
- write(self, a0: object, a1: aims.SparseOrDenseMatrix, options: carto.Object = carto.none()) bool¶
- class soma.aims.FileFormat_Transformation3d¶
- class soma.aims.FileFormat_Transformation3d(a0: FileFormat_Transformation3d)
Bases:
wrapper- read(self, filename: object, obj: soma.Transformation3d, context: carto.AllocatorContext, options: carto.Object) bool¶
- read(self, filename: object, context: carto.AllocatorContext, options: carto.Object) soma.Transformation3d | None
- write(self, a0: object, a1: soma.Transformation3d, options: carto.Object = carto.none()) bool¶
- class soma.aims.FileFormat_TransformationGraph3d¶
- class soma.aims.FileFormat_TransformationGraph3d(a0: FileFormat_TransformationGraph3d)
Bases:
wrapper- read(self, filename: object, obj: aims.TransformationGraph3d, context: carto.AllocatorContext, options: carto.Object) bool¶
- read(self, filename: object, context: carto.AllocatorContext, options: carto.Object) aims.TransformationGraph3d | None
- write(self, a0: object, a1: aims.TransformationGraph3d, options: carto.Object = carto.none()) bool¶
- class soma.aims.Finder¶
- class soma.aims.Finder(a0: aims.Finder)
Bases:
wrapper- finderFormat(format: object) aims.FinderFormat | None¶
- header(self) carto.Object¶
- possibleDataTypes(self) vector_STRING¶
- registerFormat(fmtid: object, format: aims.FinderFormat | None, extensions: vector_STRING, before: object = '')¶
- setHeader(self, hdr: carto.Object)¶
- setPossibleDataTypes(self, dt: vector_STRING)¶
- class soma.aims.FinderFormat¶
- class soma.aims.FinderFormat(a0: aims.FinderFormat)
Bases:
wrapper- check(self, filename: object, f: aims.Finder) bool¶
- class soma.aims.GenericHandlers[source]¶
Bases:
objectStatic generic handlers used as import rules.
- static moveChildren(namespace, extendedModule, referedModule)[source]¶
This static method is used to move child objects of a referred module to the extended module.
- Parameters:
namespace (string) – namespace of the referedModule to get objects to move from.
extendedModule (ExtendedModule) –
ExtendedModuleobject into which move objects.referedModule (module) – referred module object to get objects to move from.
- static removeChildren(namespace, prefixes, extendedModule, referedModule)[source]¶
This static method is used to remove children from the extended module.
- Parameters:
namespace (string) – namespace of the referedModule.
prefixes (list) – list of prefixes of objects to remove.
extendedModule (ExtendedModule) –
ExtendedModuleobject to remove objects from.referedModule (module) – referred module object.
- class soma.aims.Graph(a0: object = '')¶
Bases:
GraphObject- clear(self)¶
- edges(self) set_EdgePtr¶
- loadAllMissingElements(self)¶
- vertices(self) set_VertexPtr¶
- class soma.aims.GraphManip¶
- class soma.aims.GraphManip(a0: aims.GraphManip)
Bases:
wrapper- attributeColor(self, graph: Graph, att: object) vector_S32¶
- getICBM2009cTemplateTransform(g: Graph) aims.AffineTransformation3d¶
transform = aims.GraphManip.getICBM2009cTemplateTransform(graph)
Extract the transformation to the MNI ICBM152 space, shifted to the “most standard” field of view of the template image, the one from the ICBM2009c_nlin_asym template from the MNI. Actually we find various fields of view for the templates. The one we use here is (193, 229, 193). The transform to the “real” ICBM space (0 roughly at AC) is provided in the output transformation header. This space has a fixed transformation with our Aims Talairach, along with the template volume size and voxel size. This space has a fixed transformation with our Aims Talairach. Includes shifts and axes inversions.
- getICBMTransform(g: Graph) aims.AffineTransformation3d¶
transform = aims.GraphManip.getICBMTransform(graph)
Extract the transformation to the MNI ICBM152 space. This space has a fixed transformation with our Aims Talairach.
- get_element_table(graph: Graph) Any¶
Get the GraphElementTable as a dict. The dict has the following shape:
{ syntax_name: { id_name: GraphElementCode_object } }
GraphElementCode objects are given as dicts (str, str):
{ 'id': <same_as_key: filename (globals) or attribute for filename (locals)>, 'attribute': <attribute_name_in_graph_element>, 'objectType': <type of object>, 'dataType': <data type of object>, 'storageType': <'Global', 'Local', or 'GlobalPacked'>, 'local_file_attribute': <attribute giving the filename for local storage in each graph elememt>, 'global_index_attribute': <attribute giving the index for global storage in each graph elememt>, 'global_filename': <filename for global storage>, 'global_attribute': <attribute>, 'syntax': <syntax_name> }
- graphFromVolume(vol: rc_ptr_Volume_S16, background: int = 0, trans: object | None = None) Graph | None¶
graph = graphFromVolume(vol, background=0, trans=None) graphFromVolume(vol, graph, background=0, trans=None,
automaticBackgroundSearch=True)
builds a ROI graph from a volume of labels
graphFromVolume(vol: rc_ptr_Volume_S32, background: int = 0, trans: Optional[object] = None) -> Optional[Graph]
graphFromVolume(vol: rc_ptr_Volume_S16, g: Graph, background: int = 0, trans: Optional[object] = None, automaticBackgroundSearch: bool = True)
graphFromVolume(vol: rc_ptr_Volume_S32, g: Graph, background: int = 0, trans: Optional[object] = None, automaticBackgroundSearch: bool = True)
- setAttributeColor(graph: Graph, att: object, a2: AimsRGB)¶
- setAttributeColor(graph: Graph, att: object, a2: AimsRGBA) None
- setAttributeColor(graph: Graph, att: object, a2: vector_S32) None
- storeAims(graph: Graph, vertex: GraphObject | None, attribute: object, obj: rc_ptr_AimsTimeSurface_3_VOID)¶
- storeAims(graph: Graph, vertex: GraphObject | None, attribute: object, obj: rc_ptr_AimsTimeSurface_2_VOID) None
- storeAims(graph: Graph, vertex: GraphObject | None, attribute: object, obj: rc_ptr_BucketMap_VOID) None
- storeTalairach(g: Graph, m: aims.AffineTransformation3d)¶
- talairach(g: Graph) aims.AffineTransformation3d¶
- class soma.aims.GraphObject(a0: GraphObject)¶
- class soma.aims.GraphObject(a0: object)
Bases:
AttributedObject- clone(self) carto.Object¶
- currentValue(self) carto.Object¶
- objectIterator(self) carto.Object¶
- class soma.aims.Hierarchy¶
- class soma.aims.Hierarchy(a0: aims.Hierarchy)
Bases:
Tree- find(name)¶
- find_color(name, default_color=<class 'KeyError'>)¶
- class soma.aims.IOObjectTypesDictionary¶
- class soma.aims.IOObjectTypesDictionary(a0: aims.IOObjectTypesDictionary)
Bases:
wrapper- formats(objectType: object, datatype: object) set_STRING¶
- objectsTypes() Dict¶
- class soma.aims.Interpolator(*args)¶
Bases:
RCObject- values(self, a0: float, a1: float, a2: float) vector_DOUBLE¶
- values(self, a0: AimsVector_FLOAT_3) vector_DOUBLE
- class soma.aims.LightResampler_BOOL¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_BOOL, tr: soma.AffineTransformationBase) rc_ptr_Volume_BOOL¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_BOOL, output: Volume_BOOL, tr: soma.AffineTransformationBase, background: bool = False)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_CDOUBLE¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_CDOUBLE, tr: soma.AffineTransformationBase) rc_ptr_Volume_CDOUBLE¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_CDOUBLE, output: Volume_CDOUBLE, tr: soma.AffineTransformationBase, background: object = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_CFLOAT¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_CFLOAT, tr: soma.AffineTransformationBase) rc_ptr_Volume_CFLOAT¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_CFLOAT, output: Volume_CFLOAT, tr: soma.AffineTransformationBase, background: object = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_DOUBLE¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_DOUBLE, tr: soma.AffineTransformationBase) rc_ptr_Volume_DOUBLE¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_DOUBLE, output: Volume_DOUBLE, tr: soma.AffineTransformationBase, background: float = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_FLOAT¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_FLOAT, tr: soma.AffineTransformationBase) rc_ptr_Volume_FLOAT¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_FLOAT, output: Volume_FLOAT, tr: soma.AffineTransformationBase, background: float = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_HSV¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_HSV, tr: soma.AffineTransformationBase) rc_ptr_Volume_HSV¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_HSV, output: Volume_HSV, tr: soma.AffineTransformationBase, background: AimsHSV = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_POINT3DF¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_POINT3DF, tr: soma.AffineTransformationBase) rc_ptr_Volume_POINT3DF¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_POINT3DF, output: Volume_POINT3DF, tr: soma.AffineTransformationBase, background: AimsVector_FLOAT_3 = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_RGB¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_RGB, tr: soma.AffineTransformationBase) rc_ptr_Volume_RGB¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_RGB, output: Volume_RGB, tr: soma.AffineTransformationBase, background: AimsRGB = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_RGBA¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_RGBA, tr: soma.AffineTransformationBase) rc_ptr_Volume_RGBA¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_RGBA, output: Volume_RGBA, tr: soma.AffineTransformationBase, background: AimsRGBA = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_S16¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_S16, tr: soma.AffineTransformationBase) rc_ptr_Volume_S16¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_S16, output: Volume_S16, tr: soma.AffineTransformationBase, background: int = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_S32¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_S32, tr: soma.AffineTransformationBase) rc_ptr_Volume_S32¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_S32, output: Volume_S32, tr: soma.AffineTransformationBase, background: int = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_U16¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_U16, tr: soma.AffineTransformationBase) rc_ptr_Volume_U16¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_U16, output: Volume_U16, tr: soma.AffineTransformationBase, background: int = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_U32¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_U32, tr: soma.AffineTransformationBase) rc_ptr_Volume_U32¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_U32, output: Volume_U32, tr: soma.AffineTransformationBase, background: int = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.LightResampler_U8¶
Bases:
wrapperLight, simple resampler used for flipping operations.
Contrarily to Resampler classes in aimsalgo, no interpolation is done, neither in space nor in values. We take the nearest voxel, report its value in the output. This also ensures the conservation of values in flipping operations.
- allocateResampledVolume(vol: Volume_U8, tr: soma.AffineTransformationBase) rc_ptr_Volume_U8¶
- getTransformedDims(dims: vector_S32, tr: soma.AffineTransformationBase) vector_S32¶
- getTransformedVoxelSize(vs: vector_FLOAT, tr: soma.AffineTransformationBase) vector_FLOAT¶
- resampleVolume(input: Volume_U8, output: Volume_U8, tr: soma.AffineTransformationBase, background: bytes = 0)¶
- transformHeader(header: carto.Object, tr: soma.AffineTransformationBase) carto.Object¶
adapt info in header (referential, transformations)
- class soma.aims.MaskIterator(*args)¶
Bases:
RCObject- contains(self, a0: AimsVector_S16_3) bool¶
- contains(self, a0: AimsVector_FLOAT_3) bool
- next(self)¶
- restart(self)¶
- value(self) AimsVector_S16_3¶
- valueMillimeters(self) AimsVector_FLOAT_3¶
- volumeDimension(self) AimsVector_S16_3¶
- voxelSize(self) AimsVector_FLOAT_3¶
- class soma.aims.MassCenters_BOOL(data: rc_ptr_Volume_BOOL, bin: bool = False)¶
- class soma.aims.MassCenters_BOOL(data: rc_ptr_Volume_BOOL, roiIterator: aims.RoiIterator, bin: bool = False)
- class soma.aims.MassCenters_BOOL(a0: MassCenters_BOOL)
Bases:
wrapper- infos(self) Any¶
- maskedmasscenter(self, maskIterator: aims.MaskIterator) Any¶
- class soma.aims.MassCenters_DOUBLE(data: rc_ptr_Volume_DOUBLE, bin: bool = False)¶
- class soma.aims.MassCenters_DOUBLE(data: rc_ptr_Volume_DOUBLE, roiIterator: aims.RoiIterator, bin: bool = False)
- class soma.aims.MassCenters_DOUBLE(a0: MassCenters_DOUBLE)
Bases:
wrapper- infos(self) Any¶
- maskedmasscenter(self, maskIterator: aims.MaskIterator) Any¶
- class soma.aims.MassCenters_FLOAT(data: rc_ptr_Volume_FLOAT, bin: bool = False)¶
- class soma.aims.MassCenters_FLOAT(data: rc_ptr_Volume_FLOAT, roiIterator: aims.RoiIterator, bin: bool = False)
- class soma.aims.MassCenters_FLOAT(a0: MassCenters_FLOAT)
Bases:
wrapper- infos(self) Any¶
- maskedmasscenter(self, maskIterator: aims.MaskIterator) Any¶
- class soma.aims.MassCenters_S16(data: rc_ptr_Volume_S16, bin: bool = False)¶
- class soma.aims.MassCenters_S16(data: rc_ptr_Volume_S16, roiIterator: aims.RoiIterator, bin: bool = False)
- class soma.aims.MassCenters_S16(a0: MassCenters_S16)
Bases:
wrapper- infos(self) Any¶
- maskedmasscenter(self, maskIterator: aims.MaskIterator) Any¶
- class soma.aims.MassCenters_S32(data: rc_ptr_Volume_S32, bin: bool = False)¶
- class soma.aims.MassCenters_S32(data: rc_ptr_Volume_S32, roiIterator: aims.RoiIterator, bin: bool = False)
- class soma.aims.MassCenters_S32(a0: MassCenters_S32)
Bases:
wrapper- infos(self) Any¶
- maskedmasscenter(self, maskIterator: aims.MaskIterator) Any¶
- class soma.aims.MassCenters_U16(data: rc_ptr_Volume_U16, bin: bool = False)¶
- class soma.aims.MassCenters_U16(data: rc_ptr_Volume_U16, roiIterator: aims.RoiIterator, bin: bool = False)
- class soma.aims.MassCenters_U16(a0: MassCenters_U16)
Bases:
wrapper- infos(self) Any¶
- maskedmasscenter(self, maskIterator: aims.MaskIterator) Any¶
- class soma.aims.MassCenters_U32(data: rc_ptr_Volume_U32, bin: bool = False)¶
- class soma.aims.MassCenters_U32(data: rc_ptr_Volume_U32, roiIterator: aims.RoiIterator, bin: bool = False)
- class soma.aims.MassCenters_U32(a0: MassCenters_U32)
Bases:
wrapper- infos(self) Any¶
- maskedmasscenter(self, maskIterator: aims.MaskIterator) Any¶
- class soma.aims.MassCenters_U8(data: rc_ptr_Volume_U8, bin: bool = False)¶
- class soma.aims.MassCenters_U8(data: rc_ptr_Volume_U8, roiIterator: aims.RoiIterator, bin: bool = False)
- class soma.aims.MassCenters_U8(a0: MassCenters_U8)
Bases:
wrapper- infos(self) Any¶
- maskedmasscenter(self, maskIterator: aims.MaskIterator) Any¶
- soma.aims.Motion¶
alias of
AffineTransformation3d
- class soma.aims.Object¶
Bases:
rc_ptr_GenericObjectGeneric dynamic polymorphic object proxy.
Object is a proxy and a reference counter to a GenericObject. In most cases, Object and GenericObject are interchangeable and play the same role, there are two objects for technical reasons in the C++ layer, but in Python it whould make no difference.
The C++ generic object is an implementation of a mutable dynamic container which can hold any type of concrete data, with a generic access API which abstracts the concrete type of the object stored within it.
According to the underlying object type, Object can behave like a number, a string, or a container: sequence or dictionary. The python bindings can therefore support the sequence protocol, or the dictionary protocol, like a ‘real’ python object.
The only part which makes it visibly different from a python object is the conversions with stored objects, which are generally C++ objects (but can also be any python objects). Transparent conversions are done when possible.
We will take an example to show how to use it: a volume header. Suppose the files volume.img/volume.hdr[/volume.img.minf] represent a 3D volume (a MRI volume, typically, here in Analyze/SPM or Nifti format). We will read it using aims, and access its header data, which comes as a generic object.
>>> from __future__ import print_function # work using python 2 or 3 >>> from soma import aims >>> vol = aims.read('volume.img') >>> hdr = vol.header()
Now
volis the volume, andhdrits header, of typeObject.>>> type(hdr) <class 'soma.aims.Object'> >>> print(hdr) { 'voxel_size' : [ 1.875, 1.875, 4, 1 ], 'file_type' : 'SPM', 'byte_swapping' : 0, 'volume_dimension' : [ 128, 128, 16, 1 ], 'vox_units' : 'mm ', 'cal_units' : '', 'data_type' : 'S16', 'disk_data_type' : 'S16', 'bits_allocated' : 2, 'tr' : 1, 'minimum' : 0, 'maximum' : 13645, 'scale_factor' : 1, 'scale_factor_applied' : 0, 'db_name' : '', 'aux_file' : '', 'orient' : 3, 'generated' : '', 'scannum' : '', 'patient_id' : '', 'exp_date' : '', 'exp_time' : '', 'views' : 0, 'start_field' : 32768, 'field_skip' : 8192, 'omax' : 0, 'omin' : 0, 'smax' : 32, 'smin' : 0, 'SPM_data_type' : '', 'possible_data_types' : [ 'S16' ], 'spm_radio_convention' : 1, 'spm_origin' : [ 65, 65, 9 ], 'origin' : [ 64, 63, 7 ] }
hdrprints like a dictionary, but is not really a python dictionary object. However it behaves like a dictionary:>>> print(hdr['voxel_size']) [ 1.875, 1.875, 4, 1 ] >>> print(hdr['data_type']) S16 >>> print(hdr['voxel_size'][0]) 1.875 >>> for x in hdr: >>> print(x) >>> voxel_size file_type byte_swapping volume_dimension vox_units cal_units data_type disk_data_type bits_allocated tr minimum maximum scale_factor scale_factor_applied db_name aux_file orient generated scannum patient_id exp_date exp_time views start_field field_skip omax omin smax smin SPM_data_type possible_data_types spm_radio_convention spm_origin origin >>> for x,y in hdr.items(): >>> print(x, ':', y) >>> voxel_size : [ 1.875, 1.875, 4, 1 ] file_type : 'SPM' byte_swapping : 0 volume_dimension : [ 128, 128, 16, 1 ] vox_units : 'mm ' cal_units : '' data_type : 'S16' disk_data_type : 'S16' bits_allocated : 2 tr : 1 minimum : 0 maximum : 13645 scale_factor : 1 scale_factor_applied : 0 db_name : '' aux_file : '' orient : 3 generated : '' scannum : '' patient_id : '' exp_date : '' exp_time : '' views : 0 start_field : 32768 field_skip : 8192 omax : 0 omin : 0 smax : 32 smin : 0 SPM_data_type : '' possible_data_types : [ 'S16' ] spm_radio_convention : 1 spm_origin : [ 65, 65, 9 ] origin : [ 64, 63, 7 ]
Elements returned by the dictionary queries can have various types, althrough they are all stored internally in a C++ structure through
soma.aims.Objectwrappers. But when the underlying type of the element is known and can be retreived as a python object (either a standard python type or a python binding of a C++ class), it is done automatically. Such conversion is not possible when the underlying object has no python binding and is a pure C++ object, or when there is no conversion function. In this case, an Object is returned and contains the selected data.Conversions are done using conversion methods that you generally do not need to call by hand: getScalar(), getString(), or the more general conversion method
soma.aims.Object.getPython(). Elements types that cannot be converted to python concrete types are retreived in their Object container.The generic conversion function in
Object:getPython, is a static method and can be extended.Elements in
Objectcontainers can generally be read and written:>>> hdr['data_type'] = 'FLOAT' >>> hdr['data_type'] 'FLOAT'
This generally suits your needs. But in a few cases there will be a problem in internal types handling in the C++ layer.
Here, the underlying C++ generic object which did hold a C++ string (
std::string)'S16'is now replaced by another generic object built from the python string'FLOAT', and which now wraps an element of typePyObject(orPyString). It just behaves the same way, so this operation is perfectly valid, but if C++ programs expect it to be a C++std::string, they may fail.Moreover, when writing back to existing concrete objects, some additional conversions may take place: for instance
hdr['voxel_size']is a C++ object of typestd::vector<float>, so writing tohdr['voxel_size'][0]needs to enure we are actually writing afloat, and if not, convert to it if possible.You can query a type identifier for a generic object via the
type()method:>>> hdr.type() 'PropertySet'
Objects that can be converted from C++ generic objects to python are not necessarily known in advance. A conversion table is kept in the global variable
soma.aims.convertersObjectToPython(in the aims module) and can be extended. Therefore other python modules using aims (such as sigraph) can extend this conversion table.Details and tricks
There are some limitations and “unexpected behaviours” caused by the underlying C++ implementation of generic objects, and general behaviour differences between Python and C++. The following is expert-level details, so read it only if you have problems or you are a C++ expert with good knowledge of the cartobase C++ library…
Generic object - specialized object conversions
Putting a specific object in a generic Object makes a copy of it the first time it is done, because C++ generic objects contain the specialized elements. Once this has been done once, generic objects are shared and not copied anymore, which is consistent with the normal python behaviour. The non-pythonic thing is the first insertion in a generic object:
>>> a = aims.vector_FLOAT([12.6, -5.7]) >>> print(a) [ 12.6, -5.7 ] >>> hdr['foo'] = a # here a is copied into hdr['foo'] >>> a.append( 6.8 ) # a is changed but not hdr >>> print(a) [ 12.6, -5.7, 6.8 ] >>> print(hdr['foo']) [ 12.6, -5.7 ] >>> hdr['dummy'] = hdr['foo'] >>> hdr['foo'].append(4.2) >>> print(hdr['dummy']) # this time hdr['dummy'] is changed [ 12.6, -5.7, 4.2 ]
To overcome the first copy problem, you may have to reassign the initial variable to the copy instance:
>>> a = aims.vector_FLOAT([1.2, 2.3, 3.4]) >>> hdr['foo'] = a >>> a = hdr['foo'] >>> print(hdr['foo']) [ 1.2, 2.3, 3.4 ] >>> a[1] = 12.8 >>> print(a) [ 1.2, 12.8, 3.4 ] >>> print(hdr['foo']) [ 1.2, 12.8, 3.4 ]
There are exceptions to this behaviour:
pure python objects, like lists or dictionaries are never copied since it is only a pointer to them (the C PyObject * pointer) which is stored.
small builtin types: numbers and strings are always copied since they are always converted and copied, not wrapped, when passed from python to C++ and vice versa.
The get() method
On
Objectthegetmethod is ambiguous and has 2 meanings:get() without arguments is a wrapping to the C++
rc_ptr::get()which returns the underlying wrapped object (here, aGenericObject)get(key, default=None) is the dict-like method that is available on
GenericObjectsince aims 4.6.1.
Depending on the arguments the Object method will redirect to the right one, thus:
myobject.get() # gets the GenericObject myobject.get('key') # gets the dict item under keyt 'key' myobject.get().get('key') # does both, but this is what the previous line # already does, so the result is the same
To avoid this ambiguity,
Object.get()andrc_ptr.get()have been renamed_get()years ago (in aims 4.0 I think) butget()is still present for compatibility. This use (without argument) is obsolete and may be removed in the future.- getPython()¶
Conversion to python types: extracts what is in the Object (when possible). The global dictionary
soma.aims.convertersObjectToPythonstores converters
- static ptrToObject(x)¶
- static rcToObject(x)¶
- static toObject(x)¶
- soma.aims.Point2d¶
alias of
AimsVector_S16_2
- soma.aims.Point2dd¶
alias of
AimsVector_DOUBLE_2
- soma.aims.Point2df¶
alias of
AimsVector_FLOAT_2
- soma.aims.Point2dl¶
alias of
AimsVector_S64_2
- soma.aims.Point2du¶
alias of
AimsVector_U32_2
- soma.aims.Point3d¶
alias of
AimsVector_S16_3
- soma.aims.Point3dd¶
alias of
AimsVector_DOUBLE_3
- soma.aims.Point3df¶
alias of
AimsVector_FLOAT_3
- soma.aims.Point3di¶
alias of
AimsVector_S32_3
- soma.aims.Point3dl¶
alias of
AimsVector_S64_3
- soma.aims.Point3du¶
alias of
AimsVector_U32_3
- soma.aims.Point4d¶
alias of
AimsVector_S16_4
- soma.aims.Point4dd¶
alias of
AimsVector_DOUBLE_4
- soma.aims.Point4df¶
alias of
AimsVector_FLOAT_4
- soma.aims.Point4dl¶
alias of
AimsVector_S64_4
- soma.aims.Point4du¶
alias of
AimsVector_U32_4
- class soma.aims.Quaternion¶
- class soma.aims.Quaternion(q: AimsVector_FLOAT_4)
- class soma.aims.Quaternion(q: aims.Quaternion)
- class soma.aims.Quaternion(x: float, y: float, z: float, t: float)
- class soma.aims.Quaternion(tr: aims.AffineTransformation3d)
Bases:
wrapper- axis(self) AimsVector_FLOAT_3¶
- buildFromMatrix(self, m: vector_FLOAT)¶
- buildFromMatrix(m) None
- Parameters:
m (vector_FLOAT) – 4x4 matrix in columns (OpenGL-style). Be careful that it is not the expected order for a numpy array using ravel(), which have to be transposed.
- buildFromMotion(self, m: aims.AffineTransformation3d)¶
- buildFromTransformation(self, m: aims.AffineTransformation3d)¶
- compose(value, /)¶
Return self*value.
- fromAxis(self, c: AimsVector_FLOAT_3, phi: float)¶
- inverse(self) aims.Quaternion¶
- norm(self)¶
- normalized(self) aims.Quaternion¶
- setVector(self, vec: AimsVector_FLOAT_4)¶
- transform(self, p: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- transform(self, x: float, y: float, z: float) AimsVector_FLOAT_3
- transformInverse(self, p: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- vector(self) AimsVector_FLOAT_4¶
- class soma.aims.RawConverter_BucketMap_VOID_rc_ptr_Volume_S16(timeislabel: bool = False, withConstantValue: bool = False, value: int = 0)¶
- class soma.aims.RawConverter_BucketMap_VOID_rc_ptr_Volume_S16(a0: RawConverter_BucketMap_VOID_rc_ptr_Volume_S16)
Bases:
wrapper- convert(self, in_: BucketMap_VOID, out: rc_ptr_Volume_S16)¶
- printToVolume(self, in_: BucketMap_VOID, out: rc_ptr_Volume_S16, offset: AimsVector_S16_3 = Point3d(0, 0, 0))¶
- class soma.aims.RawConverter_rc_ptr_Volume_S16_BucketMap_VOID(timeislabel: bool = False)¶
- class soma.aims.RawConverter_rc_ptr_Volume_S16_BucketMap_VOID(a0: RawConverter_rc_ptr_Volume_S16_BucketMap_VOID)
Bases:
wrapper- convert(self, in_: rc_ptr_Volume_S16, out: BucketMap_VOID)¶
- class soma.aims.Reader(typemap=None, allocmode=None, options=None)[source]¶
Bases:
objectGeneric reader that can theorerically load any SIP-mapped AIMS or Cartograph object. A translation table can be provided to correctly map readers and objects. For quick and simple operations, you can also use the gloabl
soma.aims.read()andsoma.aims.write()functions, which use a Reader object internally.typemap can be provided to specify which reader may be used to load objects whose type has been read. A default internal map is present but can be replaced.
The map has 2 modes:
object_type : object_type (ex:
{'Volume' : 'Volume'})object_type : dict( data_type : full_type ) (ex:
'Mesh' : { 'VOID' : 'AimsSurfaceTriangle' })A default object_type can be specified if the data_type is not found:
'Mesh' : { 'VOID' : 'AimsSurfaceTriangle', 'default_object_type' : 'AimsTimeSurface_3_VOID' }
(and this example corresponds to the default internal map if none is specified)
- Parameters:
typemap (dict (optional)) – described above
allocmode ((optional)) –
carto.AllocatorContextorcarto.AllocatorStrategy.DataAccess constant: allocation specification.
- mapType(iotype, aimstype)[source]¶
Get the translated type correspondance between identified data type (from IO system) and the data type that will actually be read. This is generally the identity, but a few IO/types allow some variations.
- read(filename, border=0, frame=-1, dtype=None, object=None)[source]¶
Reads the object contained in the file <filename>, whatever the type of the contents of the file. All objects types supported by Aims IO system can be read. A border width and a frame number may be specified and will be only used by formats that support them. If <dtype> is specified, the corresponding object/data type is forced. It may be useful to force reading a volume with float voxels for instance. It is only supported by a few formats. <dtype> may contain a string or a type object, as accepted by
soma.aims.typeCode(). The read function may follow other object/data types rules, allocators and options, as specified in the Reader constructor.
- class soma.aims.Replacer_FLOAT¶
Bases:
wrapperReplacement of (label) values in a volume.
Values are replaced at once, thus it does not suffer from overlapping values if ivol is ovol (which would happen for instance in a loop replacing one value after another).
- replace(ivol: Volume_FLOAT, ovol: Volume_FLOAT, repl: object)¶
- replace(ivol, ovol, repl) None
Replace values from “repl” keys, from the input volume ivol, to the corresponding repl values in the output volume ovol.
Only actually replaced values will be written in ovol, other will be left untouched.
It is OK to specify the same volume as ivol and ovol, then it will be replaced in-place.
- class soma.aims.Replacer_S16¶
Bases:
wrapperReplacement of (label) values in a volume.
Values are replaced at once, thus it does not suffer from overlapping values if ivol is ovol (which would happen for instance in a loop replacing one value after another).
- replace(ivol: Volume_S16, ovol: Volume_S16, repl: object)¶
- replace(ivol, ovol, repl) None
Replace values from “repl” keys, from the input volume ivol, to the corresponding repl values in the output volume ovol.
Only actually replaced values will be written in ovol, other will be left untouched.
It is OK to specify the same volume as ivol and ovol, then it will be replaced in-place.
- class soma.aims.Replacer_S32¶
Bases:
wrapperReplacement of (label) values in a volume.
Values are replaced at once, thus it does not suffer from overlapping values if ivol is ovol (which would happen for instance in a loop replacing one value after another).
- replace(ivol: Volume_S32, ovol: Volume_S32, repl: object)¶
- replace(ivol, ovol, repl) None
Replace values from “repl” keys, from the input volume ivol, to the corresponding repl values in the output volume ovol.
Only actually replaced values will be written in ovol, other will be left untouched.
It is OK to specify the same volume as ivol and ovol, then it will be replaced in-place.
- class soma.aims.Replacer_U16¶
Bases:
wrapperReplacement of (label) values in a volume.
Values are replaced at once, thus it does not suffer from overlapping values if ivol is ovol (which would happen for instance in a loop replacing one value after another).
- replace(ivol: Volume_U16, ovol: Volume_U16, repl: object)¶
- replace(ivol, ovol, repl) None
Replace values from “repl” keys, from the input volume ivol, to the corresponding repl values in the output volume ovol.
Only actually replaced values will be written in ovol, other will be left untouched.
It is OK to specify the same volume as ivol and ovol, then it will be replaced in-place.
- class soma.aims.Replacer_U32¶
Bases:
wrapperReplacement of (label) values in a volume.
Values are replaced at once, thus it does not suffer from overlapping values if ivol is ovol (which would happen for instance in a loop replacing one value after another).
- replace(ivol: Volume_U32, ovol: Volume_U32, repl: object)¶
- replace(ivol, ovol, repl) None
Replace values from “repl” keys, from the input volume ivol, to the corresponding repl values in the output volume ovol.
Only actually replaced values will be written in ovol, other will be left untouched.
It is OK to specify the same volume as ivol and ovol, then it will be replaced in-place.
- class soma.aims.RoiDiff¶
- class soma.aims.RoiDiff(a0: aims.RoiDiff)
Bases:
wrapper- class DiffStat¶
- class DiffStat(a0: aims.RoiDiff.DiffStat)
Bases:
wrapper- dice¶
- g2_bucket¶
- matching_voxels¶
- unmatching_voxels¶
- globalStats(self) aims.RoiDiff.DiffStat¶
- graph2LabelVolume(self) rc_ptr_Volume_S16¶
- mismatch_bucket(self) rc_ptr_BucketMap_VOID¶
- roiNames(self) vector_STRING¶
- statsByLabel(self, label: object) aims.RoiDiff.DiffStat | None¶
- class soma.aims.RoiIterator(*args)¶
Bases:
RCObject- maskIterator(self) carto.rc_ptr_MaskIterator¶
- next(self)¶
- restart(self)¶
- setRegionNameAttributes(self, a0: vector_STRING)¶
- setRegionNameAttributes(attributes) None
set region name attribute in graph. Normally “name” or “label”. If several values are provided, attributes are searched in each graph vertex, in that order. If the attributes list is empty, then the graph “label_property” attribute will be used, and if it is not specified there, the default search list (“name”, “label”) will be used.
setRegionNameAttributes(self, a0: object)
- soma.aims.ShallowConverter(*args, **kwargs)[source]¶
Create a ShallowConverter instance from input and output types. Types may be passed as keyword arguments intype and outtype, or dtype if both are the same (not very useful for a converter). Otherwise the arguments are parsed to find types arguments.
Types may be specified as allowed by typeCode().
Note that for volumes, the method
astypeis often more convenient than using a Converter object (with the same result).
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_DOUBLE(a0: ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_FLOAT(a0: ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_FLOAT)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_S16(a0: ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_S16)
Bases:
wrapper- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_S16)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_S32(a0: ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_S32)
Bases:
wrapper- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_S32)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U16(a0: ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U16)
Bases:
wrapper- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_U16)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U32(a0: ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U32)
Bases:
wrapper- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_U32)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U8(a0: ShallowConverter_BucketMap_DOUBLE_rc_ptr_Volume_U8)
Bases:
wrapper- convert(self, a0: BucketMap_DOUBLE, a1: rc_ptr_Volume_U8)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_DOUBLE(a0: ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_FLOAT(a0: ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_FLOAT)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_S16(a0: ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_S16)
Bases:
wrapper- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_S16)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_S32(a0: ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_S32)
Bases:
wrapper- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_S32)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U16(a0: ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U16)
Bases:
wrapper- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_U16)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U32(a0: ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U32)
Bases:
wrapper- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_U32)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U8(a0: ShallowConverter_BucketMap_FLOAT_rc_ptr_Volume_U8)
Bases:
wrapper- convert(self, a0: BucketMap_FLOAT, a1: rc_ptr_Volume_U8)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_DOUBLE(a0: ShallowConverter_BucketMap_S16_rc_ptr_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_FLOAT(a0: ShallowConverter_BucketMap_S16_rc_ptr_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_FLOAT)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_S16(a0: ShallowConverter_BucketMap_S16_rc_ptr_Volume_S16)
Bases:
wrapper- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_S16)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_S32(a0: ShallowConverter_BucketMap_S16_rc_ptr_Volume_S32)
Bases:
wrapper- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_S32)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_U16(a0: ShallowConverter_BucketMap_S16_rc_ptr_Volume_U16)
Bases:
wrapper- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_U16)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_U32(a0: ShallowConverter_BucketMap_S16_rc_ptr_Volume_U32)
Bases:
wrapper- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_U32)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S16_rc_ptr_Volume_U8(a0: ShallowConverter_BucketMap_S16_rc_ptr_Volume_U8)
Bases:
wrapper- convert(self, a0: BucketMap_S16, a1: rc_ptr_Volume_U8)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_DOUBLE(a0: ShallowConverter_BucketMap_S32_rc_ptr_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_FLOAT(a0: ShallowConverter_BucketMap_S32_rc_ptr_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_FLOAT)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_S16(a0: ShallowConverter_BucketMap_S32_rc_ptr_Volume_S16)
Bases:
wrapper- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_S16)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_S32(a0: ShallowConverter_BucketMap_S32_rc_ptr_Volume_S32)
Bases:
wrapper- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_S32)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_U16(a0: ShallowConverter_BucketMap_S32_rc_ptr_Volume_U16)
Bases:
wrapper- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_U16)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_U32(a0: ShallowConverter_BucketMap_S32_rc_ptr_Volume_U32)
Bases:
wrapper- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_U32)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_S32_rc_ptr_Volume_U8(a0: ShallowConverter_BucketMap_S32_rc_ptr_Volume_U8)
Bases:
wrapper- convert(self, a0: BucketMap_S32, a1: rc_ptr_Volume_U8)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_DOUBLE(a0: ShallowConverter_BucketMap_U16_rc_ptr_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_FLOAT(a0: ShallowConverter_BucketMap_U16_rc_ptr_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_FLOAT)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_S16(a0: ShallowConverter_BucketMap_U16_rc_ptr_Volume_S16)
Bases:
wrapper- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_S16)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_S32(a0: ShallowConverter_BucketMap_U16_rc_ptr_Volume_S32)
Bases:
wrapper- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_S32)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_U16(a0: ShallowConverter_BucketMap_U16_rc_ptr_Volume_U16)
Bases:
wrapper- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_U16)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_U32(a0: ShallowConverter_BucketMap_U16_rc_ptr_Volume_U32)
Bases:
wrapper- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_U32)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U16_rc_ptr_Volume_U8(a0: ShallowConverter_BucketMap_U16_rc_ptr_Volume_U8)
Bases:
wrapper- convert(self, a0: BucketMap_U16, a1: rc_ptr_Volume_U8)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_DOUBLE(a0: ShallowConverter_BucketMap_U32_rc_ptr_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_FLOAT(a0: ShallowConverter_BucketMap_U32_rc_ptr_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_FLOAT)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_S16(a0: ShallowConverter_BucketMap_U32_rc_ptr_Volume_S16)
Bases:
wrapper- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_S16)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_S32(a0: ShallowConverter_BucketMap_U32_rc_ptr_Volume_S32)
Bases:
wrapper- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_S32)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_U16(a0: ShallowConverter_BucketMap_U32_rc_ptr_Volume_U16)
Bases:
wrapper- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_U16)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_U32(a0: ShallowConverter_BucketMap_U32_rc_ptr_Volume_U32)
Bases:
wrapper- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_U32)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_U32_rc_ptr_Volume_U8(a0: ShallowConverter_BucketMap_U32_rc_ptr_Volume_U8)
Bases:
wrapper- convert(self, a0: BucketMap_U32, a1: rc_ptr_Volume_U8)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_DOUBLE(a0: ShallowConverter_BucketMap_VOID_rc_ptr_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_FLOAT(a0: ShallowConverter_BucketMap_VOID_rc_ptr_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_FLOAT)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_S16(a0: ShallowConverter_BucketMap_VOID_rc_ptr_Volume_S16)
Bases:
wrapper- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_S16)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_S32(a0: ShallowConverter_BucketMap_VOID_rc_ptr_Volume_S32)
Bases:
wrapper- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_S32)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U16(a0: ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U16)
Bases:
wrapper- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_U16)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U32(a0: ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U32)
Bases:
wrapper- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_U32)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U8(a0: ShallowConverter_BucketMap_VOID_rc_ptr_Volume_U8)
Bases:
wrapper- convert(self, a0: BucketMap_VOID, a1: rc_ptr_Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_DOUBLE(a0: ShallowConverter_Volume_DOUBLE_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_FLOAT(a0: ShallowConverter_Volume_DOUBLE_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_HSV(a0: ShallowConverter_Volume_DOUBLE_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_RGB(a0: ShallowConverter_Volume_DOUBLE_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_RGBA(a0: ShallowConverter_Volume_DOUBLE_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_S16(a0: ShallowConverter_Volume_DOUBLE_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_S32(a0: ShallowConverter_Volume_DOUBLE_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_U16(a0: ShallowConverter_Volume_DOUBLE_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_U32(a0: ShallowConverter_Volume_DOUBLE_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_DOUBLE_Volume_U8(a0: ShallowConverter_Volume_DOUBLE_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_DOUBLE, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_DOUBLE(a0: ShallowConverter_Volume_FLOAT_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_FLOAT(a0: ShallowConverter_Volume_FLOAT_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_HSV(a0: ShallowConverter_Volume_FLOAT_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_RGB(a0: ShallowConverter_Volume_FLOAT_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_RGBA(a0: ShallowConverter_Volume_FLOAT_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_S16(a0: ShallowConverter_Volume_FLOAT_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_S32(a0: ShallowConverter_Volume_FLOAT_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_U16(a0: ShallowConverter_Volume_FLOAT_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_U32(a0: ShallowConverter_Volume_FLOAT_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_FLOAT_Volume_U8(a0: ShallowConverter_Volume_FLOAT_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_FLOAT, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_DOUBLE(a0: ShallowConverter_Volume_HSV_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_FLOAT(a0: ShallowConverter_Volume_HSV_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_HSV(a0: ShallowConverter_Volume_HSV_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_RGB(a0: ShallowConverter_Volume_HSV_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_RGBA(a0: ShallowConverter_Volume_HSV_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_S16(a0: ShallowConverter_Volume_HSV_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_S32(a0: ShallowConverter_Volume_HSV_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_U16(a0: ShallowConverter_Volume_HSV_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_U32(a0: ShallowConverter_Volume_HSV_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_HSV_Volume_U8(a0: ShallowConverter_Volume_HSV_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_HSV, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_DOUBLE(a0: ShallowConverter_Volume_RGBA_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_FLOAT(a0: ShallowConverter_Volume_RGBA_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_HSV(a0: ShallowConverter_Volume_RGBA_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_RGB(a0: ShallowConverter_Volume_RGBA_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_RGBA(a0: ShallowConverter_Volume_RGBA_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_S16(a0: ShallowConverter_Volume_RGBA_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_S32(a0: ShallowConverter_Volume_RGBA_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_U16(a0: ShallowConverter_Volume_RGBA_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_U32(a0: ShallowConverter_Volume_RGBA_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGBA_Volume_U8(a0: ShallowConverter_Volume_RGBA_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_RGBA, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_DOUBLE(a0: ShallowConverter_Volume_RGB_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_FLOAT(a0: ShallowConverter_Volume_RGB_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_HSV(a0: ShallowConverter_Volume_RGB_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_RGB(a0: ShallowConverter_Volume_RGB_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_RGBA(a0: ShallowConverter_Volume_RGB_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_S16(a0: ShallowConverter_Volume_RGB_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_S32(a0: ShallowConverter_Volume_RGB_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_U16(a0: ShallowConverter_Volume_RGB_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_U32(a0: ShallowConverter_Volume_RGB_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_RGB_Volume_U8(a0: ShallowConverter_Volume_RGB_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_RGB, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_DOUBLE(a0: ShallowConverter_Volume_S16_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_FLOAT(a0: ShallowConverter_Volume_S16_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_HSV(a0: ShallowConverter_Volume_S16_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_RGB(a0: ShallowConverter_Volume_S16_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_RGBA(a0: ShallowConverter_Volume_S16_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_S16(a0: ShallowConverter_Volume_S16_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_S32(a0: ShallowConverter_Volume_S16_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_U16(a0: ShallowConverter_Volume_S16_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_U32(a0: ShallowConverter_Volume_S16_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S16_Volume_U8(a0: ShallowConverter_Volume_S16_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_S16, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_DOUBLE(a0: ShallowConverter_Volume_S32_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_FLOAT(a0: ShallowConverter_Volume_S32_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_HSV(a0: ShallowConverter_Volume_S32_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_RGB(a0: ShallowConverter_Volume_S32_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_RGBA(a0: ShallowConverter_Volume_S32_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_S16(a0: ShallowConverter_Volume_S32_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_S32(a0: ShallowConverter_Volume_S32_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_U16(a0: ShallowConverter_Volume_S32_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_U32(a0: ShallowConverter_Volume_S32_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_S32_Volume_U8(a0: ShallowConverter_Volume_S32_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_S32, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_DOUBLE(a0: ShallowConverter_Volume_U16_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_FLOAT(a0: ShallowConverter_Volume_U16_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_HSV(a0: ShallowConverter_Volume_U16_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_RGB(a0: ShallowConverter_Volume_U16_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_RGBA(a0: ShallowConverter_Volume_U16_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_S16(a0: ShallowConverter_Volume_U16_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_S32(a0: ShallowConverter_Volume_U16_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_U16(a0: ShallowConverter_Volume_U16_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_U32(a0: ShallowConverter_Volume_U16_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U16_Volume_U8(a0: ShallowConverter_Volume_U16_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_U16, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_DOUBLE(a0: ShallowConverter_Volume_U32_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_FLOAT(a0: ShallowConverter_Volume_U32_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_HSV(a0: ShallowConverter_Volume_U32_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_RGB(a0: ShallowConverter_Volume_U32_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_RGBA(a0: ShallowConverter_Volume_U32_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_S16(a0: ShallowConverter_Volume_U32_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_S32(a0: ShallowConverter_Volume_U32_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_U16(a0: ShallowConverter_Volume_U32_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_U32(a0: ShallowConverter_Volume_U32_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U32_Volume_U8(a0: ShallowConverter_Volume_U32_Volume_U8)
Bases:
wrapper- convert(self, a0: Volume_U32, a1: Volume_U8)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_DOUBLE(a0: ShallowConverter_Volume_U8_Volume_DOUBLE)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_DOUBLE)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_FLOAT(a0: ShallowConverter_Volume_U8_Volume_FLOAT)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_FLOAT)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_HSV(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_HSV(a0: ShallowConverter_Volume_U8_Volume_HSV)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_HSV)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_RGB(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_RGB(a0: ShallowConverter_Volume_U8_Volume_RGB)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_RGB)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_RGBA(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_RGBA(a0: ShallowConverter_Volume_U8_Volume_RGBA)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_RGBA)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_S16(a0: ShallowConverter_Volume_U8_Volume_S16)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_S16)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_S32(a0: ShallowConverter_Volume_U8_Volume_S32)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_S32)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_U16(a0: ShallowConverter_Volume_U8_Volume_U16)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_U16)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_U32(a0: ShallowConverter_Volume_U8_Volume_U32)
Bases:
wrapper- convert(self, a0: Volume_U8, a1: Volume_U32)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_U8(a0: bool = False)¶
- class soma.aims.ShallowConverter_Volume_U8_Volume_U8(a0: ShallowConverter_Volume_U8_Volume_U8)
Bases:
wrapper
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_DOUBLE(a0: ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_DOUBLE)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_DOUBLE)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_FLOAT(a0: ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_FLOAT)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_FLOAT)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_S16(a0: ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_S16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_S16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_S32(a0: ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_S32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_S32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_U16(a0: ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_U16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_U16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_U32(a0: ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_U32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_U32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_VOID(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_VOID(a0: ShallowConverter_rc_ptr_Volume_DOUBLE_BucketMap_VOID)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_DOUBLE, a1: BucketMap_VOID)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_DOUBLE(a0: ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_DOUBLE)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_DOUBLE)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_FLOAT(a0: ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_FLOAT)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_FLOAT)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_S16(a0: ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_S16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_S16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_S32(a0: ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_S32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_S32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_U16(a0: ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_U16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_U16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_U32(a0: ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_U32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_U32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_VOID(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_VOID(a0: ShallowConverter_rc_ptr_Volume_FLOAT_BucketMap_VOID)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_FLOAT, a1: BucketMap_VOID)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_DOUBLE(a0: ShallowConverter_rc_ptr_Volume_S16_BucketMap_DOUBLE)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_DOUBLE)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_FLOAT(a0: ShallowConverter_rc_ptr_Volume_S16_BucketMap_FLOAT)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_FLOAT)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_S16(a0: ShallowConverter_rc_ptr_Volume_S16_BucketMap_S16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_S16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_S32(a0: ShallowConverter_rc_ptr_Volume_S16_BucketMap_S32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_S32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_U16(a0: ShallowConverter_rc_ptr_Volume_S16_BucketMap_U16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_U16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_U32(a0: ShallowConverter_rc_ptr_Volume_S16_BucketMap_U32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_U32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_VOID(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S16_BucketMap_VOID(a0: ShallowConverter_rc_ptr_Volume_S16_BucketMap_VOID)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S16, a1: BucketMap_VOID)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_DOUBLE(a0: ShallowConverter_rc_ptr_Volume_S32_BucketMap_DOUBLE)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_DOUBLE)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_FLOAT(a0: ShallowConverter_rc_ptr_Volume_S32_BucketMap_FLOAT)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_FLOAT)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_S16(a0: ShallowConverter_rc_ptr_Volume_S32_BucketMap_S16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_S16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_S32(a0: ShallowConverter_rc_ptr_Volume_S32_BucketMap_S32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_S32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_U16(a0: ShallowConverter_rc_ptr_Volume_S32_BucketMap_U16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_U16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_U32(a0: ShallowConverter_rc_ptr_Volume_S32_BucketMap_U32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_U32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_VOID(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_S32_BucketMap_VOID(a0: ShallowConverter_rc_ptr_Volume_S32_BucketMap_VOID)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_S32, a1: BucketMap_VOID)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_DOUBLE(a0: ShallowConverter_rc_ptr_Volume_U16_BucketMap_DOUBLE)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_DOUBLE)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_FLOAT(a0: ShallowConverter_rc_ptr_Volume_U16_BucketMap_FLOAT)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_FLOAT)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_S16(a0: ShallowConverter_rc_ptr_Volume_U16_BucketMap_S16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_S16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_S32(a0: ShallowConverter_rc_ptr_Volume_U16_BucketMap_S32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_S32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_U16(a0: ShallowConverter_rc_ptr_Volume_U16_BucketMap_U16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_U16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_U32(a0: ShallowConverter_rc_ptr_Volume_U16_BucketMap_U32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_U32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_VOID(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U16_BucketMap_VOID(a0: ShallowConverter_rc_ptr_Volume_U16_BucketMap_VOID)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U16, a1: BucketMap_VOID)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_DOUBLE(a0: ShallowConverter_rc_ptr_Volume_U32_BucketMap_DOUBLE)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_DOUBLE)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_FLOAT(a0: ShallowConverter_rc_ptr_Volume_U32_BucketMap_FLOAT)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_FLOAT)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_S16(a0: ShallowConverter_rc_ptr_Volume_U32_BucketMap_S16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_S16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_S32(a0: ShallowConverter_rc_ptr_Volume_U32_BucketMap_S32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_S32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_U16(a0: ShallowConverter_rc_ptr_Volume_U32_BucketMap_U16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_U16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_U32(a0: ShallowConverter_rc_ptr_Volume_U32_BucketMap_U32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_U32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_VOID(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U32_BucketMap_VOID(a0: ShallowConverter_rc_ptr_Volume_U32_BucketMap_VOID)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U32, a1: BucketMap_VOID)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_DOUBLE(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_DOUBLE(a0: ShallowConverter_rc_ptr_Volume_U8_BucketMap_DOUBLE)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_DOUBLE)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_FLOAT(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_FLOAT(a0: ShallowConverter_rc_ptr_Volume_U8_BucketMap_FLOAT)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_FLOAT)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_S16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_S16(a0: ShallowConverter_rc_ptr_Volume_U8_BucketMap_S16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_S16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_S32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_S32(a0: ShallowConverter_rc_ptr_Volume_U8_BucketMap_S32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_S32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_U16(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_U16(a0: ShallowConverter_rc_ptr_Volume_U8_BucketMap_U16)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_U16)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_U32(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_U32(a0: ShallowConverter_rc_ptr_Volume_U8_BucketMap_U32)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_U32)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_VOID(a0: bool = False)¶
- class soma.aims.ShallowConverter_rc_ptr_Volume_U8_BucketMap_VOID(a0: ShallowConverter_rc_ptr_Volume_U8_BucketMap_VOID)
Bases:
wrapper- convert(self, a0: rc_ptr_Volume_U8, a1: BucketMap_VOID)¶
- class soma.aims.SimpleBundlesSlicer(numberOfSlice: int)¶
- class soma.aims.SimpleBundlesSlicer(a0: aims.SimpleBundlesSlicer)
Bases:
BundlesSlicer
- class soma.aims.SparseMatrix(size1: int = 1, size2: int = 1)¶
- class soma.aims.SparseMatrix(other: aims.SparseMatrix)
Bases:
RCObject- fill(self, value: float)¶
- fill(self, offset1: int, offset2: int, size1: int, size2: int, value: float) None
- fill(self, offset1: int, offset2: int, other: aims.SparseMatrix, size1: int = 0, size2: int = 0) None
- getColumn(self, j: int) vector_DOUBLE¶
- getComposition(self, other: aims.SparseMatrix) aims.SparseMatrix¶
- getComposition(self, other: vector_DOUBLE) vector_DOUBLE
- getRow(self, i: int) vector_DOUBLE¶
- getTransposition(self) aims.SparseMatrix¶
- header(self) carto.Object¶
- setColumn(self, s2: int, column: vector_DOUBLE)¶
- setIdentity(self)¶
- setRow(self, s1: int, row: vector_DOUBLE)¶
- setZero(self)¶
- transpose(self)¶
- class soma.aims.SparseOrDenseMatrix(size1: int = 1, size2: int = 1)¶
- class soma.aims.SparseOrDenseMatrix(other: aims.SparseOrDenseMatrix)
Bases:
RCObject- asDense(self, copy: bool = False) rc_ptr_Volume_DOUBLE¶
- asSparse(self, copy: bool = False) rc_ptr_SparseMatrix¶
- denseMatrix(self) rc_ptr_Volume_DOUBLE¶
- getColumn(self, j: int) vector_DOUBLE¶
- getRow(self, i: int) vector_DOUBLE¶
- getSize(self) vector_S32¶
- header(self) carto.Object¶
- muteToDense(self)¶
- muteToOptimalShape(self)¶
- muteToSparse(self)¶
- readAll(self)¶
- setColumn(self, s2: int, column: vector_DOUBLE)¶
- setHeader(self, ph: carto.Object)¶
- setMatrix(self, matrix: rc_ptr_SparseMatrix)¶
- setMatrix(self, matrix: rc_ptr_Volume_DOUBLE) None
- setRow(self, s1: int, row: vector_DOUBLE)¶
- sparseMatrix(self) rc_ptr_SparseMatrix¶
- subMatrix(self, start: vector_S32, size: vector_S32) aims.SparseOrDenseMatrix | None¶
- subMatrix(self, indices_along_dims: vector_vector_S32) aims.SparseOrDenseMatrix | None
- write(self, filename: object, options: carto.Object = carto.none())¶
- class soma.aims.StandardReferentials¶
- class soma.aims.StandardReferentials(a0: aims.StandardReferentials)
Bases:
wrapper- acPcReferentialID() object¶
- acPcReferentialID() None
identifer (UUID str) for the Talairach/AIMS space
- icbm2009cTemplateHeader() carto.Object¶
hdr = aims.StandardReferentials.icbm2009cTemplateHeader() Return a header with size and characteristics of the ICBM2009c MNI template volume.
- mniTemplateReferential() object¶
- mniTemplateReferential() None
identifer (str) for the MNI/ICBM space
- mniTemplateReferentialID() object¶
- mniTemplateReferentialID() None
identifer (UUID str) for the MNI/ICBM space
- referentialID(refName: object, commonScannerBased: bool = False, genNewIds: bool = True, commonSuffix: object = '') object¶
try to identify referential ID from its string name or description.
for instance “Talairach-MNI template-SPM” will be translated to its AIMS uuid, “803552a6-ac4d-491d-99f5-b938392b674b”
If commonScannerBased is true, then “Scanner-based anatomical coordinates” will be translated to the value of commonScannerBasedReferentialID(), so that other ref names of the same kind will match. If commonScannerBased is false, then a scanner-based ref name will be either translated to a new UUID, or returned unchanged or with a suffix, depending on the values of genNewIds (see below) and commonSuffix. If commonSuffix has a value, it will be appended after the name “Scanner-based anatomical coordinates”.
if genNewIds is true, then: if the refName is an unkwnown referential name (and not an UUID), then a new UUID will be generated for it, each time this function is called: so calling it twice with the same name will result in two distinct IDs. if genNewIds is false, and the refName is not recognized, then it will be returned unchanged.
- talairachReferential() object¶
- talairachReferential() None
identifer (str) for the Talairach/CIFTI space
- talairachToICBM() aims.AffineTransformation3d¶
- talairachToICBM2009cTemplate() aims.AffineTransformation3d¶
trans = aims.StandardReferentials.talairachToICBM2009cTemplate()
Transformation between the ICBM152 standard space and the ICBM152 template space.
includes shifts and axes inversions.
This is the “most standard” field of view of the template image, the one from the ICBM2009c_nlin_asym template from the MNI. Actually we find various fields of view for the templates. The one we use here is (193, 229, 193). The transform to the “real” ICBM space (0 roughly at AC) is provided in the output transformation header. This space has a fixed transformation with our Aims Talairach, along with the template volume size and voxel size. This space has a fixed transformation with our Aims Talairach.
- class soma.aims.StdOutInhibitorFix[source]¶
Bases:
ResetCallback
- class soma.aims.SurfaceGenerator¶
Bases:
wrapperSurface Generator Object. Available Methods are :
cube(center_p, radius_f, smoothnormal_b=false)
cylinder(p1_p, p2_p, radius1_f, radius2_f, nfacets_i, closed_b, smooth_b=false)
cone(arrow_p, base_p, radius_f, nfacets_i, closed_b, smooth_b=false)
arrow(arrow_p, base_p, radius_f, arrowradius_f, nfacets_i, arrowlengthfract_f)
icosahedron(center_p, radius_f)
sphere(center_p, radius_f, nfacets_i)
icosphere(center_p, radius_f, nfacets_i)
With arguments suffix _f:float, _i:int, _b:bool, _p: Point3df or 3-tuple
Alternatively, all those may be called with a GenericObject as only parameter.
This doc might not be up-to-date, use the
printDescription()method for more info.- arrow(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static arrow( dictionary ) See the description() and printDescription() methods for more information.
arrow(a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3, a2: float, a3: float, a4: int, a5: float) -> Optional[AimsTimeSurface_3_VOID] static arrow( Point3df arrowhead, Point3df base, float headradius, float arrowradius, unsigned nfaces, float arrowlengthfactor )
- circle_wireframe(params: carto.GenericObject) AimsTimeSurface_2_VOID | None¶
circle_wireframe(center: AimsVector_FLOAT_3, radius: float, nseg: int = 20, normal: AimsVector_FLOAT_3 = Point3df(0, 0, 1), startdir: AimsVector_FLOAT_3 = Point3df(1, 0, 0), startangle: float = 0, stopangle: float = M_PI*2) -> Optional[AimsTimeSurface_2_VOID] Circle, or part of circle.
center, radius are classical. nseg is the number of segments in the circle polygon normal is a normal vector to the circle plane. startdir is a vector in the circle plane determining the beginning of angles (circle ray). startangle, stopangle are meant to make parts of circle
- cone(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static cone( dictionary ) See the description() and printDescription() methods for more information.
cone(a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3, a2: float, a3: int, a4: bool, a5: bool = False) -> Optional[AimsTimeSurface_3_VOID] static cone( Point3df arrowhead, Point3df base, float radius, unsigned nfaces, bool closed, bool smooth=False )
- cube(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static cube( dictionary ) See the description() and printDescription() methods for more information.
cube(a0: AimsVector_FLOAT_3, a1: float, a2: bool = False) -> Optional[AimsTimeSurface_3_VOID] static cube( Point3df center, float radius, bool smoothnormals=False )
- cylinder(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static cylinder( dictionary ) See the description() and printDescription() methods for more information.
cylinder(a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3, a2: float, a3: float, a4: int, a5: bool, a6: bool = False, a7: bool = True) -> Optional[AimsTimeSurface_3_VOID] static cylinder( Point3df center1, Point3df center2, float radius1, float radius2, unsigned nfaces, bool closed, bool smooth=False )
- description() carto.Object¶
- description_wireframe() carto.Object¶
- ellipse(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static ellipse( dictionary ) See the description() and printDescription() methods for more information.
ellipse(a0: AimsVector_FLOAT_3, radius1: float, radius2: float, a3: int, a4: bool = False) -> Optional[AimsTimeSurface_3_VOID] static ellipse( Point3df center, float radius1, float radius2, unsigned nfaces, bool uniquevertices=False )
- generate(a0: carto.Object) AimsTimeSurface_3_VOID | None¶
- generate(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None
- generate_wireframe(a0: carto.Object) AimsTimeSurface_2_VOID | None¶
- generate_wireframe(a0: carto.GenericObject) AimsTimeSurface_2_VOID | None
- grid(params: carto.GenericObject) AimsTimeSurface_2_VOID | None¶
- grid(dict) None
See the description() and printDescription() methods for more information.
grid(boundingbox_min: AimsVector_FLOAT_3, boundingbox_max: AimsVector_FLOAT_3, grid_sampling: AimsVector_FLOAT_3) -> Optional[AimsTimeSurface_2_VOID] grid(Point3df boundingbox_min, Point3df boundingbox_max, Point3df grid_sampling) Regular, wireframe grid
- icosahedron(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static icosahedron( dictionary ) See the description() and printDescription() methods for more information.
icosahedron(a0: AimsVector_FLOAT_3, a1: float) -> Optional[AimsTimeSurface_3_VOID] static icosahedron( Point3df center, float radius )
- icosphere(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
- icosphere(dictionary) None
See the description() and printDescription() methods for more information.
icosphere(a0: AimsVector_FLOAT_3, a1: float, a2: int = 320) -> Optional[AimsTimeSurface_3_VOID] icosphere( Point3df center, float radius, unsigned nfaces=320 )
Compared to sphere() which performs meridian / parallels tesselation, icosphere over-segments an icosahedron to get equal, equilateral triangles.
- parallelepiped(params: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
parallelepiped(boundingbox_min: AimsVector_FLOAT_3, boundingbox_max: AimsVector_FLOAT_3, smooth: bool = False) -> Optional[AimsTimeSurface_3_VOID] parallelepiped(boundingbox_min, boundingbox_max, smooth=False)
- Parameters:
boundingbox_min (Point3df) – “lower bound” corner position
boundingbox_min – “upper bound” corner position
smooth (bool) – if True, make smooth faces and shared vertices in corners
- parallelepiped_wireframe(params: carto.GenericObject) AimsTimeSurface_2_VOID | None¶
parallelepiped_wireframe(boundingbox_min: AimsVector_FLOAT_3, boundingbox_max: AimsVector_FLOAT_3) -> Optional[AimsTimeSurface_2_VOID] parallelepiped_wireframe( Point3df boundingbox_min, Point3df boundingbox_max )
- printDescription()¶
- printDescription_wireframe()¶
- sphere(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static sphere( dictionary ) See the description() and printDescription() methods for more information.
sphere(a0: AimsVector_FLOAT_3, a1: float, a2: int, a3: bool = False) -> Optional[AimsTimeSurface_3_VOID] static sphere( Point3df center, float radius, unsigned nfaces, bool uniquevertices=False )
- class soma.aims.SurfaceManip¶
Bases:
wrapperSurface Manipulation Object. All mehtods are static in this class, it is just a means of grouping functions.
- checkMeshIntersect(a0: AimsTimeSurface_3_VOID, a1: AimsTimeSurface_3_VOID) bool¶
- cutMesh(insurf: AimsTimeSurface_3_VOID, plane: AimsVector_FLOAT_4, cut: AimsTimeSurface_3_VOID, borderline: AimsTimeSurface_2_VOID)¶
- cutMesh(in_mesh, plane, cut_mesh, border_line) None
Cut a mesh by a plane and that’s all.
- Parameters:
in_mesh (AimsSurfaceTriangle) – Triangular mesh to be cut.
plane (Point4df) – cut plane equation (4 coefs)
cut_mesh (AimsSurfaceTriangle) – output cut mesh (the part satisfying the plane equation). Polygons crossing the plane will be cut into smaller ones.
border_line (AimsTimeSurface_2_VOID) – output cut section polygon
- Return type:
None
- invertSurfacePolygons(surface: AimsTimeSurface_3_VOID)¶
- invertSurfacePolygons(mesh) None
Invert polygons order (flips 2 vertex indices in each triangle) to flip its interior / exterior notions (used by OpenGL rendering). The input mesh is modified in-place.
- joinTexturedMesh(mesh: AimsTimeSurface_3_VOID, texture: TimeTexture_FLOAT) rc_ptr_AimsTimeSurface_3_FLOAT¶
joinTexturedMesh(mesh: AimsTimeSurface_2_VOID, texture: TimeTexture_POINT2DF) -> rc_ptr_AimsTimeSurface_2_POINT2DF
joinTexturedMesh(mesh: AimsTimeSurface_2_VOID, texture: TimeTexture_FLOAT) -> rc_ptr_AimsTimeSurface_2_FLOAT
joinTexturedMesh(mesh: AimsTimeSurface_3_VOID, texture: TimeTexture_POINT2DF) -> rc_ptr_AimsTimeSurface_3_POINT2DF Join a mesh and a texture into a textured mesh
- lineDirections(a0: AimsTimeSurface_2_VOID) vector_POINT3DF | None¶
- lineDirections(segments_mesh) None
calculate directions of a line mesh, for each vertex
- Parameters:
segments_mesh (AimsTimeSurface_2_VOID)
- Returns:
directions
- Return type:
- meshArea(surf: AimsTimeSurface_3_VOID) float¶
Surface area of a triangular mesh, in mm^2
meshArea(surf: AimsTimeSurface_3_VOID, tex: TimeTexture_S16) -> object Surface areas of regions of a triangular mesh, in mm^2. Regions are given as a texture.
meshArea(surf: AimsTimeSurface_3_VOID, tex: Texture_S16) -> object
- meshDensity(mesh: AimsTimeSurface_3_VOID, asDistance: bool = False) TimeTexture_FLOAT | None¶
- meshDensity(mesh, as_distance=False) None
Calculate a mesh density: inverse of the average edges distance.
- Parameters:
mesh (AimsSurfaceTriangle)
as_distance (bool (optional)) – if True, the average distance is not inverted, thus the output is an average distance map.
- Returns:
density_texture
- Return type:
- meshEdgeLengthRatioTexture(nummesh: AimsTimeSurface_3_VOID, denommesh: AimsTimeSurface_3_VOID) TimeTexture_FLOAT | None¶
- meshEdgeLengthRatioTexture(numerator_mesh, denominator_mesh) None
Calculate an edge length ratio in edges of two meshes with the same topology. The max length ratios of edges is kept for each vertex.
- Parameters:
numerator_mesh (AimsSurfaceTriangle)
denominator_mesh (AimsSurfaceTriangle)
- Returns:
ratio_texture
- Return type:
- meshExtract(mesh: AimsTimeSurface_3_VOID, tex: TimeTexture_S16, value: int)¶
- meshExtract(mesh, texture, label_value) None
Extracts a sub-mesh defined by a texture label value.
- Returns:
sub_mesh (AimsTimeSurface_3_VOID) – extracted sub-mesh
vertices (vector_ULONG) – indices of extracted vertices
- meshMerge(a0: AimsTimeSurface_2_VOID, a1: AimsTimeSurface_2_VOID)¶
meshMerge(a0: AimsTimeSurface_3_VOID, a1: AimsTimeSurface_3_VOID)
meshMerge(a0: AimsTimeSurface_4_VOID, a1: AimsTimeSurface_4_VOID) meshMerge(input_output_mesh, input_mesh)
Concatenates the second mesh to the first one. The first argument will be modified.
- Parameters:
input_output_mesh (AimsTimeSurface_3_VOID) – first mesh. Will be modified to be the output.
input_mesh (AimsTimeSurface_3_VOID) – second mesh to be appended to the first one.
- Return type:
None
- meshPlanarPolygon(a0: AimsVector_FLOAT_4, a1: AimsTimeSurface_2_VOID) AimsTimeSurface_3_VOID | None¶
- meshPlanarPolygon(plane, polygon) None
Tesselate a planar polygon to fill it by a triangular mesh
- Parameters:
plane (Point4df) – plane equation
polygon (AimsTimeSurface_2_VOID) – planar polygon to tesselate. Typically, the output of cutMesh()
- Returns:
planar_mesh – the mesh filling the polygon
- Return type:
AimsSurfaceTriangle
- meshTextureBoundary(mesh: AimsTimeSurface_3_VOID, tex: TimeTexture_S16, region: int) AimsTimeSurface_2_VOID | None¶
- meshTextureBoundary(mesh, label_texture, region_value) None
Extracts the boundary of region of value <region_value> of the input texture, on the mesh.
If region_value is negative, take boundaries of all regions. The input texture is a label texture.
- Parameters:
mesh (AimsSurfaceTriangle) – input mesh to extract boundary on
label_texture (TimeTexture_S16, TimeTexture_S32, or TimeTexture_FLOAT) – label texture defining regions on the mesh
region_value (int16, int32 or float) – label of the desired region
- Returns:
boundary (AimsTimeSurface_2_VOID) – output segments mesh (filar mesh) for the boundary
meshTextureBoundary(mesh (AimsTimeSurface_3_VOID, tex: TimeTexture_S32, region: int) -> Optional[AimsTimeSurface_2_VOID])
meshTextureBoundary(mesh (AimsTimeSurface_3_VOID, tex: TimeTexture_FLOAT, region: float) -> Optional[AimsTimeSurface_2_VOID])
- meshTransform(a0: AimsTimeSurface_3_VOID, a1: aims.AffineTransformation3d)¶
- meshTransform(mesh, transformation) None
Apply linear coordinates transformation to a mesh. The input mesh will be modified in-place.
- Parameters:
mesh (AimsTimeSurface_3_VOID or AimsTimeSurface_2_VOID) – mesh to be transformed. Will be modified.
transformation (AffineTransformation3d) – Linear transformation matrix
- Returns:
None
meshTransform(a0 (AimsTimeSurface_2_VOID, a1: aims.AffineTransformation3d))
- meshVolume(surf: AimsTimeSurface_3_VOID) float¶
- meshVolume(mesh) None
Volume inside a triangular mesh, in mm^3. The mesh must enclode a closed volume, with no holes, otherwise the volume processing will “leak” and will be wrong.
- nearestPointToMesh(pos: AimsVector_FLOAT_3, mesh: AimsTimeSurface_3_VOID, nneighbours: int = 1)¶
- rasterizeMesh(mesh: AimsTimeSurface_3_VOID, volume: rc_ptr_Volume_S16, value: int = 2)¶
- rasterizeMesh(mesh, volume, value=2) None
Rasterize polygons into a volume.
- Parameters:
mesh (AimsTimeSurface_*)
volume (Volume_S16) – Volume to write mesh imprint to
value (int) – label value used to write the mesh imprint in the volume
- rasterizeMeshWireframe(mesh: AimsTimeSurface_2_VOID, volume: rc_ptr_Volume_S16, value: int = 1)¶
- rasterizeMeshWireframe(mesh, volume, value=1) None
Rasterize polygons edges into a volume.
- Parameters:
mesh (AimsTimeSurface_*)
volume (Volume_S16) – Volume to write mesh imprint to
value (int) – label value used to write the mesh imprint in the volume
rasterizeMeshWireframe(mesh (AimsTimeSurface_4_VOID, volume: rc_ptr_Volume_S16, value: int = 1))
rasterizeMeshWireframe(mesh
- refineMeshTri4(mesh: AimsTimeSurface_3_VOID, selectedPolygons: vector_U32 = vector_U32()) AimsTimeSurface_3_VOID | None¶
- refineMeshTri4(mesh, selected_polygons=None) None
Refine a mesh by subdivising every triangle into 4 smaller ones.
- Parameters:
mesh (AimsSurfaceTriangle) – mesh to be refined
selected_polygons (vector_U32) – optional list of polygons indices to be selectively refined. Others will not be changed, unless they are at the border of a refined one, in which case they have to be split in some way.
- Returns:
refined_mesh – refined mesh
- Return type:
AimsSurfaceTriangle
- sortPolygonsAlongDirection(mesh: AimsTimeSurface_2_VOID, timestep: int, direction: AimsVector_FLOAT_3)¶
- sortPolygonsAlongDirection(mesh, timestep, direction) None
Sort polygons along a given direction. Polygons centers will be used for sorting. Only one timestep is performed (to be fast).
- Parameters:
mesh (AimstimeSurface_*) – The mesh will be modified.
timestep (int)
direction (Point3df)
sortPolygonsAlongDirection(mesh (AimsTimeSurface_4_VOID, timestep: int, direction: AimsVector_FLOAT_3))
sortPolygonsAlongDirection(mesh
timestep
direction)
direction. (Sort polygons along a given)
fast). (Polygons centers will be used for sorting. Only one timestep is performed (to be)
mesh – The mesh will be modified.
timestep
direction
sortPolygonsAlongDirection(mesh
sortPolygonsAlongDirection(mesh
timestep
direction)
direction.
fast).
mesh – The mesh will be modified.
timestep
direction
- splitTexturedMesh(texmesh: AimsTimeSurface_2_FLOAT) Any¶
Split a textured mesh into a mesh and a texture
splitTexturedMesh(texmesh: AimsTimeSurface_2_POINT2DF) -> Any
splitTexturedMesh(texmesh: AimsTimeSurface_3_FLOAT) -> Any
splitTexturedMesh(texmesh: AimsTimeSurface_3_POINT2DF) -> Any
- surfaceNeighbours(surf: AimsTimeSurface_3_VOID) vector_set_U32¶
- soma.aims.Texture(*args, **kwargs)[source]¶
Create an instance of Aims low-level texture (Texture_<type>) from a type parameter, which may be specified as the dtype keyword argument, or as one of the arguments if one is identitied as a type.
The default type is ‘FLOAT’.
Type definitions should match those accepted by typeCode().
Texture may also use a numpy array, or another Textrue_* as unique argument.
- class soma.aims.Texture_DOUBLE¶
- class soma.aims.Texture_DOUBLE(a0: int)
- class soma.aims.Texture_DOUBLE(a0: Any)
- class soma.aims.Texture_DOUBLE(a0: Texture_DOUBLE)
Bases:
wrapper- array_struct(self) Any¶
- arraydata(self) Any¶
- assign(self, a0: Any)¶
- checkResize(self)¶
- data(self) vector_DOUBLE¶
- erase(self)¶
- list(self) List¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- class soma.aims.Texture_FLOAT¶
- class soma.aims.Texture_FLOAT(a0: int)
- class soma.aims.Texture_FLOAT(a0: Any)
- class soma.aims.Texture_FLOAT(a0: Texture_FLOAT)
Bases:
wrapper- array_struct(self) Any¶
- arraydata(self) Any¶
- assign(self, a0: Any)¶
- checkResize(self)¶
- data(self) vector_FLOAT¶
- erase(self)¶
- list(self) List¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- class soma.aims.Texture_POINT2DF¶
- class soma.aims.Texture_POINT2DF(a0: int)
- class soma.aims.Texture_POINT2DF(a0: Any)
- class soma.aims.Texture_POINT2DF(a0: Texture_POINT2DF)
Bases:
wrapper- append(self, a0: AimsVector_FLOAT_2)¶
- array_struct(self) Any¶
- arraydata(self) Any¶
- assign(self, a0: Any)¶
- checkResize(self)¶
- data(self) vector_POINT2DF¶
- erase(self)¶
- item(self, a0: int) AimsVector_FLOAT_2¶
- list(self) List¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- push_back(self, a0: AimsVector_FLOAT_2)¶
- push_back(self, a0: int, a1: AimsVector_FLOAT_2) None
- resize(self, a0: int)¶
- resize(self, a0: int, a1: AimsVector_FLOAT_2) None
- class soma.aims.Texture_S16¶
- class soma.aims.Texture_S16(a0: int)
- class soma.aims.Texture_S16(a0: Any)
- class soma.aims.Texture_S16(a0: Texture_S16)
Bases:
wrapper- array_struct(self) Any¶
- arraydata(self) Any¶
- assign(self, a0: Any)¶
- checkResize(self)¶
- data(self) vector_S16¶
- erase(self)¶
- list(self) List¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- class soma.aims.Texture_S32¶
- class soma.aims.Texture_S32(a0: int)
- class soma.aims.Texture_S32(a0: Any)
- class soma.aims.Texture_S32(a0: Texture_S32)
Bases:
wrapper- array_struct(self) Any¶
- arraydata(self) Any¶
- assign(self, a0: Any)¶
- checkResize(self)¶
- data(self) vector_S32¶
- erase(self)¶
- list(self) List¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- class soma.aims.Texture_U16¶
- class soma.aims.Texture_U16(a0: int)
- class soma.aims.Texture_U16(a0: Any)
- class soma.aims.Texture_U16(a0: Texture_U16)
Bases:
wrapper- array_struct(self) Any¶
- arraydata(self) Any¶
- assign(self, a0: Any)¶
- checkResize(self)¶
- data(self) vector_U16¶
- erase(self)¶
- list(self) List¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- class soma.aims.Texture_U32¶
- class soma.aims.Texture_U32(a0: int)
- class soma.aims.Texture_U32(a0: Any)
- class soma.aims.Texture_U32(a0: Texture_U32)
Bases:
wrapper- array_struct(self) Any¶
- arraydata(self) Any¶
- assign(self, a0: Any)¶
- checkResize(self)¶
- data(self) vector_U32¶
- erase(self)¶
- list(self) List¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- class soma.aims.Texture_U8¶
- class soma.aims.Texture_U8(a0: int)
- class soma.aims.Texture_U8(a0: Any)
- class soma.aims.Texture_U8(a0: Texture_U8)
Bases:
wrapper- array_struct(self) Any¶
- arraydata(self) Any¶
- assign(self, a0: Any)¶
- checkResize(self)¶
- erase(self)¶
- list(self) List¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- soma.aims.TimeTexture(*args, **kwargs)[source]¶
Create an instance of Aims texture (TimeTexture_<type>) from a type parameter, which may be specified as the dtype keyword argument, or as one of the arguments if one is identitied as a type.
The default type is ‘FLOAT’.
Type definitions should match those accepted by typeCode(). TimeTexture may also use a numpy array, or another TimeTexture_* or Textrue_* as unique argument.
Building from a numpy arrays uses the 1st dimension as vertex, the 2nd as time (if any).
- class soma.aims.TimeTexture_DOUBLE¶
- class soma.aims.TimeTexture_DOUBLE(a0: int, a1: int)
- class soma.aims.TimeTexture_DOUBLE(a0: TimeTexture_DOUBLE)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_TimeTexture_DOUBLE¶
- header(self) carto.GenericObject¶
- items()¶
- iteritems()¶
- keys(self) List¶
- class soma.aims.TimeTexture_FLOAT¶
- class soma.aims.TimeTexture_FLOAT(a0: int, a1: int)
- class soma.aims.TimeTexture_FLOAT(a0: TimeTexture_FLOAT)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_TimeTexture_FLOAT¶
- header(self) carto.GenericObject¶
- items()¶
- iteritems()¶
- keys(self) List¶
- class soma.aims.TimeTexture_POINT2DF¶
- class soma.aims.TimeTexture_POINT2DF(a0: int, a1: int)
- class soma.aims.TimeTexture_POINT2DF(a0: TimeTexture_POINT2DF)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_TimeTexture_POINT2DF¶
- header(self) carto.GenericObject¶
- items()¶
- iteritems()¶
- keys(self) List¶
- push_back(self, a0: AimsVector_FLOAT_2)¶
- class soma.aims.TimeTexture_S16¶
- class soma.aims.TimeTexture_S16(a0: int, a1: int)
- class soma.aims.TimeTexture_S16(a0: TimeTexture_S16)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_TimeTexture_S16¶
- header(self) carto.GenericObject¶
- items()¶
- iteritems()¶
- keys(self) List¶
- class soma.aims.TimeTexture_S32¶
- class soma.aims.TimeTexture_S32(a0: int, a1: int)
- class soma.aims.TimeTexture_S32(a0: TimeTexture_S32)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_TimeTexture_S32¶
- header(self) carto.GenericObject¶
- items()¶
- iteritems()¶
- keys(self) List¶
- class soma.aims.TimeTexture_U16¶
- class soma.aims.TimeTexture_U16(a0: int, a1: int)
- class soma.aims.TimeTexture_U16(a0: TimeTexture_U16)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_TimeTexture_U16¶
- header(self) carto.GenericObject¶
- items()¶
- iteritems()¶
- keys(self) List¶
- class soma.aims.TimeTexture_U32¶
- class soma.aims.TimeTexture_U32(a0: int, a1: int)
- class soma.aims.TimeTexture_U32(a0: TimeTexture_U32)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_TimeTexture_U32¶
- header(self) carto.GenericObject¶
- items()¶
- iteritems()¶
- keys(self) List¶
- class soma.aims.TimeTexture_U8¶
- class soma.aims.TimeTexture_U8(a0: int, a1: int)
- class soma.aims.TimeTexture_U8(a0: TimeTexture_U8)
Bases:
RCObject- erase(self)¶
- fromObject(a0: carto.GenericObject) rc_ptr_TimeTexture_U8¶
- header(self) carto.GenericObject¶
- items()¶
- iteritems()¶
- keys(self) List¶
- class soma.aims.Transformation(*args)¶
Bases:
RCObjectBase class for spatial transformations.
- getInverse(self) rc_ptr_Transformation¶
- header()¶
- inverse()¶
- isIdentity(self) bool¶
Test if the transformation can safely be omitted
This method must only return true if the transformation behaves exactly like an identity transformation (notably, the transform methods will always return the input coordinates unchanged).
NOTE: Implementors of derived classes may choose to always return false if a test would be difficult to implement or expensive to run.
- setHeader(self, ph: carto.Object)¶
- transform(self, pos: vector_S32) vector_S32¶
- transform(self, pos: vector_FLOAT) vector_FLOAT
- transform(self, pos: vector_DOUBLE) vector_DOUBLE
- transformVector(self, pos: vector_S32) vector_S32¶
- transformVector(self, pos: vector_FLOAT) vector_FLOAT
- transformVector(self, pos: vector_DOUBLE) vector_DOUBLE
- vadd(v1: vector_S32, v2: vector_S32) vector_S32¶
vadd(v1: vector_FLOAT, v2: vector_FLOAT) -> vector_FLOAT
vadd(v1: vector_DOUBLE, v2: vector_DOUBLE) -> vector_DOUBLE vector arithmetics, as convenience static functions
vadd(v1: vector_S32, v2: int) -> vector_S32
vadd(v1: vector_FLOAT, v2: float) -> vector_FLOAT
vadd(v1: vector_DOUBLE, v2: float) -> vector_DOUBLE vector arithmetics, as convenience static functions
vadd(v1: int, v2: vector_S32) -> vector_S32
vadd(v1: float, v2: vector_FLOAT) -> vector_FLOAT
vadd(v1: float, v2: vector_DOUBLE) -> vector_DOUBLE vector arithmetics, as convenience static functions
- vsub(v1: vector_S32, v2: vector_S32) vector_S32¶
vsub(v1: vector_FLOAT, v2: vector_FLOAT) -> vector_FLOAT
vsub(v1: vector_DOUBLE, v2: vector_DOUBLE) -> vector_DOUBLE vector arithmetics, as convenience static functions
vsub(v1: vector_S32, v2: int) -> vector_S32
vsub(v1: vector_FLOAT, v2: float) -> vector_FLOAT
vsub(v1: vector_DOUBLE, v2: float) -> vector_DOUBLE vector arithmetics, as convenience static functions
vsub(v1: int, v2: vector_S32) -> vector_S32
vsub(v1: float, v2: vector_FLOAT) -> vector_FLOAT
vsub(v1: float, v2: vector_DOUBLE) -> vector_DOUBLE vector arithmetics, as convenience static functions
- class soma.aims.Transformation3d(*args)¶
Bases:
TransformationBase class for spatial transformations in 3D.
- fromObject(a0: carto.GenericObject) rc_ptr_Transformation3d¶
- toObject(self) carto.Object¶
- transform(self, p: AimsVector_S16_3) AimsVector_S16_3¶
- transform(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3
- transform(self, pos: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3
- transform(self, pos: vector_S32) vector_S32
- transform(self, pos: vector_FLOAT) vector_FLOAT
- transform(self, pos: vector_DOUBLE) vector_DOUBLE
- transform(self, x: float, y: float, z: float) AimsVector_DOUBLE_3
- transformDouble(self, x: float, y: float, z: float) AimsVector_DOUBLE_3¶
- transformPoints(self, a0: Any) Any¶
- transformVector(self, pos: vector_S32) vector_S32¶
- transformVector(self, pos: vector_FLOAT) vector_FLOAT
- transformVector(self, pos: vector_DOUBLE) vector_DOUBLE
- class soma.aims.TransformationChain3d(*args)¶
Bases:
Transformation3dContainer for a composition of multiple transformations.
This container holds a list of transformations, and acts as the composition of all transformations. Transformations are composed from the front to the back of the list:
chain = TransformationChain3d() chain.push_back(t1) chain.push_back(t2) # chain->transform(p) == t2.transform(t1.transform(p))
warning: Do not modify the transformations once you have passed them to push_back() or push_front(): it is unspecified if the changes will be noticed by TransformationChain3d (a reference to the same object may be kept internally, or a copy could be made). This behaviour will allow optimizations to be implemented (e.g. composing adjacent affine transformations by multiplying their matrices).
- getInverse(self) rc_ptr_Transformation¶
- push_back(self, transformation: rc_ptr_Transformation3d)¶
- push_back(transformation) None
Add a transformation to the back of the list (applied last)
- push_front(self, transformation: rc_ptr_Transformation3d)¶
- push_front(transformation) None
Add a transformation to the front of the list (applied first)
- simplify(self, allow_ffd: bool = False) rc_ptr_Transformation3d¶
Compute a simpler transformation that is equivalent to the chain.
The transformation chain is simplified by applying the following rules, so that it should provide equivalent results to the original chain, up to numerical precision:
The simplification is applied recursively to any sub-chain.
Transformations of the simplified sub-chains are inserted at the top level (i.e. the simplified chain is flat, it contains no sub-chains).
Consecutive affine transformations are composed using matrix multiplication.
Identity transforms (i.e. transforms for which Transformation::isIdentity() returns true) are removed from the list.
If the simplified chain consists of only one transformation, no chain is returned, the contained transformation is returned directly. However, the transformation is not necessarily the same instance that was inserted in the chain (it will be a copy if it is an AffineTransformation3d).
If the simplified chain is empty, an empty chain is returned.
No deep copy is made, so the result can contain pointers to the same transformations as the original chain.
If the parameter allow_ffd is set to True, and if the chain contains at least a FFD deformation field, then the whole chain is reduced to a single FFD field, with the resolution of the first one found in the chain.
- transformDouble(self, x: float, y: float, z: float) AimsVector_DOUBLE_3¶
- class soma.aims.TransformationGraph3d(*args, **kwargs)¶
Bases:
GraphManage transformations (affine and non-linear) transformations graph.
It maintains a graph of directed transformations (vertices are referentials, edges are 3D transformations).
It can be populated from a dictionary (Object) which can be read from a JSON or YAML file, and performs lazy-loading: transformations are actually loaded when they are used, more precisely in getTransformation() and when building a chain of composed transformations.
The graph is oriented, and does not manage inverse transforms. We could thing this could be done automatically for affine or other inversible transformations, but the lazy loading feature does not allow to know if a not yet loaded transform will be inversible or not. So this has to be done manually for now.
The graph populates with composed transforms when they are used: indirect paths from a referential to another are generated when needed, and stored in the graph as “deduced” transforms. Later access will thus use this cache instead of reccomputing it. A drawback, thus, is that the graph has to be used “statically”: any modification in the graph structure, or in any of its transformations, should invalidate a number of deduced, cached ones, which we do not handle for now (it’s a quite difficult problem to manage it efficiently). To date the only solution is to completely clear the cached transforms (clearCache()) after any modification.
The TransformationGraph3d structure is a Graph, and its elements are Vertex or Edge objects. To manipulate transformations, the API generally allows to use identifiers (generally UUIDs) for elements, and the Transformation objects are accessed through the “transformation” property of edges, or using the transformation() convenience method:
ref1 = tgraph.referentialById(“23df7ce8-e405-bc31-3863-d543e3cc89e5”) trans_edge = tgraph.getTransformation(
“23df7ce8-e405-bc31-3863-d543e3cc89e5”, “52929a27-6838-1d08-d6fc-7905ed9413a0”)
- if trans_edge:
trans = tgraph.transformation(trans_edge)
see also: https://hbp-spatial-backend.apps.hbp.eu/swagger-ui#/api_v1/get_v1_transform_point
- allocatorContext(self) carto.AllocatorContext¶
Allocator context used in transformations reading operations.
- asDict(self, affine_only: bool = False, allow_read: bool = False, embed_affines: bool = False, rel_to_path: object = '') carto.Object¶
convert to a dict-like structure compatible with loadTransformationsGraph()
- Parameters:
affine_only (bool) – if true, inclue only affine transformations
allow_read (bool) – if true, and if affine_only or embed_affines is also true, all affine transformations will be read in order to determine which are affine. Otherwise only those already loaded in memory (via the lazy reading mechanism) will be known to be affine. This parameter has no effect on non-affine transformations.
embed_affines (bool) – if true, affine transformations are not recorded as a file name (.trm format), but as an embedded 4x4 matrix.
rel_to_path (str) – if not empty, filenames will be relative to this base directory (normally where the graph will be stored)
- clearCache(self, chain_only: bool = False)¶
- clearCache(chain_only=False) None
remove deduced transformations (built from composition).
If chain_only is true, then inverses of direct transforms are not removed.
- getTransformChain(self, src_ref: Vertex | None, dst_ref: Vertex | None) rc_ptr_Transformation3d¶
Get a transformation chain between two vertices.
You normally don’t need to call this method directly, il is called through getTransformation( src_ref, dst_ref, true ). This method however does not modify the transformations graph and does not register the combined transformation. It will, however, load lazy-loading transformations.
getTransformChain(self, src_ref: object, dst_ref: object) -> rc_ptr_Transformation3d
- getTransformation(self, src_ref: object, dst_ref: object) Edge | None¶
edge = tgraph.getTransformation(src_ref, dst_ref, allow_compose=False)
Get the transformation between source_ref and dst_ref. If it is not a registered transformation, return None. src_ref annd dst_ref may be string IDs or Vertex objects.
If allow_compose is True and the transformation is not found, then a transformations chain path is looked for. If a matching one is found, it is then registered in the graph to allow fast access later. The drawback of this register operation is that it cannot react to changes in the transformation chain (if a new transformation is added and could make a shorter path, it will not be taken into account).
getTransformation(self, src_ref: Optional[Vertex], dst_ref: Optional[Vertex]) -> Optional[Edge]
getTransformation(self, src_ref: object, dst_ref: object, allow_compose: bool) -> Optional[Edge]
getTransformation(self, src_ref: Optional[Vertex], dst_ref: Optional[Vertex], allow_compose: bool) -> Optional[Edge]
- getTransformation_raw(self, src_ref: Vertex | None, dst_ref: Vertex | None) Edge | None¶
- getTransformation_raw(src_ref, dst_ref) None
same as getTransformation(), but do not perform lazy loading
getTransformation_raw(self, src_ref: object, dst_ref: object) -> Optional[Edge]
- loadAffineTransformations(self)¶
Load all affine transformations.
- loadTransformationsGraph(self, desc: carto.Object, dirname: object)¶
Load a full transformations graph from a dict-like object.
The description dict may typically be read from a .json or a .yaml file.
The description is organized as a 2-level dictionary:
{ source_ref_id: { dest_ref_id1: transformation_filename1, dest_ref_id2: transformation_filename2, }, ... }
A referential ID is a string which may represent an UUID, or a name.
A transformatioon filename may be an affine (.trm) or non-linear (.ima) transformation file, or an empty string to represent an identity transformation.
The transformation files are found relatively to the directory given as the dirname parameter.
Alternatively to file names, an affine transformation may be given directly as its 4x4 matrix, written as a line vector (all 16 coefficients in a vecotr, describing the matrix horizontally). Ex:
{ source_ref_id: { dest_ref_id1: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], }, ... }
- mergeReferentials(self, uuid: object, existing_id: object)¶
Merge two existing referentials into a single one (the second).
The first UUID will be kept as an alias in the second.
- referentialByCode(self, id: object, header: carto.Object, refs: vector_STRING) Vertex | None¶
Same as referentialById(id), but with the help of an object header, can look for additional codes:
“AIMS”: the internal AIMS referential of the object
“first”: first referential in the transformations destinations in the given header
“last”: last referential in the header
a numpber or lexical number as string to designate the referential in referenced transformations destinations in the object header - “auto”: last referential in header, if one is present, or fallback to the internal AIMS referential of the object otherwise.
“aligned”, or “NIFTI_XFORM_ALIGNED_ANAT”, or “Coordinates aligned to another file or to anatomical truth”, to designate a transformation (NIFTI-like) going to another object space as described this way
“NIFTI_XFORM_TEMPLATE_OTHER” to designate a different template as described in the object header (NIFTI-like)
“disk”: the “disk space” orientation: voxels in the order they are stored on disk. Some software are working in this referential. Note that this referential is only available in the graph if the object header has been included using updateFromObjectHeader() with the parameter includeDiskSpace set to True.
other codes may be supported later, like “qform”, “sform”, “ITK”, “ANTS”, but are not implemented yet.
The object header should have been included in the transformations graph using updateFromObjectHeader() before calling this method.
The object header is still needed here because looking for the specified transformations are linked tot the order the specific header and the order they are given in it.
The additional parameter, refs, should be the list returned by updateFromObjectHeader(). It is the list of destinaton referentials in the object header, but with possibly different codes or IDs because the original header may use ambiguous, non-specific identifiers.
If not found for a known reason, the function will throw a runtime_error exception with a message. Otherwise 0 might be returned.
- referentialById(self, id: object) Vertex | None¶
Get the vertex (referential) with given ID.
The id may be a referential ID or name, or a code identifying a particular referential, like:
“mni”, or “mni152”, or “NIFTI_XFORM_MNI_152” or “Talairach-MNI template-SPM” (
StandardReferentials.mniTemplateReferential()), to designate the ICBM152 standard referential“acpc”, or “talairach”, or “NIFTI_XFORM_TALAIRACH”, or “Talairach-AC/PC-Anatomist” (
StandardReferentials.acPcReferential()), to designate AIMS Talairach referential
- registerInverseTransformations(self, loadAffines: bool = False)¶
- registerInverseTransformations(loadAffines=False) None
register inverse transformations when they can be obtained.
This can be done only for loaded transformations. So the lazy loading feature will prevent for it to work on not already loaded transformations, since we cannot know if they are invertible before they are loaded.
For this reason, the loadAffines parameter allows to load affine transforms and register their inverses.
- registerReferentialAlias(self, uuid: object, existing_id: object)¶
registers a different referential, additional UUID for an existing referential.
If the new UUID corresponds to an existing referential also, both are merged into the same vertex.
- registerTransformation(self, src_ref: object, dst_ref: object, trans: rc_ptr_Transformation3d, deduced: bool = False) Edge | None¶
Add (or register) the given transformation in the transformations graph.
transform may be a filename, or a Transformation instance. a Transformation is supposed to be a non-linear FFD (Free Form Deformation), not a linear transformation. If transform is a string, it may be: - an empty string will be an identity transformation - a .trm file will be an affine transformation, and will be passed to
the builtin Anatomist system
another file (.ima) will be a FFD transformation file and will be registered as its filename. Loading will happen only when the transformation is used, in get_transformation().
registerTransformation(self, src_ref: Optional[Vertex], dst_ref: Optional[Vertex], trans: rc_ptr_Transformation3d, deduced: bool = False) -> Optional[Edge]
registerTransformation(self, src_ref: object, dst_ref: object, filename: object) -> Optional[Edge]
registerTransformation(self, src_ref: Optional[Vertex], dst_ref: Optional[Vertex], filename: object) -> Optional[Edge]
- setAllocatorContext(self, alloc: carto.AllocatorContext)¶
Set the allocator context used in all transformations reading operations.
The allocator context may be used to push the use of memory mapping, for isntance.
- transformation(edge: Edge | None) rc_ptr_Transformation3d¶
Get the Transformation3d object inside an edge. The returned reference counting pointer may contain a null pointer.
transformation(self, id: object) -> rc_ptr_Transformation3d Get the Transformation3d object for the given UUID. The returned reference counting pointer may contain a null pointer.
- updateFromObjectHeader(self, header: carto.Object, includeDiskSpace: bool = False) vector_STRING¶
Insert all transformations / referentials found in an object header.
Returns the translated referentials names in the order they are in the object header, beginning with the object referential itself. For instance for a header with the properties:
{ "referential": "A", "referentials": ["B", "Talairach-MNI template-SPM", "Scanner-based anatomical coordinates"], "transformations": [...] // list of 3 transformations }
it will return:
["A", "B", "803552a6-ac4d-491d-99f5-b938392b674b", "Scanner-based anatomical coordinates_A"]
If the header does not contain a “referential” property, then a new UUID will be generated for it.
If the optional parameter includeDiskSpace is set to true, then transformations to disk orientation (in mm) will also be included.
- updateIds(self)¶
Update the internal UUIDs cache. Needs to be done after changes in elements UUIDs or insertion / deletions
- class soma.aims.Tree(a0: bool = True, a1: object = '')¶
- class soma.aims.Tree(a0: Tree)
Bases:
AttributedObject- children(self) Tuple¶
- clone(self) carto.Object¶
- currentValue(self) carto.Object¶
- objectIterator(self) carto.Object¶
- class soma.aims.TreeReader(a0: object, a1: carto.PSyntaxSet)¶
Bases:
wrapper
- class soma.aims.Vertex(*args, **kwargs)¶
Bases:
GraphObject- edges(self) Tuple¶
- neighbours(self) Tuple¶
- soma.aims.Volume(*args, **kwargs)[source]¶
Create an instance of Aims Volume (Volume_<type>) from a type parameter, which may be specified as the dtype keyword argument, or as one of the arguments if one is identitied as a type. The default type is ‘FLOAT’. Type definitions should match those accepted by typeCode(). Volume may also use a numpy array, or another Volume as unique argument.
Note that Volume( Volume_* ) actually performs a copy of the data, whereas Volume( rc_ptr_Volume_* ) share the input data.
- soma.aims.VolumeView(volume, position, size, trans_to_parent=False)[source]¶
Create a view in an existing volume. The returned volume is of the same type and shares data with its “parent”.
If trans_to_parent is True, then a transformation (translation) to the origin of the parent volume will be added in the header of the view.
- class soma.aims.Volume_BOOL(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) bool¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> bool at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> bool at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: bool)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_BOOL¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_BOOL¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: bool, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: bool, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_CDOUBLE(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) object¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> object at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> object at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: object)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_CDOUBLE¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_CDOUBLE¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: object, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: object, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_CFLOAT(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) object¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> object at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> object at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: object)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_CFLOAT¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_CFLOAT¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: object, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: object, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_DOUBLE(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) float¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> float at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> float at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: float)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_DOUBLE¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_DOUBLE¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: float, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: float, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_FLOAT(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) float¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> float at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> float at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: float)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_FLOAT¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_FLOAT¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: float, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: float, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_HSV(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) AimsHSV¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> AimsHSV at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> AimsHSV at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: AimsHSV)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_HSV¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_HSV¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: AimsHSV, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: AimsHSV, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_POINT3DF(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) AimsVector_FLOAT_3¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> AimsVector_FLOAT_3 at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> AimsVector_FLOAT_3 at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fill(self, value: AimsVector_FLOAT_3)¶
- fill(value) None
Fill Volume_POINT3DF using the given value.
- fillBorder(self, value: AimsVector_FLOAT_3)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_POINT3DF¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- max(self) AimsVector_FLOAT_3¶
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- min(self) AimsVector_FLOAT_3¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_POINT3DF¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: AimsVector_FLOAT_3, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: AimsVector_FLOAT_3, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_RGB(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) AimsRGB¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> AimsRGB at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> AimsRGB at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: AimsRGB)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_RGB¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_RGB¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: AimsRGB, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: AimsRGB, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_RGBA(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) AimsRGBA¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> AimsRGBA at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> AimsRGBA at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: AimsRGBA)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_RGBA¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_RGBA¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: AimsRGBA, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: AimsRGBA, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_S16(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) int¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> int at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> int at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: int)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_S16¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_S16¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: int, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: int, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_S32(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) int¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> int at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> int at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: int)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_S32¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_S32¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: int, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: int, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_U16(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) int¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> int at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> int at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: int)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_U16¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_U16¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: int, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: int, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_U32(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) int¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> int at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> int at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fillBorder(self, value: int)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_U32¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_U32¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: int, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: int, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Volume_U8(*args)¶
Bases:
RCObjectGeneralities
The various Volume_<type> classes are bindings to the C++ template classes carto::Volume. It represents a 4D volume (1D to 4D, actually) storing a specific type of data: for instance S16 is signed 16 bit short ints, FLOAT is 32 bit floats, etc.
Volumes are read and written using the
ReaderandWriterclasses, which are in turn used by the simpleread()andwrite()functions.A volume of a given type can be built either using its specialized class constructor, or the general
Volume()function which can take a voxel type in its arguments: the following are equivalent:>>> v = aims.Volume_S16(100, 100, 10) >>> v = aims.Volume('S16', 100, 100, 10) >>> v = aims.Volume(100, 100, 10, dtype='S16') >>> v = aims.Volume([100, 100, 10], dtype='S16') >>> import numpy >>> v = aims.Volume(numpy.int16, 100, 100, 10)
Numpy arrays and volumes
A volume is an array of voxels, which can be accessed via the
at()method. For standard numeric types, it is also possible to get the voxels array as a numpy array, using the__array__()method, or more conveniently,numpy.asarray(volume)ornumpy.array(volume, copy=False). In aims >= 5.0.2, a more concise shortcut is also available:volume.np(this is available on all types providing numpy bindings actually).The array returned is a reference to the actual data block, so any modification to its contents also affects the Volume contents, so it is generally an easy way of manipulating volume voxels because all the power of the numpy module can be used on Volumes. The obsoloete
arraydata()method used to return a numpy array just like it is in memory, that is a 4D (or more) array generally indexed by[t][z][y][x](but it depands how it has been built), which is generally not what you like and is not consistent with AIMS indexing. Contrarily, usingvolume.npsets strides in the returned numpy array, so that indexing is in the “normal” order[x][y][z][t], while still sharing the same memory block. The Volume object now also wraps the numpy accessors to the volume object itself, so thatvolume[x, y, z, t]is the same asnupmy.asarray(volume)[x, y, z, t].new in PyAims 4.7
Since PyAims 4.7 the numpy arrays bindings have notably improved, and are now able to bind arrays to voxels types which are not scalar numeric types. Volumes of RGB, RGBA, HSV, or Point3df now have numpy bindings. The bound object have generally a “numpy struct” binding, that is not the usual C++/python object binding, but instead a structure managed by numpy which also supports indexing. For most objects we are using, they also have an array stucture (a RGB is an array with 3 int8 items), and are bound under a sturcture with a unique field, named “v” (for “vector”):
>>> v = aims.Volume('RGB', 100, 100, 10) >>> v[0, 0, 0, 0] ([0, 0, 0],)
Such an array may be indexed by the field name, which returns another array with scalar values and additional dimensions:
>>> v['v'].dtype dtype('uint8') >>> v['v'].shape (100, 100, 10, 1, 3)
Both arrays share their memory with the aims volume.
Header
Volumes also store a header which can contain various information (including sizes and voxel sizes). The header is a dictionary-like generic object (
Object) which can be accessed by theheader()method. This header object also has a read-write access with some restrictions inherent to theObjectmechanism. It will be saved with the volume contents when the volume is saved on disk.Volumes support a number of arithmetic operators like +, - etc. when the operands types and sizes match: for instance:
>>> # V1 and V2 are two volumes >>> V3 = V1 + V2 # adds two volumes >>> V2 -= V1 >>> V3 = V1 + 3 # adds 3 to aceh voxel >>> V3 = V1 * V2 # itemwise multiplication
Some type conversions can be performed on volumes, for istance to convert a Volume_S16 to a Volume_FLOAT. The simplest, to convert to another data type, is to use the
astype()method.To convert a volume into diffent structure types, such as
Buckets, use the converter classesConverter_<type1>_<type2>andShallowConverter_<type1>_<type2>with <type1> and <type2> being volume or other object types: for instanceConverter_Volume_S16_Volume_FLOAT. The converter can also be called using type arguments:>>> vol1 = aims.AimsData('S16', 100, 100, 10) >>> c = aims.Converter(intype=vol1, outtype='BucketMap_VOID') >>> vol2 = c(vol1)
Volume from a numpy array
It is also possible to build a Volume from a numpy array:
>>> v = aims.Volume(numpy.zeros((100, 100, 10)))
Note that passing a 1D numpy array of ints will build a volume mapping the array contents, whereas passing a python list or tuple of ints will interpret the list as a shape for the volume:
>>> v = aims.Volume(numpy.array([100, 100, 10]).astype('int32')) >>> print(v.getSize()) [ 3, 1, 1, 1 ] >>> print(v.np) [100 100 10] >>> v = aims.Volume([100, 100, 10]) >>> print(v.getSize()) [ 100, 100, 10, 1 ]
Array ordering:
In pyaims <= 5.0.x the Volume classes were only working with the X axis (the first) being contiguous, and, for numpy, should be interpreted as “Fortran-contiguous”. So to convert a numpy array into a Volume and keep the same axes ordering, you had to convert it to Fortran order first:
>>> v = aims.Volume(numpy.zeros((2, 3, 4, dtype='int32'))) # v.getSize() used to return [4, 3, 2, 1] >>> v = aims.Volume(np.asfortranarray(numpy.zeros((2, 3, 4), dtype='int32'))) >>> print(v.getSize()) [2, 3, 4, 1]
In pyaims 5.1 this limitation is gone, you can omit the fortran order conversion. Strides are taken into account in the C++ volume. But you have to be careful with such volumes as many C++ programs assume internally that the X axis is contiguous in memory, which is not true in this situation. These programs and functions may not work, crash, or produce incorrect results when used with non-contiguous X axis volumes.
- class Position4Di¶
Bases:
wrapper4 ints for position or size, used for Volume views.
- allocateBorders(self, bsx: int, bsy: int = -1, bsz: int = -1)¶
reallocate the volume with given borders, keep (copy) the contents.
allocateBorders(self, border: vector_S32) reallocate the volume with given borders, keep (copy) the contents. only 1 value is mandatory.
- allocatorContext(self) carto.AllocatorContext¶
- arraydata(self) Any¶
arraydata() returns a numpy array to the internal memory block, with “inverted” shape and strides.
WARNING: this is an obsolete method, which behaviour has changed. Most of the time you need numpy.asarray(volume), or more simply: volume.np, which actually provides an array with the same indices ordering. Here it is a transposed one.
Given the internal ordering of Aims Volumes, the resulting numpy array is indexed as [t][z][y][x]. This order corresponds to the numpy “fortran” order:
order='F'If you need the inverse, more natural, [x][y][z][t] ordering, use the following:>>> volarray = volume.np
or:
>>> volarray = numpy.array(volume, copy=False)
or:
>>> volarray = numpy.asarray(volume)
Using arraydata(), as the indices are reversed, if you do something like:
vol2 = aims.Volume(vol.arraydata())
You will build a transposed volume.
- astype(dtype, copy=False)¶
Easy conversion method for volumes. Works in a similar was as numpy arrays astype() methods, except that the “copy” parameter defaults to False.
- Parameters:
dtype (string or type object) – may be a volume or voxel type, specified either as a type oject (int, aims.Volume_S32, numpy.int16), or as a string (“S16”…).
copy (bool) – if False, a ShallowConverter will be used: if dtype matches the current volume type, a shared reference to self will be returned. Otherwise a new copy will be returned.
- Return type:
A volume of the converted type
- at(self, a0: int, a1: int = 0, a2: int = 0, a3: int = 0) int¶
- at(posx, posy=0, posz=0, post=0) None
Returns the volume value for the selected voxel.
at(self, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int = 0, a6: int = 0, a7: int = 0) -> int at(posx1, posx2, posx3, posx4, posx5, posx6=0, posx7=0, posx8=0)
Returns the volume value for the selected voxel.
at(self, a0: vector_S32) -> int at(vector_int)
Returns the volume value for the selected voxel.
- checkResize(self)¶
- copyHeaderFrom(self, other: carto.PropertySet, stopOnError: bool = True)¶
- copyHeaderFrom(self, other: carto.Object, stopOnError: bool = True) None
- fill(self, value: bytes)¶
- fill(value) None
Fill Volume_U8 using the given value.
fill(self, a0: int)
- fillBorder(self, value: bytes)¶
- fillBorder(value) None
Fill the surrounding of the volume view in the reference volume (if any) using the given value.
- flipToOrientation(self, orient: object)¶
flipToOrientation(self, orient: object, force_memory_layout: object) volume.flipToOrientation(orient, force_memory_layout=””)
Flip the volume to a given orientation
The volume voxels will be reordered to match the given orientation.
If
force_memory_layoutis not given, then only the strides will be changed, and the data block will remain preserverd.Orientation is given as a 3 char string: “LPI” (the default orientation in AIMS), “RAS”, and combinations of these 6 letters. See https://brainvisa.info/aimsdata/user_doc/coordinates_systems.html and http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm.
If
force_memory_layoutis used, on the contrary, the voxels data block will be reallocated and flipped to match the given orientation. It is also given as a 3 char string, thus it may specify a different memory layout from the one used for indices.
- fromObject(a0: carto.GenericObject) rc_ptr_Volume_U8¶
- getBorders(self) vector_S32¶
- getSize(self) vector_S32¶
Number of voxels in each dimension (list of 4 ints)
- getStrides(self) vector_S64¶
- getVoxelSize(self) vector_FLOAT¶
Voxel sizes in mm (list of 4 floats)
- header(self) Any¶
The header contains all meta-data.
- memoryLayoutOrientation(self) vector_S32¶
determine the memory layout orientation from strides and current indices orientation.
Use
volume.referential().orientationStr(volume.memoryLayoutOrientation())to get a more readable string description.
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- posInRefVolume(self) vector_S32¶
If the volume is a view into another (larger) one, this returns the position in “parent” one.
- refVolume(self) rc_ptr_Volume_U8¶
If the volume is a view into another (larger) one, this returns the “parent” one.
- referential(self) carto.Referential¶
- reorientedHeader(self, orient: object) carto.Object¶
- setPosInRefVolume(self, pos: vector_S32)¶
Set position in parent volume
- setValue(self, a0: bytes, a1: int, a2: int = 0, a3: int = 0, a4: int = 0)¶
- setValue(value, x, y=0, z=0, t=0) None
Set the voxel value at the given position.
setValue(self, a0: bytes, a1: vector_S32) setValue(value, [x1, x2, x3, x4, x5, x6…])
Set the voxel value at the given position.
setValue(self, a0: int, a1: int, a2: int = 0, a3: int = 0, a4: int = 0) Set a voxel value at given position
setValue(self, a0: int, a1: vector_S32) Set a voxel value at given position
- setVoxelSize(self, a0: vector_FLOAT)¶
- setVoxelSize(vs_list) None
- setVoxelSize(vx, vy=1., vz=1., vt=1.) None
Set voxel sizes in mm (list of at least 4 floats)
setVoxelSize(self, vx: float, vy: float = 1, vz: float = 1, vt: float = 1)
- property shape¶
- storageLayoutOrientation(self) vector_S32¶
determine the storage (disk) layout orientation.
The storage orientation is optionnally stored int the header “storage_to_memory” matrix. If not, the storage orientation is undefined.
Use volume.referential().orientationStr(volume.storageLayoutOrientation()) to get a more readable string description.
- class soma.aims.Writer[source]¶
Bases:
object- write(obj, filename, format=None, options={})[source]¶
Writes the object <obj> in a file named <filename>, whatever the type of <obj>, as format <format>. All objects types and formats supported by the Aims IO system can be used. <obj> may be a reference-counter to an object type supported by the IO system. Additional specific options may be passed to the underlying IO system in an optional <options> dictionary.
- class soma.aims.aims¶
Bases:
simplewrapper- class AffineTransformation3d¶
- class AffineTransformation3d(a0: aims.AffineTransformation3d)
- class AffineTransformation3d(a0: aims.Quaternion)
- class AffineTransformation3d(a0: carto.Object)
- class AffineTransformation3d(a0: vector_FLOAT)
Bases:
AffineTransformation3dBase- affine()¶
- property np¶
The
npproperty is a shortcut to the__array__method. Thus:something.np
is a handier equivalent to:
numpy.asarray(something)
- rotation(self) rc_ptr_Volume_FLOAT¶
- rotationaroundx(a0: float) rc_ptr_Volume_FLOAT¶
- rotationaroundy(a0: float) rc_ptr_Volume_FLOAT¶
- rotationaroundz(a0: float) rc_ptr_Volume_FLOAT¶
- scale(self, a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3)¶
- setRotationAffine(self, a0: float, a1: float, a2: float, a3: AimsVector_FLOAT_3 = Point3df(0, 0, 0))¶
- setToIdentity(self)¶
- setTranslation(self, a0: AimsVector_FLOAT_3)¶
- transformDouble(self, a0: float, a1: float, a2: float) AimsVector_DOUBLE_3¶
- transformNormalDouble(self, x: float, y: float, z: float) AimsVector_DOUBLE_3¶
- transformNormalFloat(self, x: float, y: float, z: float) AimsVector_FLOAT_3¶
- transformNormalPoint3dd(self, dir: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3¶
- transformNormalPoint3df(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- transformVectorDouble(self, x: float, y: float, z: float) AimsVector_DOUBLE_3¶
- transformVectorFloat(self, x: float, y: float, z: float) AimsVector_FLOAT_3¶
- transformVectorPoint3dd(self, vec: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3¶
- transformVectorPoint3df(self, dir: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- translation(self) AimsVector_FLOAT_3¶
- translationTransform(tx: float, ty: float, tz: float) aims.AffineTransformation3d¶
- translationTransform(t: AimsVector_FLOAT_3) aims.AffineTransformation3d
- translationTransform(t: vector_FLOAT) aims.AffineTransformation3d
- class AimsApplication(a0: List, a1: object)¶
- class AimsApplication(a0: aims.AimsApplication)
Bases:
wrapper- initialize(self)¶
- AimsConnectedComponent(data: rc_ptr_Volume_S16, connectivity: aims.Connectivity.Type, valids: object, backgrnd: int = 0, bin: bool = True, minSize: int = 0, numMax: int = 0, verbose: bool = True)¶
- void AimsConnectedComponent(data, connectivity, valids, backgrnd=0,
bin=True, minSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_S16, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: BucketMap_S16, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction, Bucket version. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_U16, connectivity: aims.Connectivity.Type, valids: object, backgrnd: int = 0, bin: bool = True, minSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, valids, backgrnd=0,
bin=True, minSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_U16, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: BucketMap_U16, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction, Bucket version. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_S32, connectivity: aims.Connectivity.Type, valids: object, backgrnd: int = 0, bin: bool = True, minSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, valids, backgrnd=0,
bin=True, minSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_S32, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: BucketMap_S32, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction, Bucket version. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_U32, connectivity: aims.Connectivity.Type, valids: object, backgrnd: int = 0, bin: bool = True, minSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, valids, backgrnd=0,
bin=True, minSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: rc_ptr_Volume_U32, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction. The function modifies the input data, and does not return a new one.
- Parameters:
AimsConnectedComponent(data: BucketMap_U32, connectivity: aims.Connectivity.Type, backgrnd: int = 0, bin: bool = True, minSize: int = 0, maxSize: int = 0, numMax: int = 0, verbose: bool = True) void AimsConnectedComponent(data, connectivity, backgrnd=0, bin=True,
minSize=0, maxSize=0, numMax=0, verbose=True)
Connected components extraction, Bucket version. The function modifies the input data, and does not return a new one.
- class AimsGraphReader(filename: object)¶
- class AimsGraphReader(a0: aims.AimsGraphReader)
Bases:
wrapper- setExcludeFilter(self, toexclude: set_STRING)¶
- setReadFilter(self, toread: set_STRING)¶
- class AimsGraphWriter(filename: object)¶
- class AimsGraphWriter(a0: aims.AimsGraphWriter)
Bases:
wrapper- Global = 1¶
- Keep = 0¶
- Local = 2¶
- writeElements(self, g: Graph, newmode: aims.AimsGraphWriter.SavingMode = aims.AimsGraphWriter.Keep, oldmode: aims.AimsGraphWriter.SavingMode = aims.AimsGraphWriter.Keep, saveOnlyModified: bool = False)¶
- class BarycenterCurvature(mesh: AimsTimeSurface_3_VOID)¶
- class BarycenterCurvature(mesh: rc_ptr_AimsTimeSurface_3_VOID)
Bases:
Curvature- doIt(self) Texture_FLOAT¶
- class BoixCurvature(mesh: AimsTimeSurface_3_VOID)¶
- class BoixCurvature(mesh: rc_ptr_AimsTimeSurface_3_VOID)
Bases:
Curvature- doIt(self) Texture_FLOAT¶
- class BoixGaussianCurvature(mesh: AimsTimeSurface_3_VOID)¶
- class BoixGaussianCurvature(mesh: rc_ptr_AimsTimeSurface_3_VOID)
Bases:
Curvature- doIt(self) Texture_FLOAT¶
- class BucketUtil¶
Bases:
wrapperUtility class related to buckets
- volumeFromBucket(bucket: BucketMap_VOID, borderwidth: int = 0, enable_shift: bool = True)¶
- volume, offser = BucketUtil.volumeFromBucket(bucket, borderwidth=0,
enable_shift=True)
Bucket to volume conversion. Compared to Converter_BucketMap_Volume, this function has options to handle min bounding box, and allows to have borders.
If enable_shift is False, the volume will start at coordinates (0, 0, 0), without an offset (thus the volume may be much lager than needed, or may not contain the whole bucket if it has negative coordinates). In such case, pos is not used (thus passing 0 is OK).
volumeFromBucket(bucket: BucketMap_VOID, bbmin: AimsVector_S16_3, bbmax: AimsVector_S16_3, borderwidth: int = 0) -> rc_ptr_Volume_S16 volume = BucketUtil.volumeFromBucket(bucket, bbmin, bmax, borderwidth=0)
Bucket to volume conversion. Compared to Converter_BucketMap_Volume, this function has options to handle bounding box, and allows to have borders.
- class BundleInfo¶
- class BundleInfo(name: object)
- class BundleInfo(id: int)
- class BundleInfo(id: int, name: object)
- class BundleInfo(a0: aims.BundleInfo)
Bases:
wrapper
- class BundleListener¶
Bases:
wrapperSerial processing of bundles.
BundleListener listens events from a
BundleProducerobject, typically emitted when a new bundle starts or ends, a fiber starts or ends etc.To use it, BundleListener has to be subclassed and some of the following methods overloaded: * bundleStarted * bundleTerminated * fiberStarted * fiberTerminated * newFiberPoint * noMoreBundle
To connect the listener to a producer, use
BundleProducer::addBundleListener().Inherited classes may inherit both BundleListener and BundleProducer, if they are part of a processing chain.
- bundleStarted(self, a0: aims.BundleProducer, a1: aims.BundleInfo)¶
- bundleStarted(producer, bundle_info) None
- bundleTerminated(self, a0: aims.BundleProducer, a1: aims.BundleInfo)¶
- bundleTerminated(producer, bundle_info) None
- fiberStarted(self, a0: aims.BundleProducer, a1: aims.BundleInfo, a2: aims.FiberInfo)¶
- fiberStarted(producer, bundle_info, fiber_info) None
- fiberTerminated(self, a0: aims.BundleProducer, a1: aims.BundleInfo, a2: aims.FiberInfo)¶
- fiberTerminated(producer, bundle_info, fiber_info) None
- newFiberPoint(self, a0: aims.BundleProducer, a1: aims.BundleInfo, a2: aims.FiberInfo, a3: AimsVector_FLOAT_3)¶
- newFiberPoint(producer, bundle_info, fiber_info, point) None
- noMoreBundle(self, a0: aims.BundleProducer)¶
- noMoreBundle(producer) None
- class BundleMotion(a0: object)¶
- class BundleMotion(a0: aims.AffineTransformation3d)
- class BundleMotion(a0: aims.BundleMotion)
Bases:
BundleProducer,BundleListener
- class BundleProducer¶
Bases:
wrapperSerial processing of bundles.
BundleProducer emits events to a
BundleListenerobject while walking through a bundles set structure (or a bundles file), typically when a new bundle starts or ends, a fiber starts or ends etc.To connect the listener to a producer, use
BundleProducer::addBundleListener().Inherited classes may inherit both BundleListener and BundleProducer, if they are part of a processing chain.
- addBundleListener(self, a0: aims.BundleListener)¶
- addBundleListener(listener) None
Connects a
BundleProducerto aBunsdleListener.
- addFiberPoint(self, a0: aims.BundleInfo, a1: aims.FiberInfo, a2: AimsVector_FLOAT_3)¶
- noMoreBundle(self)¶
- startBundle(self, a0: aims.BundleInfo)¶
- startFiber(self, a0: aims.BundleInfo, a1: aims.FiberInfo)¶
- terminateBundle(self, a0: aims.BundleInfo)¶
- terminateFiber(self, a0: aims.BundleInfo, a1: aims.FiberInfo)¶
- class BundleROISelect(roiIterator: carto.rc_ptr_RoiIterator, a1: object, defaultROIMinimumOverlap: float = 0)¶
- class BundleROISelect(a0: aims.BundleROISelect)
Bases:
BundleProducer,BundleListener
- class BundleROISplit(roiIterator: carto.rc_ptr_RoiIterator, keepOriginalBundle: bool = False)¶
- class BundleROISplit(a0: aims.BundleROISplit)
Bases:
BundleProducer,BundleListener
- class BundleReader¶
Bases:
BundleProducerReads a bundles file, and emits events while walking through its data.
BundleReader is a
BundleProducer, so can be listened by anyBundleListener. It may read several bundles/fibers formats, using a lower-levelBundleProducerdedicated to a specific format.Currently
.bundles(AIMS/Connectomist) and.trk(Trackvis) formats are supported.- formatExtensions(format: object = 'ALL') set_STRING¶
- formatExtensions(format='ALL') None
return a set of file extensions associated with the given format. If the format is “ALL” (default) then all extensions of all supported formats are returned. If the format does not exist, an empty set is returned, and no error is issued.
- read(self)¶
- read() None
read() is the entry point to fibers processing, and triggers the producer machinery.
- supportedFormats() set_STRING¶
- supportedFormats() None
return a set of fiber tracts formats names supported by the BundlesReader.
- class BundleSampler(percent: float, bundle_name: object, sampled_bundle_name: object, mode: int)¶
- class BundleSampler(percent: float, bundle_name: object, sampled_bundle_name: object, mode: int, discarded: bool)
- class BundleSampler(a0: aims.BundleSampler)
Bases:
BundleProducer,BundleListener
- class BundleToGraph¶
Bases:
BundleListener,PropertySetBundles structure building as a Graph
The
Graphstructure is used to represent bundles and fibers when we need to keep their complete structure in memory. This structure is especially used for 3D rendering in Anatomist.BundleToGraph is a
BundleListener, thus has to be connected to aBundleProducerto work (typically, aBundleReader).Note that the BundleProducer / BundleListener system work as processing chains, and allows to keep only a small set of data in memory at one time. The Graph structure, on the contrary, keeps all information in memory, so may need a large amount of memory.
- class BundleToGraphWriter¶
- class BundleToGraphWriter(a0: aims.BundleToGraphWriter)
Bases:
BundleToGraph
- class BundleTransformer(direct_transformation)¶
Bases:
BundleListener,BundleProducerApply a spatial transformation to fiber bundles.
Each point along the bundles is transformed according to the supplied transformation.
This is a BundleListener / BundleProducer stream processing class which applies vector field deformation to bundle data. It can be typically connected to a BundleReader and a BundleWriter.
- class BundleWriter¶
Bases:
BundleListener,PropertySetWrites bundles information to a bundles file.
BundleWriter is a
BundleListener, thus must be connected to aBundleProducer, and is fed by it.It will write the
.bundlesformat.
- class BundlesSlicer¶
- class BundlesSlicer(a0: aims.BundlesSlicer)
Bases:
BundleListener- addBundlesSlicerListener(self, a0: aims.BundlesSlicerListener)¶
- class BundlesSlicerListener¶
- class BundlesSlicerListener(a0: aims.BundlesSlicerListener)
Bases:
wrapper- newBundleSlice(self, slicer: aims.BundlesSlicer, bundle: aims.BundleInfo, time: float, points: vector_POINT3DF)¶
- noMoreBundleSlice(self, slicer: aims.BundlesSlicer)¶
- startBundleSlicing(self, slicer: aims.BundlesSlicer, bundle: aims.BundleInfo)¶
- terminateBundleSlicing(self, slicer: aims.BundlesSlicer, bundle: aims.BundleInfo)¶
- class CiftiTools(matrix: rc_ptr_SparseOrDenseMatrix, smap: object = aims.CiftiTools.BrainStuctureToMeshMap())¶
- class CiftiTools(matrix, smap={})
Bases:
wrapper- Parameters:
mat (rc_ptr_SparseOrDenseMatrix) – matrix with CIFTI header (typically, read from CIFTI format via aims.read())
smap (map_STRING_S32) – brain structure name to mesh number map: defaults to the result of defaultBrainStructureToMeshMap()
aims.CiftiTools(a0 (aims.CiftiTools))
tools. (CIFTI-2 shaped matrices manipulation)
with (This class eases manipulation of matrices (SparseOrDenseMatrix))
nature (CIFTI information in their header. CIFTI information specify the)
matrix (of data contained in the)
parcellations (and can bring ROIs or)
information.
meshes. (Mainly one can obtain textures to map matrix information onto)
textures (Textures may be ROI information (label)
TimeTexture_S32)
:param : :param or matrix values textures: :param possibly expanded onto brain regions: :param (TimeTexture_FLOAT in this case).:
- buildDimensionObjectFromLabelsTexture(self, dim: int, tex: TimeTexture_FLOAT)¶
- buildDimensionObjectFromLabelsTexture(self, dim: int, tex: TimeTexture_S16) None
- buildDimensionObjectFromLabelsTexture(self, dim: int, tex: TimeTexture_S32) None
- defaultBrainStructureToMeshMap() object¶
- defaultBrainStructureToMeshMap() None
Define the brain structure to mesh mapping: several meshes may be involved in CIFTI data mapping (typically a left hemisphere mesh and a right
- Returns:
mesh_map – mesh identifier to index mapping
- Return type:
map_STRING_S32
- expandedValueTextureFromDimension(self, dim: int, other_dim_index_pos: vector_S32) List¶
- expandedValueTextureFromDimension(dim, other_dim_index_pos) None
Get matrix data in textures, possibly expanded to regions if needed.
Parcels data will be expanded to all vertices of each parcel, etc. The resulting textures can be mapped on appropriate brain meshes.
- Parameters:
dim (int) – dimension in the matrix to get info for
other_dim_index_pos (vector_S32) – position in fixed dimensions. Actually all dimensions must be specified (the size of this list must match the number of dimensions) but the specified dimension position will not be used (since all values will be extracted in textures), and possibly another one (scalars, series, labels dimension will be extracted in time steps or several textures).
- Returns:
textures – Scalar or time series data will be stored in texture timepoints. Labels data will be stored in separate textures because they provide possibly different colormaps. In this case the returned list will have the size meshes_number * labels_number, and will be stored in this order: [mesh0_label0, mesh1_label0, .. meshN_label0, mesh0_label1, ..
meshN_label1, .. mesh0_label0, .. meshN_labelM]
- Return type:
- getBrainStructures(self, dim: int, keepSurfaces: bool = True, keepVoxels: bool = True) list_STRING¶
- getBrainStructures(dim, keepSurfaces=True, keepVoxels=True) None
Retreive brain structures list in a brain models dimension
- getDimensionObject(self, dim: int) carto.Object¶
- getIndicesForBrainStructure(self, dim: int, struct_name: object) vector_S32¶
- getIndicesForBrainStructure(dim, struct_name) None
Get the list of indices corresponding to a given brain structure in the matrix, on a given dimension.
- getIndicesForSurfaceIndices(self, dim: int, surface_num: int, roi_indices: vector_S32) vector_S32¶
- getIndicesForSurfaceIndices(dim, surface_num, roi_indices) None
Get the list of matrix indices corresponding to a given region on a mesh, for a given dimension.
- Parameters:
- Returns:
indices – list of indices in the matrix
- Return type:
- isMatchingSurface(self, dim: int, mesh: AimsTimeSurface_3_VOID, brainmodels: list_STRING, surf_hint: int = 0)¶
- isMatchingSurfaceOrTexture(self, dim: int, nvertices: int, header: carto.Object, brainmodels: list_STRING, surf_hint: int = 0)¶
- isMatchingTexture(self, dim: int, tex: TimeTexture_S16, brainmodels: list_STRING, surf_hint: int = 0)¶
- isMatchingTexture(self, dim: int, tex: TimeTexture_S32, brainmodels: list_STRING, surf_hint: int = 0) None
- isMatchingTexture(self, dim: int, tex: TimeTexture_FLOAT, brainmodels: list_STRING, surf_hint: int = 0) None
- matrix(self) rc_ptr_SparseOrDenseMatrix¶
- roiTextureFromDimension(self, dim: int) List¶
- roiTextureFromDimension(dim) None
Get ROI information for a given matrix dimension.
If the matrix dimension defines ROIs (parcels, brain regions), textures defining these regions are built.
If the matrix dimension defines labels, an empty texture will be created, with appropriate colormap information
If the matrix dimensions defines scalars or series, this function will probably not be useful.
- Parameters:
dim (int) – dimension in the matrix to get info for
- Returns:
textures – textures of regions, possibly with colormaps in headers, for regions, parcels etc. One texture per mesh. For scalars or series, the list will be empty since no particular ROI description is contained in the header for this dimension.
- Return type:
- setMatrix(self, matrix: rc_ptr_SparseOrDenseMatrix)¶
- valuesDimNum(self) int¶
- valuesDimNum(cifti_info: carto.Object) int
- valuesDimSize(mat: aims.SparseOrDenseMatrix, value_dim: int) int¶
- class ConeSamplable(arrow: AimsVector_FLOAT_3, base: AimsVector_FLOAT_3, radius: float)¶
- class ConeSamplable(a0: aims.ConeSamplable)
Bases:
Samplable_FLOAT_3- contains(self, vector: AimsVector_FLOAT_3) bool¶
- class Connectivity(oline: int, oslice: int, type: aims.Connectivity.Type)¶
- class Connectivity(a0: aims.Connectivity)
Bases:
wrapper- CONNECTIVITY_18_XYZ = 7¶
- CONNECTIVITY_26_XYZ = 8¶
- CONNECTIVITY_4_XY = 0¶
- CONNECTIVITY_4_XYdiag = 28¶
- CONNECTIVITY_4_XZ = 1¶
- CONNECTIVITY_4_XZdiag = 29¶
- CONNECTIVITY_4_YZ = 2¶
- CONNECTIVITY_4_YZdiag = 30¶
- CONNECTIVITY_5_XYminus = 17¶
- CONNECTIVITY_5_XYplus = 18¶
- CONNECTIVITY_5_XZminus = 21¶
- CONNECTIVITY_5_XZplus = 22¶
- CONNECTIVITY_5_XminusY = 15¶
- CONNECTIVITY_5_XminusZ = 19¶
- CONNECTIVITY_5_XplusY = 16¶
- CONNECTIVITY_5_XplusZ = 20¶
- CONNECTIVITY_5_YZminus = 25¶
- CONNECTIVITY_5_YZplus = 26¶
- CONNECTIVITY_5_YminusZ = 23¶
- CONNECTIVITY_5_YplusZ = 24¶
- CONNECTIVITY_6_XYZ = 3¶
- CONNECTIVITY_8_XY = 4¶
- CONNECTIVITY_8_XYZ = 27¶
- CONNECTIVITY_8_XZ = 5¶
- CONNECTIVITY_8_YZ = 6¶
- CONNECTIVITY_9_XY_Zminus = 9¶
- CONNECTIVITY_9_XY_Zplus = 10¶
- CONNECTIVITY_9_XZ_Yminus = 11¶
- CONNECTIVITY_9_XZ_Yplus = 12¶
- CONNECTIVITY_9_YZ_Xminus = 13¶
- CONNECTIVITY_9_YZ_Xplus = 14¶
- dir(self, n: int) AimsVector_FLOAT_3¶
- type(self) aims.Connectivity.Type¶
- type_from_string(a0: object) aims.Connectivity.Type¶
- type_to_string(a0: aims.Connectivity.Type) object¶
- xyzOffset(self, n: int) AimsVector_S16_3¶
- class CoordinatesFieldMeshInterpoler(source: AimsTimeSurface_3_VOID, dest: AimsTimeSurface_3_VOID, srccoord1: TimeTexture_FLOAT, srccoord2: TimeTexture_FLOAT, dstcoord1: TimeTexture_FLOAT, dstcoord2: TimeTexture_FLOAT)¶
- class CoordinatesFieldMeshInterpoler(a0: aims.CoordinatesFieldMeshInterpoler)
Bases:
MeshInterpoler
- class Curvature(mesh: AimsTimeSurface_3_VOID)¶
- class Curvature(mesh: rc_ptr_AimsTimeSurface_3_VOID)
Bases:
GeometricProperties- doIt(self) Texture_FLOAT¶
- getTextureProperties(tex: Texture_FLOAT)¶
- regularize(tex: Texture_FLOAT, ratio: float)¶
- class CurvatureFactory¶
- class CurvatureFactory(a0: aims.CurvatureFactory)
Bases:
wrapper- createCurvature(self, mesh: AimsTimeSurface_3_VOID, method: object) aims.Curvature | None¶
- createCurvature(self, mesh: rc_ptr_AimsTimeSurface_3_VOID, method: object) aims.Curvature | None
- class CurveSelection(minimumLength: float)¶
- class CurveSelection(a0: aims.CurveSelection)
Bases:
BundleProducer,BundleListener
- class CutMesh¶
Bases:
wrapperCut meshes by a plane. The output of the operation is one cut mesh per input mesh, and possibly a border polygon mesh, and a plane intersection mesh.
The plane mesh is not always correct, it is now preferred to use GLU’s tesselation algorithm.
To use it:
initialize using a constructor and/or set input parameters (see also the CutTexturedMesh subclasses to handle textured meshes)
call cut() or cutBorder(), these are the methods actually doing things
get outputs using cutMeshes(), borderLine(), planeMesh() and CutTexturedMesh.cutTextures()
- borderLine(self) rc_ptr_AimsTimeSurface_2_VOID¶
- cutMeshes(self) vector_rc_ptr_AimsTimeSurface_3_VOID¶
- planeMesh(self) rc_ptr_AimsTimeSurface_3_VOID¶
- class FastMarching(connectivity: object = '26', mid_interface: bool = False)¶
- class FastMarching(connectivity='26', process_mid_interface=False)
Bases:
wrapperFastMarching(process_mid_interface)
(2nd form: deprecated constructor, with connectivity 26.)
- Parameters:
connectivity (with specified) – “26”, “18”, “6”. The connectivity type is only used to build the interfaces between the work region and the seeds: the fast marching itself only uses 6-connectivity.
process_mid_interface (bool) – If process_mid_interface is false (the default), voronoi boundaries will not be available after propagation.
aims.FastMarching(a0 (aims.FastMarching))
aims.FastMarching(a0
implementation (Fast marching algorithm)
images. (for)
to (The fast marching is a propagation algorithm which is typically used)
the (perform distance maps. It may use a speed map to locally change)
Voronoi (propagation speed and distance. It may also be used to perform a)
diagam
boundaries. (and to get Voronoi regions)
way (It is used the following)
object (* instantiate a FastMarching)
connectivity
needed (* if) – or setInvSpeedMap()
setSpeedMap() (set the speed map (or inverse speed map) using) – or setInvSpeedMap()
distanc (* propagate using one of the doit() methods. It will return the) – map.
voronoiVol() (* Voronoi and boundaries can then be retreived using) – midInterface() or midInterfaceVol()
:param : midInterface() or midInterfaceVol()
- clearSpeedMap(self)¶
- doit(self, vol: rc_ptr_Volume_S16, worklabel: int, inlabel: int, outlabel: int) rc_ptr_Volume_FLOAT¶
- doit(vol, worklabel, inlabel, outlabel) None
Perform fast marching propagation from a label image “vol”.
This is a simplified interface to the other, more general, doit() method.
Propagation will take place in the region “worklabel”, from seeds “inlabel” and “outlabel”.
- Parameters:
vol (rc_ptr_Volume_S16) – label volume to build distance map from. Contains seeds, propagation (work) region, and possibly forbidden regions
worklabel (int16)
inlabel (int16)
outlabel (int16)
vol – label volume to build distance map from. Contains seeds, propagation (work) region, and possibly forbidden regions
worklabels (set_S16) – WARNING: the propagation labels in worklabels should be positive
seedlabels (set_S16)
- Returns:
distance_map (rc_ptr_Volume_FLOAT) – resulting distance map
doit(self, vol (rc_ptr_Volume_S16, worklabels: set_S16, seedlabels: set_S16) -> rc_ptr_Volume_FLOAT)
doit(vol, worklabels, seedlabels)
Perform fast marching propagation from a label image “vol”.
Propagation will take place in the regions listed in “worklabels”, from
all seeds in the “seedlabels” list.
- Returns:
distance_map – resulting distance map
- Return type:
- invSpeedMap(self) rc_ptr_Volume_FLOAT¶
- midInterface(self, label1: int, label2: int) BucketMap_FLOAT¶
- midInterface(label1, label2) None
get the interface between Voronoi regions label1 and label2, as a bucket.
The mid_interface option must have been used when instantiating the FastMarching object, and propagation must have taken place.
- midInterfaceLabels(self) Tuple¶
- midInterfaceLabels() None
Voronoi interfaces labels. Given as a vector of pairs of labels
- Returns:
labels – in the shape ((label1, label2), (label3, label4), …)
- Return type:
tuple of tuples
- midInterfaceVol(self, label1: int, label2: int) rc_ptr_Volume_FLOAT¶
- midInterfaceVol(label1, label2) None
get the interface between Voronoi regions label1 and label2, as a volume.
the mid_interface option must have been used when instantiating the FastMarching object, and propagation must have taken place.
- setInvSpeedMap(self, invspeed: rc_ptr_Volume_FLOAT)¶
- setInvSpeedMap(invspeed) None
Sets an initialized inverse speed map (overrides any previous speed map).
Once a speed map (or inverse speed map) has been setup manually, it will be used during propagation in doit(), for only one run. The speed map data contents will be modified during the process, and the map will not be reusable for other data (seed voxels will be printed in it). The input inverse speed map object will also be modified since it is a shared reference, the algorithm will directly work in it.
- Parameters:
invspeed (rc_ptr_Volume_FLOAT)
- setSpeedMap(self, speed: rc_ptr_Volume_FLOAT)¶
- setSpeedMap(speed) None
Sets an initialized speed map. The inverse speed will be deduced from it.
Once a speed map (or inverse speed map) has been setup manually, it will be used during propagation in doit(), for only one run. The speed map data contents will be modified during the process, and the map will not be reusable for other data (seed voxels will be printed in it).
- Parameters:
speed (rc_ptr_Volume_FLOAT)
- voronoiVol(self) rc_ptr_Volume_S16¶
- voronoiVol() None
get the resulting Voronoi regions (after propagation)
- class FastMarching_BucketMap_S16(connectivity: object = '26', mid_interface: bool = False)¶
- class FastMarching_BucketMap_S16(connectivity='26', process_mid_interface=False)
Bases:
wrapperFastMarching_BucketMap_S16(process_mid_interface)
(2nd form: deprecated constructor, with connectivity 26.)
- Parameters:
connectivity (string) – “26”, “18”, “6”. The connectivity type is only used to build the interfaces between the work region and the seeds: the fast marching itself only uses 6-connectivity.
process_mid_interface (bool) – If process_mid_interface is false (the default), voronoi boundaries will not be available after propagation.
aims.FastMarching_BucketMap_S16(a0: bool)
aims.FastMarching_BucketMap_S16(a0: aims.FastMarching_BucketMap_S16)
Fast marching algorithm implementation, for buckets.
The fast marching is a propagation algorithm which is typically used to perform distance maps. It may use a speed map to locally change the propagation speed and distance. It may also be used to perform a Voronoi diagam, and to get Voronoi regions boundaries.
It is used the following way:
instantiate a FastMarching object, with specified connectivity
if needed, set the speed map (or inverse speed map) using setSpeedMap() or setInvSpeedMap()
propagate using one of the doit() methods. It will return the distanc map.
Voronoi and boundaries can then be retreived using voronoiVol(), midInterface() or midInterfaceVol()
- clearSpeedMap(self)¶
- doit(self, vol: rc_ptr_BucketMap_S16, worklabel: int, inlabel: int, outlabel: int) rc_ptr_BucketMap_FLOAT¶
- doit(vol, worklabel, inlabel, outlabel) None
Perform fast marching propagation from a label bucket “vol”.
This is a simplified interface to the other, more general, doit() method.
Propagation will take place in the region “worklabel”, from seeds “inlabel” and “outlabel”.
- Parameters:
vol (rc_ptr_BucketMap_S16) – label bucket to build distance map from. Contains seeds, propagation (work) region. Propagation outside the bucket will be forbidden.
worklabel (int16)
inlabel (int16)
outlabel (int16)
vol – label bucket to build distance map from. Contains seeds, propagation (work) region, and possibly forbidden regions
worklabels (set_S16)
seedlabels (set_S16)
- Returns:
distance_map (rc_ptr_Volume_FLOAT) – resulting distance map
doit(self, vol (rc_ptr_BucketMap_S16, worklabels: set_S16, seedlabels: set_S16) -> rc_ptr_BucketMap_FLOAT)
doit(vol, worklabels, seedlabels)
Perform fast marching propagation from a label bucket “vol”.
Propagation will take place in the regions listed in “worklabels”, from
all seeds in the “seedlabels” list.
- Returns:
distance_map – resulting distance map
- Return type:
- midInterface(self, label1: int, label2: int) BucketMap_FLOAT¶
- midInterface(label1, label2) None
get the interface between Voronoi regions label1 and label2, as a bucket.
The mid_interface option must have been used when instantiating the FastMarching object, and propagation must have taken place.
- midInterfaceLabels(self) Tuple¶
- midInterfaceLabels() None
Voronoi interfaces labels. Given as a vector of pairs of labels
- Returns:
labels – in the shape ((label1, label2), (label3, label4), …)
- Return type:
tuple of tuples
- midInterfaceVol(self, label1: int, label2: int) rc_ptr_Volume_FLOAT¶
- midInterfaceVol(label1, label2) None
get the interface between Voronoi regions label1 and label2, as a volume.
the mid_interface option must have been used when instantiating the FastMarching object, and propagation must have taken place.
- setInvSpeedMap(self, invspeed: rc_ptr_BucketMap_FLOAT)¶
- setInvSpeedMap(invspeed) None
Sets an initialized inverse speed map (overrides any previous speed map).
- Parameters:
invspeed (rc_ptr_BucketMap_FLOAT)
- setSpeedMap(self, speed: rc_ptr_BucketMap_FLOAT)¶
- setSpeedMap(speed) None
Sets an initialized speed map. The inverse speed will be deduced from it.
- Parameters:
speed (rc_ptr_BucketMap_FLOAT)
- voronoiVol(self) rc_ptr_BucketMap_S16¶
- voronoiVol() None
get the resulting Voronoi regions (after propagation)
- class FfdTransformation(*args)¶
Bases:
Transformation3dFFD vector field deformation transform
Free Form Deformation is the registration technique used to build the vector fields. This class is dedicated to the application of the vector field deformation to transform coordinates.
Vector fields are stored in volumes rc_ptr_Volume_POINT3DF.
- buildFromOther(self, other: soma.Transformation3d)¶
- composed(self, other: rc_ptr_Transformation3d) rc_ptr_Transformation3d¶
- ctrlDeformations(self) rc_ptr_Volume_POINT3DF¶
- deformation(self, p_mm: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3¶
- ffdCoord(self, p_mm: AimsVector_DOUBLE_3) AimsVector_DOUBLE_3¶
- getCtrlKnot(self, nx: int, ny: int, nz: int) AimsVector_FLOAT_3¶
- increaseResolution(self, addKnots: AimsVector_S16_3)¶
- leftComposed(self, other: rc_ptr_Transformation3d) rc_ptr_Transformation3d¶
- printControlPointsGrid(self)¶
- updateAllCtrlKnot(self, newCtrlKnotGrid: rc_ptr_Volume_POINT3DF)¶
- updateAllCtrlKnotFromDeformation(self, newDeformationGrid: rc_ptr_Volume_POINT3DF)¶
- updateCtrlKnot(self, nx: int, ny: int, nz: int, newCtrlKnot: AimsVector_FLOAT_3)¶
- updateDimensions(self)¶
- class FiberInfo¶
- class FiberInfo(id: int)
- class FiberInfo(a0: aims.FiberInfo)
Bases:
wrapper
- class Finder¶
- class Finder(a0: aims.Finder)
Bases:
wrapper- finderFormat(format: object) aims.FinderFormat | None¶
- header(self) carto.Object¶
- possibleDataTypes(self) vector_STRING¶
- registerFormat(fmtid: object, format: aims.FinderFormat | None, extensions: vector_STRING, before: object = '')¶
- setHeader(self, hdr: carto.Object)¶
- setPossibleDataTypes(self, dt: vector_STRING)¶
- class FinderFormat¶
- class FinderFormat(a0: aims.FinderFormat)
Bases:
wrapper- check(self, filename: object, f: aims.Finder) bool¶
- class FiniteElementCurvature(mesh: AimsTimeSurface_3_VOID)¶
- class FiniteElementCurvature(mesh: rc_ptr_AimsTimeSurface_3_VOID)
Bases:
Curvature- doIt(self) Texture_FLOAT¶
- class FoldArgOverSegment(g: Graph | None)¶
- class FoldArgOverSegment(a0: aims.FoldArgOverSegment)
Bases:
wrapper- dilateBucket(in_: BucketMap_S16) BucketMap_S16 | None¶
- findSplitLine(self, v: Vertex | None, pos: AimsVector_S16_3) rc_ptr_BucketMap_VOID¶
- findSplitLine(self, v: Vertex | None, pos: list_POINT3D) rc_ptr_BucketMap_VOID
- findSplitLine(self, v: Vertex | None, pos: list_POINT3DF) rc_ptr_BucketMap_VOID
- mergeVertices(self, v1: Vertex | None, v2: Vertex | None)¶
- mergeVertices(v1, v2) None
merge vertices into v1. v2 is removed from the graph.
- splitLineOnBucket(bucket: rc_ptr_BucketMap_VOID, pos: list_POINT3D) rc_ptr_BucketMap_VOID¶
- splitSimpleSurface(bucket: rc_ptr_BucketMap_VOID, splitline: rc_ptr_BucketMap_VOID) Tuple¶
- splitVertex(self, v: Vertex | None, splitline: rc_ptr_BucketMap_VOID, minsize: int = 50) Vertex | None¶
- splitVertex(self, v: Vertex | None, pos: AimsVector_S16_3, minsize: int = 50) Vertex | None
- splitVertex(self, v: Vertex | None, splitline: list_POINT3D, minsize: int = 50) Vertex | None
- splitVertex(self, v: Vertex | None, splitline: list_POINT3DF, minsize: int = 50) Vertex | None
- class FoldGraphAttributes(skel: rc_ptr_Volume_S16, graph: Graph, talairachMotion: aims.AffineTransformation3d | None = None, inside: int = 0, outside: int = 11, withmeshes: bool = True, graphversion: vector_S32 = vector_S32())¶
Bases:
wrapper- cleanup(self)¶
- doAll(self)¶
- getBrainDepth(self) rc_ptr_Volume_FLOAT¶
- getBrainDepthGradX(self) rc_ptr_Volume_FLOAT¶
- getBrainDepthGradY(self) rc_ptr_Volume_FLOAT¶
- getBrainDepthGradZ(self) rc_ptr_Volume_FLOAT¶
- getDepth(self) rc_ptr_Volume_S16¶
- getDilatedDepth(self) rc_ptr_Volume_FLOAT¶
- getDilatedDepthGradX(self) rc_ptr_Volume_FLOAT¶
- getDilatedDepthGradY(self) rc_ptr_Volume_FLOAT¶
- getDilatedDepthGradZ(self) rc_ptr_Volume_FLOAT¶
- getNDepth(self) rc_ptr_Volume_S16¶
- greyAndCSFVolumes(self, gw: rc_ptr_Volume_S16, voronoi: rc_ptr_Volume_S16)¶
- makeCorticalRelationAttributes(self)¶
- makeGlobalAttributes(self)¶
- makeJunctionAttributes(self)¶
- makeMeshes(self)¶
- makePliDePassageAttributes(self)¶
- makeSimpleSurfaceAttributes(self)¶
- makeSummaryGlobalAttributes(self)¶
- prepareBrainDepthMap(self)¶
- prepareDepthMap(self)¶
- rebuildCorticalRelations(self) rc_ptr_Volume_S16¶
- setMaxThreads(self, mt: int)¶
Sets the maxumum number of threads used in multithreaded-enabled parts. 1 means mono-threaded, 0 means une thread per CPU. A negative value means one thread per CPU, but never use more CPUs than the absolute value of the given number.
- thickness(self, fm: BucketMap_FLOAT, voronoi: rc_ptr_Volume_S16)¶
- class GaussianCurvature(mesh: AimsTimeSurface_3_VOID)¶
- class GaussianCurvature(mesh: rc_ptr_AimsTimeSurface_3_VOID)
Bases:
Curvature- doIt(self) Texture_FLOAT¶
- class GeodesicPath(surface: AimsTimeSurface_3_VOID, method: int, strain: int)¶
Bases:
wrapperaims.GeodesicPath(surface: AimsTimeSurface_3_VOID, texCurv: TimeTexture_FLOAT, method: int, strain: int) GeodesicPath(surface, texCurv, method, strain) GeodesicPath(surface, method, strain)
Initializes the geodesic path structures for a given mesh geometry, using a constraint map (curvature, typically). Several methods are available.
- Parameters:
surface (AimsTimeSurface_3_VOID) – mesh to compute geodesic paths or distances on
texCurv (TimeTexture_FLOAT) – constraint map texture. If not specified, the curvature will be computed and used as constraint.
method (int) –
- 0:
unconstrained,
- 1:
minimize the constraint map, suitable for sulci using the curvature as constraint,
- 2:
maximize constraint map, suitable for gyri using the curvature as constraint,
- 3:
unconstrained
strain (int) – weight factor on the constraints map. In practice we use 3 for sulci and gyri.
aims.GeodesicPath(a0 (aims.GeodesicPath))
maps (It is possible to get distance)
algorithm (using the Dijkstra)
Ex:: – from soma import aims, aimsalgo mesh = aims.read(‘mesh.gii’) gp = GeodesicPath(mesh, 0, 0) dmap = TimeTexture(‘FLOAT’) // get a distance map from vertex no 12 dmax = gp.distanceMap_1_N_ind(12, dmap[0].data(), 0) aims.write(dmax, ‘distance.gii’)
maps
points. (or paths between two or more)
- distanceMap_1_N_ind(self, source: int, distanceMap: vector_FLOAT, type_distance: int) float | None¶
Compute a distance map from a given point
- Parameters:
source (int) – index of the starting point (vertex number)
distanceMap (vector_FLOAT) – output distance map, the vector can be empty, it will be filled with as many values as the mesh vertices number.
type_distance (int) –
- 0:
weighted distance,
- 1:
euclidean distance
- Returns:
length – max distance
- Return type:
- longestPath_1_N_ind(self, source: int, targets: vector_U32, type_distance: int)¶
- longestPath_1_N_ind(source, targets, type_distance) None
- Parameters:
source (unsigned)
targets (vector_U32)
type_distance (int)
- Returns:
target (unsigned)
length (float)
- longestPath_N_N_ind(self, points: vector_U32, type_distance: int)¶
- longestPath_N_N_ind(points, type_distance) None
- Parameters:
points (vector_U32)
type_distance (int)
- Returns:
s (int)
d (int)
length (float)
- shortestPath_1_1_1_ind(self, source: int, middle: int, target: int) vector_U32¶
- shortestPath_1_1_1_ind(source, middle, target) None
- Parameters:
source (unsigned)
middle (unsigned)
target (unsigned)
- Returns:
path
- Return type:
- shortestPath_1_1_ind(self, source: int, target: int) vector_U32¶
- shortestPath_1_1_ind(source, target) None
- Parameters:
source (unsigned)
target (unsigned)
source
target
subset (TimeTexture_S16)
- Returns:
path (vector_U32)
shortestPath_1_1_ind(self, source (int, target: int, subset: TimeTexture_S16) -> vector_U32)
shortestPath_1_1_ind(source, target, subset)
- Returns:
path
- Return type:
- shortestPath_1_1_ind_xyz(self, source: int, target: int, indice: vector_U32, coord3D: vector_POINT3DF)¶
- shortestPath_1_1_ind_xyz(source, target, indice, coord3D) None
- Parameters:
source (unsigned)
target (unsigned)
indice (vector_U32 (output))
coord3D (vector_POINT3DF (output))
- shortestPath_1_1_len(self, source: int, target: int) float¶
- shortestPath_1_1_len(source, target) None
- Parameters:
source (unsigned)
target (unsigned)
- Returns:
length
- Return type:
- shortestPath_1_1_tex(self, source: int, target: int, texturevalue: float, tex: TimeTexture_FLOAT)¶
- shortestPath_1_1_tex(source, target, texturevalue, tex) None
- Parameters:
source (unsigned)
target (unsigned)
texturevalue (float)
tex (TimeTexture_S16 (output))
- shortestPath_1_N_ind(self, source: int, targets: vector_U32)¶
- shortestPath_1_N_ind(source, targets) None
- Parameters:
source (unsigned)
targets (vector_U32)
- Returns:
target (unsigned)
length (float)
- class GeometricProperties(mesh: AimsTimeSurface_3_VOID)¶
- class GeometricProperties(mesh: rc_ptr_AimsTimeSurface_3_VOID)
Bases:
wrapper- doAlpha(self)¶
- doBeta(self)¶
- doDot(self)¶
- doGraph(self)¶
- doNeighbor(self)¶
- doPhi(self)¶
- doSimpleAlpha(self)¶
- doSurface(self)¶
- doTheta(self)¶
- getAlpha(self) vector_FLOAT¶
- getBeta(self) vector_FLOAT¶
- getMesh(self) AimsTimeSurface_3_VOID¶
- getNeighbor(self) vector_list_U32¶
- getRcMesh(self) rc_ptr_AimsTimeSurface_3_VOID¶
- getSimpleAlpha(self) vector_FLOAT¶
- getTriangleNeighbor(self) vector_list_U32¶
- graphToMesh(self)¶
- class GradientAdvection¶
- class GradientAdvection(a0: aims.GradientAdvection)
Bases:
wrapper- descend_scalar_field(self, seeds: rc_ptr_Volume_S16, field: rc_ptr_Volume_FLOAT) rc_ptr_Volume_S16¶
- doit(self, label_vol: rc_ptr_Volume_S16, gradX: rc_ptr_Volume_FLOAT, gradY: rc_ptr_Volume_FLOAT, gradZ: rc_ptr_Volume_FLOAT, seedlabel: int) rc_ptr_Volume_S16¶
- propagate_all_labels(self, seeds: rc_ptr_Volume_S16, fieldx: rc_ptr_Volume_FLOAT, fieldy: rc_ptr_Volume_FLOAT, fieldz: rc_ptr_Volume_FLOAT) rc_ptr_Volume_S16¶
- class GraphManip¶
- class GraphManip(a0: aims.GraphManip)
Bases:
wrapper- attributeColor(self, graph: Graph, att: object) vector_S32¶
- getICBM2009cTemplateTransform(g: Graph) aims.AffineTransformation3d¶
transform = aims.GraphManip.getICBM2009cTemplateTransform(graph)
Extract the transformation to the MNI ICBM152 space, shifted to the “most standard” field of view of the template image, the one from the ICBM2009c_nlin_asym template from the MNI. Actually we find various fields of view for the templates. The one we use here is (193, 229, 193). The transform to the “real” ICBM space (0 roughly at AC) is provided in the output transformation header. This space has a fixed transformation with our Aims Talairach, along with the template volume size and voxel size. This space has a fixed transformation with our Aims Talairach. Includes shifts and axes inversions.
- getICBMTransform(g: Graph) aims.AffineTransformation3d¶
transform = aims.GraphManip.getICBMTransform(graph)
Extract the transformation to the MNI ICBM152 space. This space has a fixed transformation with our Aims Talairach.
- get_element_table(graph: Graph) Any¶
Get the GraphElementTable as a dict. The dict has the following shape:
{ syntax_name: { id_name: GraphElementCode_object } }
GraphElementCode objects are given as dicts (str, str):
{ 'id': <same_as_key: filename (globals) or attribute for filename (locals)>, 'attribute': <attribute_name_in_graph_element>, 'objectType': <type of object>, 'dataType': <data type of object>, 'storageType': <'Global', 'Local', or 'GlobalPacked'>, 'local_file_attribute': <attribute giving the filename for local storage in each graph elememt>, 'global_index_attribute': <attribute giving the index for global storage in each graph elememt>, 'global_filename': <filename for global storage>, 'global_attribute': <attribute>, 'syntax': <syntax_name> }
- graphFromVolume(vol: rc_ptr_Volume_S16, background: int = 0, trans: object | None = None) Graph | None¶
graph = graphFromVolume(vol, background=0, trans=None) graphFromVolume(vol, graph, background=0, trans=None,
automaticBackgroundSearch=True)
builds a ROI graph from a volume of labels
graphFromVolume(vol: rc_ptr_Volume_S32, background: int = 0, trans: Optional[object] = None) -> Optional[Graph]
graphFromVolume(vol: rc_ptr_Volume_S16, g: Graph, background: int = 0, trans: Optional[object] = None, automaticBackgroundSearch: bool = True)
graphFromVolume(vol: rc_ptr_Volume_S32, g: Graph, background: int = 0, trans: Optional[object] = None, automaticBackgroundSearch: bool = True)
- setAttributeColor(graph: Graph, att: object, a2: AimsRGB)¶
- setAttributeColor(graph: Graph, att: object, a2: AimsRGBA) None
- setAttributeColor(graph: Graph, att: object, a2: vector_S32) None
- storeAims(graph: Graph, vertex: GraphObject | None, attribute: object, obj: rc_ptr_AimsTimeSurface_3_VOID)¶
- storeAims(graph: Graph, vertex: GraphObject | None, attribute: object, obj: rc_ptr_AimsTimeSurface_2_VOID) None
- storeAims(graph: Graph, vertex: GraphObject | None, attribute: object, obj: rc_ptr_BucketMap_VOID) None
- storeTalairach(g: Graph, m: aims.AffineTransformation3d)¶
- talairach(g: Graph) aims.AffineTransformation3d¶
- class HarmonicCageMeshResampler(a0: rc_ptr_Volume_U32, controls: vector_POINT3DF, background: int = 0, border: int = 1, inside: int = 2)¶
- class HarmonicCageMeshResampler(a0: aims.HarmonicCageMeshResampler)
Bases:
wrapper- coordinate(self, p: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- coordinates(self, a0: AimsTimeSurface_3_VOID) AimsTimeSurface_3_VOID | None¶
- getControl(self, ind: int) AimsVector_FLOAT_3¶
- get_image_coords(self, ind: int) rc_ptr_Volume_FLOAT¶
- moveControl(self, ind: int, p: AimsVector_FLOAT_3)¶
- class Hierarchy¶
- class Hierarchy(a0: aims.Hierarchy)
Bases:
Tree- find(name)¶
- find_color(name, default_color=<class 'KeyError'>)¶
- class IOObjectTypesDictionary¶
- class IOObjectTypesDictionary(a0: aims.IOObjectTypesDictionary)
Bases:
wrapper- formats(objectType: object, datatype: object) set_STRING¶
- objectsTypes() Dict¶
- class Interpolator(*args)¶
Bases:
RCObject- values(self, a0: float, a1: float, a2: float) vector_DOUBLE¶
- values(self, a0: AimsVector_FLOAT_3) vector_DOUBLE
- class LaplacianWeights¶
- class LaplacianWeights(a0: aims.LaplacianWeights)
Bases:
wrapper
- class MaskIterator(*args)¶
Bases:
RCObject- contains(self, a0: AimsVector_S16_3) bool¶
- contains(self, a0: AimsVector_FLOAT_3) bool
- next(self)¶
- restart(self)¶
- value(self) AimsVector_S16_3¶
- valueMillimeters(self) AimsVector_FLOAT_3¶
- volumeDimension(self) AimsVector_S16_3¶
- voxelSize(self) AimsVector_FLOAT_3¶
- class MeshInterpoler(source: AimsTimeSurface_3_VOID, dest: AimsTimeSurface_3_VOID)¶
- class MeshInterpoler(a0: aims.MeshInterpoler)
Bases:
wrapper- Linear = 0¶
- NearestNeighbour = 1¶
- project(self)¶
- projectedTriCoord1(self) TimeTexture_FLOAT¶
- projectedTriCoord2(self) TimeTexture_FLOAT¶
- projectedTriCoord3(self) TimeTexture_FLOAT¶
- projectedTriangles(self) TimeTexture_U32¶
- reloadProjectionParams(self, projTriangles: TimeTexture_U32, projTriCoord1: TimeTexture_FLOAT, projTriCoord2: TimeTexture_FLOAT, projTriCoord3: TimeTexture_FLOAT)¶
- resampleMesh(self, sourceshape: AimsTimeSurface_3_VOID) AimsTimeSurface_3_VOID | None¶
- resampleTexture(self, a0: TimeTexture_FLOAT, a1: aims.MeshInterpoler.InterpolationType = aims.MeshInterpoler.Linear) TimeTexture_FLOAT | None¶
- resampleTexture(self, a0: Texture_FLOAT, a1: Texture_FLOAT, a2: int = 0, a3: aims.MeshInterpoler.InterpolationType = aims.MeshInterpoler.Linear) None
- resampleTexture(self, a0: TimeTexture_S16, a1: aims.MeshInterpoler.InterpolationType = aims.MeshInterpoler.Linear) TimeTexture_S16 | None
- resampleTexture(self, a0: Texture_S16, a1: Texture_S16, a2: int = 0, a3: aims.MeshInterpoler.InterpolationType = aims.MeshInterpoler.Linear) None
- resampleTexture(self, a0: TimeTexture_S32, a1: aims.MeshInterpoler.InterpolationType = aims.MeshInterpoler.Linear) TimeTexture_S32 | None
- resampleTexture(self, a0: Texture_S32, a1: Texture_S32, a2: int = 0, a3: aims.MeshInterpoler.InterpolationType = aims.MeshInterpoler.Linear) None
- resampleTexture(self, a0: TimeTexture_POINT2DF, a1: aims.MeshInterpoler.InterpolationType = aims.MeshInterpoler.Linear) TimeTexture_POINT2DF | None
- resampleTexture(self, a0: Texture_POINT2DF, a1: Texture_POINT2DF, a2: int = 0, a3: aims.MeshInterpoler.InterpolationType = aims.MeshInterpoler.Linear) None
- setMeshes(self, source: AimsTimeSurface_3_VOID, dest: AimsTimeSurface_3_VOID)¶
- class PointsDistribution(force: aims.PointsDistribution.ForceFunction | None = None, move_constraint: aims.PointsDistribution.MoveConstraints | None = None)¶
- class PointsDistribution(force=None, move_constaint=None)
Bases:
wrapper- Parameters:
force (aims.PointsDistribution.ForceFunction instance) – force / energy function between 2 points. Takes 2 points and a bool (has_link), and returns the force vector applied to the 1st point. Defaults to a Coulomb force (r_vec/r^3)
move_constraints (aims.PointsDistribution.MoveConstraints instance) – applies force to a point, and add additional constraints. Takes a point, a force vector, and a step (factor to the force), returns the new point position. Default: projects the force to be tangent to a unit sphere, and renormalizes the resulting point position to stock on the sphere.
aims.PointsDistribution(a0 (aims.PointsDistribution))
for (Points repartition using forces in a given geometry (on a sphere)
instance).
from (adapted)
http (//www.nicoptere.net/AS3/distribution/Distribute.as)
forces (Points are moved according to)
minimization (using an energy)
method.
added (A few parameters have been)
spheres (to allow fitting)
"free" (or)
forces. (geometries and)
defined (Linked points can be)
behaviours. (with different force)
- class CoulombAndRestoringForce¶
Bases:
ForceFunctionUtility function for sphere_distribution.
Individual Coulomb force between 2 points, plus a restoring force that avoids points expanding away like the universe
- energy(self, p1: AimsVector_FLOAT_3, p2: AimsVector_FLOAT_3, has_link: bool) float¶
- force(self, p1: AimsVector_FLOAT_3, p2: AimsVector_FLOAT_3, has_link: bool) AimsVector_FLOAT_3¶
- class CoulombForce¶
Bases:
ForceFunctionUtility function for sphere_distribution.
Individual Coulomb force between 2 points
- energy(self, p1: AimsVector_FLOAT_3, p2: AimsVector_FLOAT_3, has_link: bool) float¶
Coulomb energy of the force between 2 points (1/r)
- force(self, p1: AimsVector_FLOAT_3, p2: AimsVector_FLOAT_3, has_link: bool) AimsVector_FLOAT_3¶
Coulomb electrostatic force between 2 points (r_vec/r^3)
- class ForceFunction¶
Bases:
wrapperUtility force class for sphere_distribution.
Individual force and energy between 2 points
- energy(self, p1: AimsVector_FLOAT_3, p2: AimsVector_FLOAT_3, has_link: bool) float¶
Energy of the force between 2 points
Energy functions are the integral of corresponding forces - they are used to drive the minimization.
- force(self, p1: AimsVector_FLOAT_3, p2: AimsVector_FLOAT_3, has_link: bool) AimsVector_FLOAT_3¶
- force(p1, p2, has_link) None
Force between 2 points
- Parameters:
p1 (Point3df) – 1st point
p2 (Point3df) – 2nd point
has_link (bool) – True if points p1 and p2 are linked and should be closer
- Returns:
force
- Return type:
Point3df
- class MoveConstraints¶
Bases:
wrapperUtility function for sphere_distribution.
Add force f * step to the returned point position pt, and optionally apply some specific position constraints (stick to sphere…)
- position(self, pt: AimsVector_FLOAT_3, f: AimsVector_FLOAT_3, step: float) AimsVector_FLOAT_3¶
- position(pt, f, step) None
The default is unconstrained: just move the requested amount
- Parameters:
pt (Point3df) – point to be moved
f (Point3df) – force which applies on the point
step (float) – move step factor
- Returns:
new_pos – Position after move and application of constraints
- Return type:
Point3df
- class SphereMove¶
Bases:
MoveConstraintsMove point constrained to a uinit sphere: project the force to be tangent to the sphere, move the point, then stick it onto the sphere.
- position(self, pt: AimsVector_FLOAT_3, f: AimsVector_FLOAT_3, step: float) AimsVector_FLOAT_3¶
- distribute(self, pts: vector_POINT3DF, nsteps: int = 100, step: float = 0.01) vector_POINT3DF | None¶
- distribute(pts, nsteps=100, step=0.01) None
get a points distribution on a sphere.
- Parameters:
points (list of 3D points (Point3df))
nsteps (max number of optimization iterations)
step (initial move step factor (is adapted during the minimization))
distribute(self, npoints: int, nsteps: int = 100, step: float = 0.01) -> Optional[vector_POINT3DF] distribute(npoints, nsteps=100, step=0.01)
Same as above but point are randomly initialized on a sphere, using the init_points() function
- get_coulomb_energy(self, pts: vector_POINT3DF) float¶
- get_forces(self, pts: vector_POINT3DF) vector_POINT3DF | None¶
- init_points(npoints: int) vector_POINT3DF¶
- init_points(npoints) None
Randomly initialize npoints points on a unit sphere
- Parameters:
npoints (int) – number of points to initialize
- Returns:
points – points 3D positions
- Return type:
- setForceFunction(self, force: aims.PointsDistribution.ForceFunction | None)¶
- setForceFunction(force) None
Set the individual force function
- Parameters:
force (aims.PointsDistribution.ForceFunction instance)
- setMoveConstraints(self, move_constaint: aims.PointsDistribution.MoveConstraints | None)¶
- setMoveConstraints(move_constaint) None
Set the individual move constraints function
- Parameters:
move_constaint (aims.PointsDistribution.MoveConstraints instance)
- class Quaternion¶
- class Quaternion(q: AimsVector_FLOAT_4)
- class Quaternion(q: aims.Quaternion)
- class Quaternion(x: float, y: float, z: float, t: float)
- class Quaternion(tr: aims.AffineTransformation3d)
Bases:
wrapper- axis(self) AimsVector_FLOAT_3¶
- buildFromMatrix(self, m: vector_FLOAT)¶
- buildFromMatrix(m) None
- Parameters:
m (vector_FLOAT) – 4x4 matrix in columns (OpenGL-style). Be careful that it is not the expected order for a numpy array using ravel(), which have to be transposed.
- buildFromMotion(self, m: aims.AffineTransformation3d)¶
- buildFromTransformation(self, m: aims.AffineTransformation3d)¶
- compose(value, /)¶
Return self*value.
- fromAxis(self, c: AimsVector_FLOAT_3, phi: float)¶
- inverse(self) aims.Quaternion¶
- norm(self)¶
- normalized(self) aims.Quaternion¶
- setVector(self, vec: AimsVector_FLOAT_4)¶
- transform(self, p: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- transform(self, x: float, y: float, z: float) AimsVector_FLOAT_3
- transformInverse(self, p: AimsVector_FLOAT_3) AimsVector_FLOAT_3¶
- vector(self) AimsVector_FLOAT_4¶
- class RegularBinnedHistogram_DOUBLE(bins: int = 0)¶
- class RegularBinnedHistogram_DOUBLE(other: aims.RegularBinnedHistogram_DOUBLE)
Bases:
Histogram_DOUBLE- doit(self, thing: rc_ptr_Volume_DOUBLE)¶
- doit(self, thing: rc_ptr_Volume_DOUBLE, mini: float, maxi: float) None
- unique(self, thing: rc_ptr_Volume_DOUBLE, abort_max: int = 0) vector_DOUBLE | None¶
- class RegularBinnedHistogram_FLOAT(bins: int = 0)¶
- class RegularBinnedHistogram_FLOAT(other: aims.RegularBinnedHistogram_FLOAT)
Bases:
Histogram_FLOAT- doit(self, thing: rc_ptr_Volume_FLOAT)¶
- doit(self, thing: rc_ptr_Volume_FLOAT, mini: float, maxi: float) None
- unique(self, thing: rc_ptr_Volume_FLOAT, abort_max: int = 0) vector_FLOAT | None¶
- class RegularBinnedHistogram_S16(bins: int = 0)¶
- class RegularBinnedHistogram_S16(other: aims.RegularBinnedHistogram_S16)
Bases:
Histogram_S16- doit(self, thing: rc_ptr_Volume_S16)¶
- doit(self, thing: rc_ptr_Volume_S16, mini: int, maxi: int) None
- unique(self, thing: rc_ptr_Volume_S16, abort_max: int = 0) vector_S16 | None¶
- class RegularBinnedHistogram_S32(bins: int = 0)¶
- class RegularBinnedHistogram_S32(other: aims.RegularBinnedHistogram_S32)
Bases:
Histogram_S32- doit(self, thing: rc_ptr_Volume_S32)¶
- doit(self, thing: rc_ptr_Volume_S32, mini: int, maxi: int) None
- unique(self, thing: rc_ptr_Volume_S32, abort_max: int = 0) vector_S32 | None¶
- class RegularBinnedHistogram_U16(bins: int = 0)¶
- class RegularBinnedHistogram_U16(other: aims.RegularBinnedHistogram_U16)
Bases:
Histogram_U16- doit(self, thing: rc_ptr_Volume_U16)¶
- doit(self, thing: rc_ptr_Volume_U16, mini: int, maxi: int) None
- unique(self, thing: rc_ptr_Volume_U16, abort_max: int = 0) vector_U16 | None¶
- class RegularBinnedHistogram_U32(bins: int = 0)¶
- class RegularBinnedHistogram_U32(other: aims.RegularBinnedHistogram_U32)
Bases:
Histogram_U32- doit(self, thing: rc_ptr_Volume_U32)¶
- doit(self, thing: rc_ptr_Volume_U32, mini: int, maxi: int) None
- unique(self, thing: rc_ptr_Volume_U32, abort_max: int = 0) vector_U32 | None¶
- class RegularBinnedHistogram_U8(bins: int = 0)¶
- class RegularBinnedHistogram_U8(other: aims.RegularBinnedHistogram_U8)
Bases:
Histogram_U8- doit(self, thing: rc_ptr_Volume_U8)¶
- doit(self, thing: rc_ptr_Volume_U8, mini: bytes, maxi: bytes) None
- unique(self, thing: rc_ptr_Volume_U8, abort_max: int = 0) vector_U8 | None¶
- class ResamplerFactory_DOUBLE¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_DOUBLE | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_FLOAT¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_FLOAT | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_HSV¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_HSV | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_POINT3DF¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_POINT3DF | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_RGB¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_RGB | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_RGBA¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_RGBA | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_S16¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_S16 | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_S32¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_S32 | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_U16¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_U16 | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_U32¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_U32 | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class ResamplerFactory_U8¶
Bases:
wrapperResamplerFactory classes are used to instantiate a Resampler object for the chosen interpolation type. The main method is getResampler().
- Cubic = 3¶
- Linear = 1¶
- MajorityLabel = 101¶
- Median = 201¶
- NearestNeighbor = 0¶
- Quadratic = 2¶
- Quartic = 4¶
- Quintic = 5¶
- SeventhOrder = 7¶
- SixthOrder = 6¶
- getResampler(order: int) Resampler_U8 | None¶
- getResampler(order) resampler
Instantiate a Resampler of the given order.
- Parameters:
order (int) – order of interpolation: 0 is nearest neighbour (no interpolation), 1 is linear, 3 is cubic, etc. up to 7th order.
- Returns:
result – a new instance of the selected resampler type
- Return type:
- class RoiDiff¶
- class RoiDiff(a0: aims.RoiDiff)
Bases:
wrapper- class DiffStat¶
- class DiffStat(a0: aims.RoiDiff.DiffStat)
Bases:
wrapper- dice¶
- g2_bucket¶
- matching_voxels¶
- unmatching_voxels¶
- globalStats(self) aims.RoiDiff.DiffStat¶
- graph2LabelVolume(self) rc_ptr_Volume_S16¶
- mismatch_bucket(self) rc_ptr_BucketMap_VOID¶
- roiNames(self) vector_STRING¶
- statsByLabel(self, label: object) aims.RoiDiff.DiffStat | None¶
- class RoiIterator(*args)¶
Bases:
RCObject- maskIterator(self) carto.rc_ptr_MaskIterator¶
- next(self)¶
- restart(self)¶
- setRegionNameAttributes(self, a0: vector_STRING)¶
- setRegionNameAttributes(attributes) None
set region name attribute in graph. Normally “name” or “label”. If several values are provided, attributes are searched in each graph vertex, in that order. If the attributes list is empty, then the graph “label_property” attribute will be used, and if it is not specified there, the default search list (“name”, “label”) will be used.
setRegionNameAttributes(self, a0: object)
- class SimpleBundlesSlicer(numberOfSlice: int)¶
- class SimpleBundlesSlicer(a0: aims.SimpleBundlesSlicer)
Bases:
BundlesSlicer
- class SpamBase¶
Bases:
wrapper- prodlikelihoods(self, X: Volume_DOUBLE, shift: float) Tuple¶
- set_bb_talairach_offset(self, bb_talairach_offset: AimsVector_DOUBLE_3)¶
- set_bb_talairach_size(self, bb_talairach_size: AimsVector_DOUBLE_3)¶
- set_img_density(self, img_density: Volume_FLOAT | None)¶
- class SpamFromLikelihood¶
- class SpamFromLikelihood(a0: aims.SpamFromLikelihood)
Bases:
SpamBase
- class SparseMatrix(size1: int = 1, size2: int = 1)¶
- class SparseMatrix(other: aims.SparseMatrix)
Bases:
RCObject- fill(self, value: float)¶
- fill(self, offset1: int, offset2: int, size1: int, size2: int, value: float) None
- fill(self, offset1: int, offset2: int, other: aims.SparseMatrix, size1: int = 0, size2: int = 0) None
- getColumn(self, j: int) vector_DOUBLE¶
- getComposition(self, other: aims.SparseMatrix) aims.SparseMatrix¶
- getComposition(self, other: vector_DOUBLE) vector_DOUBLE
- getRow(self, i: int) vector_DOUBLE¶
- getTransposition(self) aims.SparseMatrix¶
- header(self) carto.Object¶
- setColumn(self, s2: int, column: vector_DOUBLE)¶
- setIdentity(self)¶
- setRow(self, s1: int, row: vector_DOUBLE)¶
- setZero(self)¶
- transpose(self)¶
- class SparseOrDenseMatrix(size1: int = 1, size2: int = 1)¶
- class SparseOrDenseMatrix(other: aims.SparseOrDenseMatrix)
Bases:
RCObject- asDense(self, copy: bool = False) rc_ptr_Volume_DOUBLE¶
- asSparse(self, copy: bool = False) rc_ptr_SparseMatrix¶
- denseMatrix(self) rc_ptr_Volume_DOUBLE¶
- getColumn(self, j: int) vector_DOUBLE¶
- getRow(self, i: int) vector_DOUBLE¶
- getSize(self) vector_S32¶
- header(self) carto.Object¶
- muteToDense(self)¶
- muteToOptimalShape(self)¶
- muteToSparse(self)¶
- readAll(self)¶
- setColumn(self, s2: int, column: vector_DOUBLE)¶
- setHeader(self, ph: carto.Object)¶
- setMatrix(self, matrix: rc_ptr_SparseMatrix)¶
- setMatrix(self, matrix: rc_ptr_Volume_DOUBLE) None
- setRow(self, s1: int, row: vector_DOUBLE)¶
- sparseMatrix(self) rc_ptr_SparseMatrix¶
- subMatrix(self, start: vector_S32, size: vector_S32) aims.SparseOrDenseMatrix | None¶
- subMatrix(self, indices_along_dims: vector_vector_S32) aims.SparseOrDenseMatrix | None
- write(self, filename: object, options: carto.Object = carto.none())¶
- class SphereSamplable(center: AimsVector_FLOAT_3, radius: float)¶
- class SphereSamplable(a0: aims.SphereSamplable)
Bases:
Samplable_FLOAT_3- contains(self, vector: AimsVector_FLOAT_3) bool¶
- class SplineFfd(*args)¶
Bases:
FfdTransformationFFD vector field deformation transform
Free Form Deformation is the registration technique used to build the vector fields. This class is dedicated to the application of the vector field deformation to transform coordinates.
Vector fields are stored in volumes rc_ptr_Volume_POINT3DF.
This Spline FFD uses cubic spline interpolation between displacement vectors to process transformed coordinates. See TrilinearFfd for a variant using trilinear interpolation.
This class is the “base” vector field deformation class, which can perform point-to-point transformation. It is used by various higher-level classes or functions to work on higher-level objects:
To resample full 2D or 3D images, see the Resampler class and its derived classes (see also ResamplerFactory).
As a Transformation3d specialization, the main method of this class is the transform() method, which actually performs 3D coordinates transformation. The other methods can be seen as “internal machinery”.
see transformMesh, transformBucket, transformGraph and BundleTransformer to apply vector field deformations to various types of objects.
- composed(self, other: rc_ptr_Transformation3d) rc_ptr_Transformation3d¶
- leftComposed(self, other: rc_ptr_Transformation3d) rc_ptr_Transformation3d¶
- transformDouble(self, x: float, y: float, z: float) AimsVector_DOUBLE_3¶
- class StandardReferentials¶
- class StandardReferentials(a0: aims.StandardReferentials)
Bases:
wrapper- acPcReferentialID() object¶
- acPcReferentialID() None
identifer (UUID str) for the Talairach/AIMS space
- icbm2009cTemplateHeader() carto.Object¶
hdr = aims.StandardReferentials.icbm2009cTemplateHeader() Return a header with size and characteristics of the ICBM2009c MNI template volume.
- mniTemplateReferential() object¶
- mniTemplateReferential() None
identifer (str) for the MNI/ICBM space
- mniTemplateReferentialID() object¶
- mniTemplateReferentialID() None
identifer (UUID str) for the MNI/ICBM space
- referentialID(refName: object, commonScannerBased: bool = False, genNewIds: bool = True, commonSuffix: object = '') object¶
try to identify referential ID from its string name or description.
for instance “Talairach-MNI template-SPM” will be translated to its AIMS uuid, “803552a6-ac4d-491d-99f5-b938392b674b”
If commonScannerBased is true, then “Scanner-based anatomical coordinates” will be translated to the value of commonScannerBasedReferentialID(), so that other ref names of the same kind will match. If commonScannerBased is false, then a scanner-based ref name will be either translated to a new UUID, or returned unchanged or with a suffix, depending on the values of genNewIds (see below) and commonSuffix. If commonSuffix has a value, it will be appended after the name “Scanner-based anatomical coordinates”.
if genNewIds is true, then: if the refName is an unkwnown referential name (and not an UUID), then a new UUID will be generated for it, each time this function is called: so calling it twice with the same name will result in two distinct IDs. if genNewIds is false, and the refName is not recognized, then it will be returned unchanged.
- talairachReferential() object¶
- talairachReferential() None
identifer (str) for the Talairach/CIFTI space
- talairachToICBM() aims.AffineTransformation3d¶
- talairachToICBM2009cTemplate() aims.AffineTransformation3d¶
trans = aims.StandardReferentials.talairachToICBM2009cTemplate()
Transformation between the ICBM152 standard space and the ICBM152 template space.
includes shifts and axes inversions.
This is the “most standard” field of view of the template image, the one from the ICBM2009c_nlin_asym template from the MNI. Actually we find various fields of view for the templates. The one we use here is (193, 229, 193). The transform to the “real” ICBM space (0 roughly at AC) is provided in the output transformation header. This space has a fixed transformation with our Aims Talairach, along with the template volume size and voxel size. This space has a fixed transformation with our Aims Talairach.
- class SurfaceGenerator¶
Bases:
wrapperSurface Generator Object. Available Methods are :
cube(center_p, radius_f, smoothnormal_b=false)
cylinder(p1_p, p2_p, radius1_f, radius2_f, nfacets_i, closed_b, smooth_b=false)
cone(arrow_p, base_p, radius_f, nfacets_i, closed_b, smooth_b=false)
arrow(arrow_p, base_p, radius_f, arrowradius_f, nfacets_i, arrowlengthfract_f)
icosahedron(center_p, radius_f)
sphere(center_p, radius_f, nfacets_i)
icosphere(center_p, radius_f, nfacets_i)
With arguments suffix _f:float, _i:int, _b:bool, _p: Point3df or 3-tuple
Alternatively, all those may be called with a GenericObject as only parameter.
This doc might not be up-to-date, use the
printDescription()method for more info.- arrow(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static arrow( dictionary ) See the description() and printDescription() methods for more information.
arrow(a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3, a2: float, a3: float, a4: int, a5: float) -> Optional[AimsTimeSurface_3_VOID] static arrow( Point3df arrowhead, Point3df base, float headradius, float arrowradius, unsigned nfaces, float arrowlengthfactor )
- circle_wireframe(params: carto.GenericObject) AimsTimeSurface_2_VOID | None¶
circle_wireframe(center: AimsVector_FLOAT_3, radius: float, nseg: int = 20, normal: AimsVector_FLOAT_3 = Point3df(0, 0, 1), startdir: AimsVector_FLOAT_3 = Point3df(1, 0, 0), startangle: float = 0, stopangle: float = M_PI*2) -> Optional[AimsTimeSurface_2_VOID] Circle, or part of circle.
center, radius are classical. nseg is the number of segments in the circle polygon normal is a normal vector to the circle plane. startdir is a vector in the circle plane determining the beginning of angles (circle ray). startangle, stopangle are meant to make parts of circle
- cone(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static cone( dictionary ) See the description() and printDescription() methods for more information.
cone(a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3, a2: float, a3: int, a4: bool, a5: bool = False) -> Optional[AimsTimeSurface_3_VOID] static cone( Point3df arrowhead, Point3df base, float radius, unsigned nfaces, bool closed, bool smooth=False )
- cube(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static cube( dictionary ) See the description() and printDescription() methods for more information.
cube(a0: AimsVector_FLOAT_3, a1: float, a2: bool = False) -> Optional[AimsTimeSurface_3_VOID] static cube( Point3df center, float radius, bool smoothnormals=False )
- cylinder(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static cylinder( dictionary ) See the description() and printDescription() methods for more information.
cylinder(a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3, a2: float, a3: float, a4: int, a5: bool, a6: bool = False, a7: bool = True) -> Optional[AimsTimeSurface_3_VOID] static cylinder( Point3df center1, Point3df center2, float radius1, float radius2, unsigned nfaces, bool closed, bool smooth=False )
- description() carto.Object¶
- description_wireframe() carto.Object¶
- ellipse(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static ellipse( dictionary ) See the description() and printDescription() methods for more information.
ellipse(a0: AimsVector_FLOAT_3, radius1: float, radius2: float, a3: int, a4: bool = False) -> Optional[AimsTimeSurface_3_VOID] static ellipse( Point3df center, float radius1, float radius2, unsigned nfaces, bool uniquevertices=False )
- generate(a0: carto.Object) AimsTimeSurface_3_VOID | None¶
- generate(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None
- generate_wireframe(a0: carto.Object) AimsTimeSurface_2_VOID | None¶
- generate_wireframe(a0: carto.GenericObject) AimsTimeSurface_2_VOID | None
- grid(params: carto.GenericObject) AimsTimeSurface_2_VOID | None¶
- grid(dict) None
See the description() and printDescription() methods for more information.
grid(boundingbox_min: AimsVector_FLOAT_3, boundingbox_max: AimsVector_FLOAT_3, grid_sampling: AimsVector_FLOAT_3) -> Optional[AimsTimeSurface_2_VOID] grid(Point3df boundingbox_min, Point3df boundingbox_max, Point3df grid_sampling) Regular, wireframe grid
- icosahedron(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static icosahedron( dictionary ) See the description() and printDescription() methods for more information.
icosahedron(a0: AimsVector_FLOAT_3, a1: float) -> Optional[AimsTimeSurface_3_VOID] static icosahedron( Point3df center, float radius )
- icosphere(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
- icosphere(dictionary) None
See the description() and printDescription() methods for more information.
icosphere(a0: AimsVector_FLOAT_3, a1: float, a2: int = 320) -> Optional[AimsTimeSurface_3_VOID] icosphere( Point3df center, float radius, unsigned nfaces=320 )
Compared to sphere() which performs meridian / parallels tesselation, icosphere over-segments an icosahedron to get equal, equilateral triangles.
- parallelepiped(params: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
parallelepiped(boundingbox_min: AimsVector_FLOAT_3, boundingbox_max: AimsVector_FLOAT_3, smooth: bool = False) -> Optional[AimsTimeSurface_3_VOID] parallelepiped(boundingbox_min, boundingbox_max, smooth=False)
- Parameters:
boundingbox_min (Point3df) – “lower bound” corner position
boundingbox_min – “upper bound” corner position
smooth (bool) – if True, make smooth faces and shared vertices in corners
- parallelepiped_wireframe(params: carto.GenericObject) AimsTimeSurface_2_VOID | None¶
parallelepiped_wireframe(boundingbox_min: AimsVector_FLOAT_3, boundingbox_max: AimsVector_FLOAT_3) -> Optional[AimsTimeSurface_2_VOID] parallelepiped_wireframe( Point3df boundingbox_min, Point3df boundingbox_max )
- printDescription()¶
- printDescription_wireframe()¶
- sphere(a0: carto.GenericObject) AimsTimeSurface_3_VOID | None¶
static sphere( dictionary ) See the description() and printDescription() methods for more information.
sphere(a0: AimsVector_FLOAT_3, a1: float, a2: int, a3: bool = False) -> Optional[AimsTimeSurface_3_VOID] static sphere( Point3df center, float radius, unsigned nfaces, bool uniquevertices=False )
- class SurfaceManip¶
Bases:
wrapperSurface Manipulation Object. All mehtods are static in this class, it is just a means of grouping functions.
- checkMeshIntersect(a0: AimsTimeSurface_3_VOID, a1: AimsTimeSurface_3_VOID) bool¶
- cutMesh(insurf: AimsTimeSurface_3_VOID, plane: AimsVector_FLOAT_4, cut: AimsTimeSurface_3_VOID, borderline: AimsTimeSurface_2_VOID)¶
- cutMesh(in_mesh, plane, cut_mesh, border_line) None
Cut a mesh by a plane and that’s all.
- Parameters:
in_mesh (AimsSurfaceTriangle) – Triangular mesh to be cut.
plane (Point4df) – cut plane equation (4 coefs)
cut_mesh (AimsSurfaceTriangle) – output cut mesh (the part satisfying the plane equation). Polygons crossing the plane will be cut into smaller ones.
border_line (AimsTimeSurface_2_VOID) – output cut section polygon
- Return type:
None
- invertSurfacePolygons(surface: AimsTimeSurface_3_VOID)¶
- invertSurfacePolygons(mesh) None
Invert polygons order (flips 2 vertex indices in each triangle) to flip its interior / exterior notions (used by OpenGL rendering). The input mesh is modified in-place.
- joinTexturedMesh(mesh: AimsTimeSurface_3_VOID, texture: TimeTexture_FLOAT) rc_ptr_AimsTimeSurface_3_FLOAT¶
joinTexturedMesh(mesh: AimsTimeSurface_2_VOID, texture: TimeTexture_POINT2DF) -> rc_ptr_AimsTimeSurface_2_POINT2DF
joinTexturedMesh(mesh: AimsTimeSurface_2_VOID, texture: TimeTexture_FLOAT) -> rc_ptr_AimsTimeSurface_2_FLOAT
joinTexturedMesh(mesh: AimsTimeSurface_3_VOID, texture: TimeTexture_POINT2DF) -> rc_ptr_AimsTimeSurface_3_POINT2DF Join a mesh and a texture into a textured mesh
- lineDirections(a0: AimsTimeSurface_2_VOID) vector_POINT3DF | None¶
- lineDirections(segments_mesh) None
calculate directions of a line mesh, for each vertex
- Parameters:
segments_mesh (AimsTimeSurface_2_VOID)
- Returns:
directions
- Return type:
- meshArea(surf: AimsTimeSurface_3_VOID) float¶
Surface area of a triangular mesh, in mm^2
meshArea(surf: AimsTimeSurface_3_VOID, tex: TimeTexture_S16) -> object Surface areas of regions of a triangular mesh, in mm^2. Regions are given as a texture.
meshArea(surf: AimsTimeSurface_3_VOID, tex: Texture_S16) -> object
- meshDensity(mesh: AimsTimeSurface_3_VOID, asDistance: bool = False) TimeTexture_FLOAT | None¶
- meshDensity(mesh, as_distance=False) None
Calculate a mesh density: inverse of the average edges distance.
- Parameters:
mesh (AimsSurfaceTriangle)
as_distance (bool (optional)) – if True, the average distance is not inverted, thus the output is an average distance map.
- Returns:
density_texture
- Return type:
- meshEdgeLengthRatioTexture(nummesh: AimsTimeSurface_3_VOID, denommesh: AimsTimeSurface_3_VOID) TimeTexture_FLOAT | None¶
- meshEdgeLengthRatioTexture(numerator_mesh, denominator_mesh) None
Calculate an edge length ratio in edges of two meshes with the same topology. The max length ratios of edges is kept for each vertex.
- Parameters:
numerator_mesh (AimsSurfaceTriangle)
denominator_mesh (AimsSurfaceTriangle)
- Returns:
ratio_texture
- Return type:
- meshExtract(mesh: AimsTimeSurface_3_VOID, tex: TimeTexture_S16, value: int)¶
- meshExtract(mesh, texture, label_value) None
Extracts a sub-mesh defined by a texture label value.
- Returns:
sub_mesh (AimsTimeSurface_3_VOID) – extracted sub-mesh
vertices (vector_ULONG) – indices of extracted vertices
- meshMerge(a0: AimsTimeSurface_2_VOID, a1: AimsTimeSurface_2_VOID)¶
meshMerge(a0: AimsTimeSurface_3_VOID, a1: AimsTimeSurface_3_VOID)
meshMerge(a0: AimsTimeSurface_4_VOID, a1: AimsTimeSurface_4_VOID) meshMerge(input_output_mesh, input_mesh)
Concatenates the second mesh to the first one. The first argument will be modified.
- Parameters:
input_output_mesh (AimsTimeSurface_3_VOID) – first mesh. Will be modified to be the output.
input_mesh (AimsTimeSurface_3_VOID) – second mesh to be appended to the first one.
- Return type:
None
- meshPlanarPolygon(a0: AimsVector_FLOAT_4, a1: AimsTimeSurface_2_VOID) AimsTimeSurface_3_VOID | None¶
- meshPlanarPolygon(plane, polygon) None
Tesselate a planar polygon to fill it by a triangular mesh
- Parameters:
plane (Point4df) – plane equation
polygon (AimsTimeSurface_2_VOID) – planar polygon to tesselate. Typically, the output of cutMesh()
- Returns:
planar_mesh – the mesh filling the polygon
- Return type:
AimsSurfaceTriangle
- meshTextureBoundary(mesh: AimsTimeSurface_3_VOID, tex: TimeTexture_S16, region: int) AimsTimeSurface_2_VOID | None¶
- meshTextureBoundary(mesh, label_texture, region_value) None
Extracts the boundary of region of value <region_value> of the input texture, on the mesh.
If region_value is negative, take boundaries of all regions. The input texture is a label texture.
- Parameters:
mesh (AimsSurfaceTriangle) – input mesh to extract boundary on
label_texture (TimeTexture_S16, TimeTexture_S32, or TimeTexture_FLOAT) – label texture defining regions on the mesh
region_value (int16, int32 or float) – label of the desired region
- Returns:
boundary (AimsTimeSurface_2_VOID) – output segments mesh (filar mesh) for the boundary
meshTextureBoundary(mesh (AimsTimeSurface_3_VOID, tex: TimeTexture_S32, region: int) -> Optional[AimsTimeSurface_2_VOID])
meshTextureBoundary(mesh (AimsTimeSurface_3_VOID, tex: TimeTexture_FLOAT, region: float) -> Optional[AimsTimeSurface_2_VOID])
- meshTransform(a0: AimsTimeSurface_3_VOID, a1: aims.AffineTransformation3d)¶
- meshTransform(mesh, transformation) None
Apply linear coordinates transformation to a mesh. The input mesh will be modified in-place.
- Parameters:
mesh (AimsTimeSurface_3_VOID or AimsTimeSurface_2_VOID) – mesh to be transformed. Will be modified.
transformation (AffineTransformation3d) – Linear transformation matrix
- Returns:
None
meshTransform(a0 (AimsTimeSurface_2_VOID, a1: aims.AffineTransformation3d))
- meshVolume(surf: AimsTimeSurface_3_VOID) float¶
- meshVolume(mesh) None
Volume inside a triangular mesh, in mm^3. The mesh must enclode a closed volume, with no holes, otherwise the volume processing will “leak” and will be wrong.
- nearestPointToMesh(pos: AimsVector_FLOAT_3, mesh: AimsTimeSurface_3_VOID, nneighbours: int = 1)¶
- rasterizeMesh(mesh: AimsTimeSurface_3_VOID, volume: rc_ptr_Volume_S16, value: int = 2)¶
- rasterizeMesh(mesh, volume, value=2) None
Rasterize polygons into a volume.
- Parameters:
mesh (AimsTimeSurface_*)
volume (Volume_S16) – Volume to write mesh imprint to
value (int) – label value used to write the mesh imprint in the volume
- rasterizeMeshWireframe(mesh: AimsTimeSurface_2_VOID, volume: rc_ptr_Volume_S16, value: int = 1)¶
- rasterizeMeshWireframe(mesh, volume, value=1) None
Rasterize polygons edges into a volume.
- Parameters:
mesh (AimsTimeSurface_*)
volume (Volume_S16) – Volume to write mesh imprint to