diff OrthancStone/Resources/Documentation/Coordinates.txt @ 1779:9ab251c03eda

unit test VolumeRendering.TextureCorners
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 May 2021 10:01:20 +0200
parents fca942f4b4a7
children 20a0aba0ede5
line wrap: on
line diff
--- a/OrthancStone/Resources/Documentation/Coordinates.txt	Fri May 14 09:33:42 2021 +0200
+++ b/OrthancStone/Resources/Documentation/Coordinates.txt	Fri May 14 10:01:20 2021 +0200
@@ -13,12 +13,13 @@
   modalities.
 
 * The "Image Position Patient" gives the 3D coordinates of the CENTER
-  of the voxel of slice.
+  of the top-left voxel of slice.
 
 * In 2D compositors, the origin of a texture corresponds to the CORNER
-  of the texture (*not* to the center of the first pixel). Roughly
-  speaking, the operation "floor()" must be applied to move from
-  floating coordinates to pixel coordinates.
+  of the top-left pixel of the texture (*not* to the center of this
+  pixel). Roughly speaking, the operation "floor()" must be applied to
+  move from canvas coordinates (floating-point numbers) to pixel
+  coordinates in the image buffer (integer numbers).
 
 * The classes deriving from "IVolumeSlicer" must pay to attention to
   convert from centers of 3D voxels to bounding boxes of 2D pixels.