PyAims low-level classes and functions ====================================== You will look at this part only when needed, dont't look at it at the beginning. The useful part is accessed via the :doc:`pyaims_highlevel`. .. currentmodule:: soma.aims IO system +++++++++ .. autoclass:: soma.aims.Reader :members: .. autoclass:: soma.aims.Writer :members: .. method:: writtenObjectType() .. method:: writtenObjectDataType() .. method:: writtenObjectFullType() .. autoclass:: soma.aims.Finder :members: See the :aimsdox:`Finder C++ class ` .. method:: check( filename ) .. method:: header() .. method:: objectType() .. method:: dataType() .. method:: format() .. autofunction:: soma.aims.typeCode .. autofunction:: soma.aims.voxelTypeCode .. autofunction:: soma.aims.somaio_typeCode Neuroimaging data structures ++++++++++++++++++++++++++++ Volumes ::::::: .. class:: soma.aims.Volume_U8 .. class:: soma.aims.Volume_S16 .. class:: soma.aims.Volume_U16 .. class:: soma.aims.Volume_S32 .. class:: soma.aims.Volume_U32 .. class:: soma.aims.Volume_RGB .. class:: soma.aims.Volume_RGBA .. class:: soma.aims.Volume_DOUBLE .. class:: soma.aims.Volume_CDOUBLE .. class:: soma.aims.Volume_CFLOAT .. autoclass:: soma.aims.Volume_FLOAT :members: .. method:: clone() .. method:: dimT() equivalent to :py:meth:`soma.aims.Volume_FLOAT.getSizeT` .. method:: dimX() equivalent to :py:meth:`soma.aims.Volume_FLOAT.getSizeX` .. method:: dimY() equivalent to :py:meth:`soma.aims.Volume_FLOAT.getSizeY` .. method:: dimZ() equivalent to :py:meth:`soma.aims.Volume_FLOAT.getSizeZ` .. method:: fill( value ) .. method:: fillBorder( value ) .. method:: header() .. method:: maxIndex() .. method:: maximum() .. method:: minIndex() .. method:: minimum() .. method:: setSizeT( sizet ) This is the **voxel size**, not the volume size as in :py:class::`soma.aims.Volume_FLOAT`. .. method:: setSizeX( sizex ) .. method:: setSizeXYZT( size ) .. method:: setSizeY( sizey ) .. method:: setSizeZ( sizez ) .. method:: setValue( value, posx, posy = 0, posz = 0, post = 0 ) .. method:: sizeT() This is the **voxel size**, not the volume size as in :py:class::`soma.aims.Volume_FLOAT`. .. method:: sizeX() .. method:: sizeY() .. method:: sizeZ() .. method:: value( posx, posy = 0, posz = 0, post = 0 ) .. method:: volume() Returns the underlying :py:class::`soma.aims.Volume_FLOAT` object. Graphs and trees :::::::::::::::: .. autoclass:: soma.aims.Graph :members: See the :graphdox:`Graph C++ documentation ` .. autoclass:: soma.aims.Tree :members: See the :graphdox:`Tree C++ documentation ` Meshes and textures ::::::::::::::::::: .. autoclass:: soma.aims.AimsTimeSurface_3_VOID :members: See the :aimsdox:`AimsTimeSurface C++ documentation ` .. note:: Before PyAIMS 4.5, compared to the C++ classes, the texture type template argument had beed dropped from the Python bindings, because textures are handled via separate objects (see :py:func:`soma.aims.TimeTexture`) and the builtin texture was actually never used. However textured meshes have shown useful to be read/written as an exchange format to other software and formats (typically the Wavefront .obj format), so the support for textured meshes has been added in Pyaims 4.5. As a consequence, mesh classes have changed name. To maintain compatibility with older code, the AimsTimeSurface_D_VOID classes (D being 2, 3 or 4) can still be found under their older names: AimsTimeSurface_D. .. class:: soma.aims.AimsTimeSurface_2_VOID .. class:: soma.aims.AimsTimeSurface_4_VOID .. class:: soma.aims.AimsTimeSurface_2_FLOAT .. class:: soma.aims.AimsTimeSurface_3_FLOAT .. class:: soma.aims.AimsTimeSurface_4_FLOAT .. class:: soma.aims.AimsTimeSurface_2_POINT2DF .. class:: soma.aims.AimsTimeSurface_3_POINT2DF .. class:: soma.aims.AimsTimeSurface_4_POINT2DF .. autoclass:: soma.aims.TimeTexture_FLOAT :members: See the :aimsdox:`TimeTexture C++ documentation ` .. autoclass:: soma.aims.Texture_FLOAT :members: See the :aimsdox:`Texture C++ documentation ` "Buckets" ::::::::: .. autoclass:: soma.aims.BucketMap_VOID See the :aimsdox:`BucketMap C++ documentation ` General purpose C++ containers ++++++++++++++++++++++++++++++ Generic object :::::::::::::: .. autoclass:: soma.aims.carto :members: GenericObject, AllocatorContext, AllocatorStrategy This class represents the carto C++ namespace. It is rather used like a module, not as a class. .. autoclass:: soma.aims.carto.GenericObject :members: See the :cartobdox:`GenericObject C++ documentation ` .. autoclass:: soma.aims.carto.AllocatorStrategy :members: .. autoclass:: soma.aims.carto.AllocatorContext :members: .. autoclass:: soma.aims.rc_ptr_GenericObject :members: Vectors and points :::::::::::::::::: .. autoclass:: soma.aims.Point3df :members: .. autoclass:: soma.aims.AimsVector_FLOAT_3 :members: See the :aimsdox:`AimsVector C++ documentation ` .. autoclass:: soma.aims.Point2df :members: .. autoclass:: soma.aims.Point3d :members: RGB ::: .. autoclass:: soma.aims.AimsRGB :members: .. autoclass:: soma.aims.AimsRGBA :members: Fibers and Bundles handling +++++++++++++++++++++++++++ .. autoclass:: BundleListener :members: .. autoclass:: BundleProducer :members: .. autoclass:: BundleReader :members: .. autoclass:: BundleWriter :members: .. autoclass:: BundleToGraph :members: Conversion classes and functions ++++++++++++++++++++++++++++++++ .. autodata:: soma.aims.convertersObjectToPython .. autoclass:: soma.aims.Converter_Volume_S16_Volume_FLOAT :members: .. autoclass:: soma.aims.ShallowConverter_Volume_S16_Volume_FLOAT :members: Soma-IO +++++++ In this module, the newer IO system Soma-IO and supporting library is made available in Python, in the module soma.aims.soma. .. autoclass:: soma.aims.soma :members: This class represents the soma C++ namespace. It is rather used like a module, not as a class.