Frame Coord. Transformations

 

The class provide a number of methods to transform points and region from one coordinate system to another

 

Public:

Frm_2_Inf

From "Frm" (Frame) system to "Inf" (Infinite) system

Inf_2_Frm

From "Inf" (Infinite) system to "Frm" (Frame) system

Frm_2_Org

From "Frm" (Frame) system to "Org" (Origin) system

Org_2_Frm

From "Org" (Origin) system to "Frm" (Frame) system

 

The following variable are associated with the "Inf" coordinate system.

 

Public:

m_scale (float **)

Display scaling factor. There is one scaling factor per window mode, and one set of these per window.

m_ratio (float)

 

Pixel aspect ration (y/x)

 

The following variable are associated with the 3D coordinate system.

 

Public:

m_org (Vect)

 

Position of the upper left corner of the upper left pixel in 3D space.

m_dir_h (Vect)

Direction verctors in 3D space. "h" is the horizontal direction, "v" is the vertical and "d" is depth.

 

 

m_dir_v (Vect)

m_dir_d (Vect)

 

m_inc (Vect)

 

Increments between pixels. m_inc.z is the spacing between slices.

m_dim (Vect)

 

Dimensions of the pixels

m_pos_d (float)

 

Position of the frame in the "d" direction.

m_time (float)

 

Frame time

m_mat_2D_3D (Matrix)

 

Transformation matrices to go from 2D ("Frm" space) to 3D ("Org" space).

 

m_mat_3D_2D (Matrix)

 

 

Note:

 

"m_org" is slightly different from the DICOM origin.  In DICOM, the origin of an image is the position of the center of the upper left pixel.  Here, "m_org" is the position of the upper left corner of the upper left pixel.