Proposals:Refactoring Index Point Coordinate System: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__TOC__
__TOC__


= Overview =


The conversion between physical points and indices is not consistent in all places in the toolkit.
The conversion between physical points and indices is not consistent in all places in the toolkit.
Line 10: Line 11:
* Transforms
* Transforms
* DICOM
* DICOM
* Conversion between ITK and VTL
* Conversion between ITK and VTK
* Backwards compatibility
* Backwards compatibility
* Template programming for more efficient conversions


= Motivation =
= Motivation =
Line 21: Line 23:
The image class considers that the location of a pixel is at the physical coordinates of the center of the pixel.
The image class considers that the location of a pixel is at the physical coordinates of the center of the pixel.


NOTE: The original file for this diagram can be found in <br>
InsightDocuments/SoftwareGuide/Art/ImageOriginAndSpacing.fig <br>
http://www.itk.org/cgi-bin/viewcvs.cgi/SoftwareGuide/Art/ImageOriginAndSpacing.fig?root=InsightDocuments&view=log


NOTE #2: The diagrams below are not quite correct in that they show the origin as being in the lower left corner of the image where the origin is really in the upper left hand corner.
=== PNG Diagram ===
[[Image:ImageOriginAndSpacing.png]]
=== SVG Diagram ===
[[Image:ImageOriginAndSpacing.svg]]
== Interpolators ==
Interpolators are used in the Registration Framework and in the Resampling filters.


= Refactoring Proposal =
= Refactoring Proposal =
== Patches ==
* Patches are available in the Bug Tracker
** http://public.kitware.com/Bug/view.php?id=6558
== Discussion ==
* http://www.itk.org/pipermail/insight-users/2009-May/030219.html

Latest revision as of 20:19, 6 May 2009

Overview

The conversion between physical points and indices is not consistent in all places in the toolkit.

The following cases must be considered

  • Interpolators
  • Registration
  • Transforms
  • DICOM
  • Conversion between ITK and VTK
  • Backwards compatibility
  • Template programming for more efficient conversions

Motivation

Review of Current Status

Image Class

The image class considers that the location of a pixel is at the physical coordinates of the center of the pixel.

NOTE: The original file for this diagram can be found in
InsightDocuments/SoftwareGuide/Art/ImageOriginAndSpacing.fig
http://www.itk.org/cgi-bin/viewcvs.cgi/SoftwareGuide/Art/ImageOriginAndSpacing.fig?root=InsightDocuments&view=log

NOTE #2: The diagrams below are not quite correct in that they show the origin as being in the lower left corner of the image where the origin is really in the upper left hand corner.

PNG Diagram

ImageOriginAndSpacing.png

SVG Diagram

ImageOriginAndSpacing.svg

Interpolators

Interpolators are used in the Registration Framework and in the Resampling filters.

Refactoring Proposal

Patches

Discussion