Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F560
Quickfix.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
goch
Jul 30 2010, 7:18 PM
2010-07-30 19:18:19 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
Quickfix.patch
View Options
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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
538
Default Alt Text
Quickfix.patch (1 KB)
Attached To
Mode
T4692: Inconsistent handling of pixel and voxel centers
Attached
Detach File
Event Timeline
•
goch
added a comment.
Jul 30 2010, 7:18 PM
2010-07-30 19:18:19 (UTC+2)
Comment Actions
Quickfix for mitk::Image::GetPixelValueByIndex
Log In to Comment