Index: mitkImage.cpp =================================================================== --- mitkImage.cpp (revision 25001) +++ mitkImage.cpp (working copy) @@ -134,6 +134,19 @@ return value; } +double mitk::Image::GetPixelValueByIndex(const mitk::Point3D &position, unsigned int timestep) +{ + mitk::Index3D positionIdx; + + positionIdx[0] = position[0]; + positionIdx[1] = position[1]; + positionIdx[2] = position[2]; + + return this->GetPixelValueByIndex(positionIdx, timestep); + +} + + double mitk::Image::GetPixelValueByWorldCoordinate(const mitk::Point3D& position, unsigned int timestep) { mitkIpPicDescriptor* pic = this->GetPic(); Index: mitkImage.h =================================================================== --- mitkImage.h (revision 25001) +++ mitkImage.h (working copy) @@ -110,11 +110,18 @@ virtual void* GetData(); //## @brief Get the pixel value at one specific index position. - //## @brief Get the pixel value at one specific position. //## //## The pixel type is always being converted to double. double GetPixelValueByIndex(const mitk::Index3D& position, unsigned int timestep = 0); + //## @brief Legacy method to get the pixel value at one specific position. + //## + //## Introduced as a quickfix on 30.07.2010 + //## + //## The pixel type is always being converted to double. + double GetPixelValueByIndex(const mitk::Point3D &position, unsigned int timestep = 0); + + //## @brief Get the pixel value at one specific world position. //## //## The pixel type is always being converted to double.