Page MenuHomePhabricator

[Dashboard] mitkImageGenerator test uses deprecated API
Closed, ResolvedPublic

Event Timeline

Example for a bug which could need a special flag like:
"trivial core change request". We just have to use the new API.

I would fix this bug, but first, we should make sure that there are no other parts in the Core using the old API, shouldn't we?

As far as I know, the ImageGenerator class should also use the old API.

Yes, it does:
144 //get a pointer to the image buffer to write into
145 TPixelType* imageBuffer = (TPixelType*)output->GetData();

See also http://mitk.org/git/?p=MITK.git;a=blob;f=Core/Code/IO/mitkImageGenerator.h;h=32afe9a0d97aa08a4d73939a530ba07f4846e5e2;hb=HEAD

New remote branch pushed: bug-14306-ReplaceDeprecatedMethodCallsInCoreTests

With the current commit, all mitk::Image::GetData() calls are replaced in mitkImageGenerator.h and mitkImageTest.cpp.

What is the status of this bug? Please change the target milestone to "AfterNextRelease" if this bug is not relevant or cannot be fixed in time for the 2013-06 release.

This bug could not be fixed within the 2013-06 release and has medium severity. Setting target milestone to unspecified.

New remote branch pushed: bug-14306-mitkImageGeneratorDeprecatedImageAPI

[98c797]: Merge branch 'bug-14306-mitkImageGeneratorDeprecatedImageAPI'

Merged commits:

2013-07-03 17:56:06 Tobias Norajitra [c97b1b]
Additional Changes.


2013-07-03 16:06:17 Tobias Norajitra [48e923]
mitkImageGeneratorTest and mitkImageGenerator image API changes.

Deprecated image API calls replaced.

[1fd8d5]: Merge branch 'bug-14306-mitkImageGeneratorDeprecatedImageAPI'

Merged commits:

2013-07-11 15:44:57 Tobias Norajitra [a9857d]
COMP: type specifier un-typenamed