setup_relation
- misalign.model.relation.setup_relation(**relation_data) MISRelation
Construct MISRelation from relation data.
Uses the relation_type field in relation_data to select the correct MISRelation implementation to initialize.
- Parameters:
- relation_datadict
JSON dump-able representation of image information. Must include relation_type.
- Returns:
- relationMISRelation
Returns a MISRelation initialized from relation_data. MISRelation implementation selection is based on relation_type lookup in the relation_types dictionary.