Page MenuHomePhabricator

mitkVector::ToArray(ArrayType array) function error
Closed, WontfixPublic

Description

In MITK Nightly mitkVector::ToArray(ArrayType array) function should pass the reference of the array:

In Modules\Core\include\mitkVector.h:

template <typename ArrayType >
void ToArray(ArrayType& array) const

Also, the following test case should pass:

mitk::Vector3D vector_1;
vector_1[0] = 4.6;
vector_1[1] = 9.76543;
vector_1[2] = 746.09;
itk::Array<double> array_1(3);
vector_1.ToArray(array_1);
MITK_TEST_CONDITION(mitk::Equal(vector_1[0], array_1[0]));
MITK_TEST_CONDITION(mitk::Equal(vector_1[1], array_1[1]));
MITK_TEST_CONDITION(mitk::Equal(vector_1[2], array_1[2]));

Event Timeline

kislinsk triaged this task as Normal priority.Aug 9 2016, 9:04 AM
kislinsk edited projects, added MITK (2016-11); removed MITK.
kislinsk claimed this task.
kislinsk added a project: Auto-closed.
kislinsk added a subscriber: kislinsk.

Hi there! 🙂

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. 🚑

Best wishes,
The MITK devs

kislinsk removed kislinsk as the assignee of this task.May 26 2020, 12:05 PM
kislinsk removed a subscriber: kislinsk.