Class: Alignment3d
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Alignment3d
- Includes:
- CoreBase
- Defined in:
- app/models/alignment3d.rb
Overview
Encapsulates the affine transform between an specimen volume position to a location in the reference space (tvr) and vice versa (trv). A 3-D affine transform is defined by 12 parameters: the first 9 parameters represents the matrix part in row-major order and the last 3 parameters the translation part. These values have been generated by the informatics data processing pipeline. See pipeline overview for more details.
Instance Method Summary (collapse)
-
- (Object) trv
Reference to volume transform as a string Convert to_f to make sure nils are represented as 0.
-
- (Object) tvr
Volume to reference transform as a string Convert to_f to make sure nils are represented as 0.
Instance Method Details
- (Object) trv
Reference to volume transform as a string Convert to_f to make sure nils are represented as 0
47 48 49 50 51 |
# File 'app/models/alignment3d.rb', line 47 def trv [ trv_00, trv_01, trv_02, trv_03, trv_04, trv_05, trv_06, trv_07, trv_08, trv_09, trv_10, trv_11 ].collect {|e| e.to_f}.join(",") end |
- (Object) tvr
Volume to reference transform as a string Convert to_f to make sure nils are represented as 0
39 40 41 42 43 |
# File 'app/models/alignment3d.rb', line 39 def tvr [ tvr_00, tvr_01, tvr_02, tvr_03, tvr_04, tvr_05, tvr_06, tvr_07, tvr_08, tvr_09, tvr_10, tvr_11 ].collect {|e| e.to_f}.join(",") end |