Class: Alignment2d
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Alignment2d
- Includes:
- CoreBase
- Defined in:
- app/models/alignment2d.rb
Overview
Encapsulates the affine transform between an section-image pixel position to a location in the specimen volume (tsv) and vice versa (tvs). A 2-D affine transform is defined by 6 parameters: the first 4 parameters represents the matrix part in row-major order and the last 2 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) tsv
Image to volume transform as string Convert to_f to make sure nils are represented as 0.
-
- (Object) tvs
Volume to image transform as a string Convert to_f to make sure nils are represented as 0.
Instance Method Details
- (Object) tsv
Image to volume transform as string Convert to_f to make sure nils are represented as 0
27 28 29 |
# File 'app/models/alignment2d.rb', line 27 def tsv [ tsv_00, tsv_01, tsv_02, tsv_03, tsv_04, tsv_05 ].collect {|e| e.to_f}.join(',') end |
- (Object) tvs
Volume to image transform as a string Convert to_f to make sure nils are represented as 0
33 34 35 |
# File 'app/models/alignment2d.rb', line 33 def tvs [ tvs_00, tvs_01, tvs_02, tvs_03, tvs_04, tvs_05 ].collect {|e| e.to_f}.join(',') end |