Parameters ---------- bbox : `Bbox` transform : `Transform`
(self, bbox, transform, **kwargs)
| 1137 | """ |
| 1138 | |
| 1139 | def __init__(self, bbox, transform, **kwargs): |
| 1140 | """ |
| 1141 | Parameters |
| 1142 | ---------- |
| 1143 | bbox : `Bbox` |
| 1144 | transform : `Transform` |
| 1145 | """ |
| 1146 | _api.check_isinstance(BboxBase, bbox=bbox) |
| 1147 | _api.check_isinstance(Transform, transform=transform) |
| 1148 | if transform.input_dims != 2 or transform.output_dims != 2: |
| 1149 | raise ValueError( |
| 1150 | "The input and output dimensions of 'transform' must be 2") |
| 1151 | |
| 1152 | super().__init__(**kwargs) |
| 1153 | self._bbox = bbox |
| 1154 | self._transform = transform |
| 1155 | self.set_children(bbox, transform) |
| 1156 | self._points = None |
| 1157 | |
| 1158 | __str__ = _make_str_method("_bbox", "_transform") |
| 1159 |
nothing calls this directly
no test coverage detected