dxwdxw2005 / gerardus

Automatically exported from code.google.com/p/gerardus
0 stars 0 forks source link

ExtractVoxelCoordinatesFromSegmentationMask.cxx: Wrong coordinate order when output is formatted as indices #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When you run the program extractVoxelCoordinatesFromSegmentationMask with
the -i flag, i.e. the output is formatted as voxel indices instead of real
world coordinates, the x- and y-coordinates are swapped.

A 3D volume voxel with indices

index[0], index[1], index[2]

maps to real world coordinates as

f(index[1]), f(index[0]), f(index[2])

That is, you need to swap index[0] and index[1].

Original issue reported on code.google.com by rcas...@gmail.com on 11 Sep 2009 at 1:32

GoogleCodeExporter commented 8 years ago
This is a non-issue.

Matlab has this problem, but ITK doesn't, the indices come in the correct order.

So no need to make any changes, and this bug report can be marked as "Invalid".

Original comment by rcas...@gmail.com on 11 Sep 2009 at 7:58