Commit b27ec1cd authored by Julien Michel's avatar Julien Michel

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

parent c39b2ec8
......@@ -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 ]
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment