Page MenuHomePhabricator

More basic functions in Mitk::Image (e.g. SetPixel)
Closed, ResolvedPublic

Description

Add some basic functions into the mitk::image class, similar to the basic functions provided by the itk::image class

e.g. :
SetPixel( itk::IndexType , itk::Pixeltype)
itk::Pixeltype GetPixel( itk::IndexType )

If you need to change some pixels in the image (e.g. see if your calculated indexPoint is at the right place or so), these functions would make it lots easier.

At the moment you need to cast it to an itk image first, before you can change any pixel.

Related Objects

Event Timeline

"GetPixel" method is already available.

double mitk::Image::GetPixelValueByIndex(const mitk::Index3D &position, unsigned int timestep)

double mitk::Image::GetPixelValueByWorldCoordinate(const mitk::Point3D& position, unsigned int timestep)

but no SetPixel available

Resetting all bugs without active assignee flag to "CONFIRMED". Change status to IN_PROGRESS if you are working on it.

Will be part of the mitk::Image refactoring project discussion.

Fixed in the ImageAccessor project ( see T13230 ).