-
Notifications
You must be signed in to change notification settings - Fork 14
Point rendering
This page describes how landmark points are rendered as "spots" in the BigWarp windows.
The BigWarp currentTransform
is an InvertibleRealTransform
whose forward direction maps points from target to moving space*, and whose inverse direction maps points from moving to target space.
*This may seem counter-intuitive, but is because transforming moving images to target space requires transforming points from target to moving space
Moving and target landmarks are stored in the LandmarkTableModel
.
Landmarks are in the physical (not pixel) space of the moving and physical images, and there are three distinct spaces in which points can live:
- Moving image space
- Transformed moving image space
- Target (fixed) image space
Landmarks in moving image space are stored in movingPts
,
landmarks in transformed moving image space in
warpedPoints
,
and landmarks in target image space in targetPts
.
When a landmark p
is placed in moving image space:
-
p
is added to themovingPts
list directly (in physical units). - The warped point is set if its available, or flagged to be updated when needed.
When a landmark p
is placed in transformed moving space:
-
p
is added to thewarpedPoints
list directly. -
p
is transformed through the forwardcurrentTransform
and the result is added tomovingPts
When a landmark p
is placed in target space:
-
p
is added directly totargetPts