File Exchange

image thumbnail

loadAmiraMesh

version 1.4 (2.39 KB) by

Load Amira Mesh 3D ASCII data

3 Downloads

Updated

View License

Loads the mesh data from an Amira 3D manipulation program. Amira is usually used to create morphological reconstructions of neurons.

It uses Amira's mesh file format that looks like this:

---------------------------
# AmiraMesh 3D ASCII 2.0

nVertices 4651
nEdges 9302
define Origins 125
define vertexTypeList 0

Parameters { ... }

Vertices { float[3] Coordinates } @1
Vertices { int NeighbourCount } @2
Vertices { float Radii } @3
EdgeData { int NeighbourList } @4
Origins { int Origins } @5
Vertices { int vertexTypeCounter } @6
vertexTypeList { int vertexTypeList } @7

# Data section follows
@1
46.2348 45.2406 7.08964
...

@2
...
---------------------------

In Matlab, you can use it like this:

>> obj = loadAmiraMesh('test.am')

obj =

        nVertices: 4651
           nEdges: 9302
         nOrigins: 125
         vertices: [4651x3 double]
    neighborCount: [4651x1 double]
            radii: [4651x1 double]
     neighborList: [9302x1 double]
          Origins: [125x1 double]

Comments and Ratings (2)

SHUSHAN XIA

Diane

Diane (view profile)

Updates

1.4

*

MATLAB Release
MATLAB 7.11 (R2010b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video