i3assist.TransformList¶
-
class
i3assist.
TransformList
(filename='', transforms=[])[source]¶ Describes a full transform file with as a list of Transforms.
For more information refer to the subvolume tutorial document for I3.
Parameters: - filename (
str
) – Filename of trf file. - transforms (
list
ofi3assist.Transform
) – List of transforms.
Methods
__init__
([filename, transforms])from_file
(filename)Loads list of transforms from a trf file. get_by_class
(class_number)Gets a subset of a transform list based on the class number. get_by_subset
(subset)Gets a subset of a transform list based on the subset field. scale
(scale_factor[, inplace])Scales all of the transforms in a list. sort_by_class
([inplace])Sorts a transform list by class numbers. sort_by_score
([inplace])Sorts a transform list by correlation coefficient. to_file
(filename)Writes out a Transform list to a trf file. Attributes
filename
Filename associated with transform list. transforms
List of Transform objects. - filename (