Crop#
- class pyrost.Crop(roi)#
Crop transform. Crops a frame according to a region of interest.
- Parameters
roi (
Union
[List
[int
],Tuple
[int
,int
,int
,int
],ndarray
]) – Region of interest. Comprised of four elements[y_min, y_max, x_min, x_max]
.
- backward_points(x, y)#
Transform detector coordinates back.
- contents()#
Return a list of the attributes stored in the container that are initialised.
- forward(inp)#
Return a transformed image.
- forward_points(x, y)#
Transform detector coordinates.
- get(attr, value=None)#
Retrieve a dataset, return
value
if the attribute is not found.
- index_array(ss_idxs, fs_idxs)#
Filter the indices of a frame
(ss_idxs, fs_idxs)
according to the cropping transform.
- items()#
Return (key, value) pairs of the datasets stored in the container.
- Return type
- Returns
(key, value) pairs of the datasets stored in the container.
- keys()#
Return a list of the attributes available in the container.
- replace(**kwargs)#
Return a new container object with a set of attributes replaced.
- values()#
Return the attributes’ data stored in the container.
- Return type
- Returns
List of data stored in the container.