Page MenuHomePhabricator

Quickfix.patch

Authored By
goch
Jul 30 2010, 7:18 PM
Size
1 KB
Referenced Files
None
Subscribers
None

Quickfix.patch

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.

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
538
Default Alt Text
Quickfix.patch (1 KB)

Event Timeline

Quickfix for mitk::Image::GetPixelValueByIndex