Skip to content
Snippets Groups Projects
Commit b27ec1cd authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fix bug #1320 (image index not correctly computed from physical point)

parent c39b2ec8
No related branches found
No related tags found
No related merge requests found
......@@ -873,13 +873,13 @@ GlImageActor
#else
index[ 0 ] =
static_cast< IndexType::IndexValueType >(
( physical[ 0 ] - m_Origin[ 0 ] ) /
( physical[ 0 ] + 0.5 * m_Spacing[0] - m_Origin[ 0 ] ) /
m_Spacing[ 0 ]
);
index[ 1 ] =
static_cast< IndexType::IndexValueType >(
( physical[ 1 ]- m_Origin[ 1 ] ) /
( physical[ 1 ] + 0.5 * m_Spacing[1] - m_Origin[ 1 ] ) /
m_Spacing[ 1 ]
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment