Mercurial > hg > orthanc-stone
annotate OrthancStone/Resources/Documentation/Coordinates.txt @ 1786:748bfa7df18b
removing test code in DicomVolumeImageReslicer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 15 May 2021 11:41:58 +0200 |
parents | 9ab251c03eda |
children | 20a0aba0ede5 |
rev | line source |
---|---|
1775
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 Some notes about the coordinate systems |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 ======================================= |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 * The 3D coordinates are expressed in the PATIENT system, *not* the |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 "gantry" coordinates. As a consequence, the tags "Image Position |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 Patient" (0020,0032) and "Image Orientation Patient" (0020,0037) |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 describe the 3D geometry of a slice. |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 * The tag "Patient Position" (0018,5100) could be used to convert from |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 patient coordinates to gantry coordinates, but this would be useful |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 to device manufacturers, whereas Stone primarly deals with users of |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 modalities. |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 * The "Image Position Patient" gives the 3D coordinates of the CENTER |
1779
9ab251c03eda
unit test VolumeRendering.TextureCorners
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1775
diff
changeset
|
16 of the top-left voxel of slice. |
1775
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 * In 2D compositors, the origin of a texture corresponds to the CORNER |
1779
9ab251c03eda
unit test VolumeRendering.TextureCorners
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1775
diff
changeset
|
19 of the top-left pixel of the texture (*not* to the center of this |
9ab251c03eda
unit test VolumeRendering.TextureCorners
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1775
diff
changeset
|
20 pixel). Roughly speaking, the operation "floor()" must be applied to |
9ab251c03eda
unit test VolumeRendering.TextureCorners
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1775
diff
changeset
|
21 move from canvas coordinates (floating-point numbers) to pixel |
9ab251c03eda
unit test VolumeRendering.TextureCorners
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1775
diff
changeset
|
22 coordinates in the image buffer (integer numbers). |
1775
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 * The classes deriving from "IVolumeSlicer" must pay to attention to |
fca942f4b4a7
fix conversion from voxel centers to texture borders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 convert from centers of 3D voxels to bounding boxes of 2D pixels. |