boilercv_pipeline.images
#
Images.
Module Contents#
Functions#
Prepare a dataset from a CINE. |
|
Assign length scales to “x” and “y” coordinates. |
|
Get a length scale. |
|
Get the boundaries of an image. |
|
Show only the region bounding nonzero elements of the image. |
|
Compose a video-like data array and highlight the first frame. |
|
Crop an image to the specified boundaries. |
API#
- boilercv_pipeline.images.prepare_dataset(
- cine_source: pathlib.Path,
- num_frames: int | None = None,
- start_frame: int = 0,
- crop: boilercv_pipeline.types.Slicer2D | None = None,
Prepare a dataset from a CINE.
- boilercv_pipeline.images.assign_length_dims(
- dataset: boilercv.types.DS,
- roi: boilercv.types.ArrInt,
Assign length scales to “x” and “y” coordinates.
- boilercv_pipeline.images.get_length_dims( ) boilercv.data.models.Dimension #
Get a length scale.
- boilercv_pipeline.images.get_image_boundaries(
- img,
Get the boundaries of an image.
- boilercv_pipeline.images.bounded_ax(
- img: boilercv.types.Img,
- ax: matplotlib.axes.Axes | None = None,
Show only the region bounding nonzero elements of the image.
- boilercv_pipeline.images.plot_composite_da(
- video: boilercv.types.DA,
- ax: matplotlib.axes.Axes | None = None,
Compose a video-like data array and highlight the first frame.
- boilercv_pipeline.images.crop_image(
- img,
- ylim,
- xlim,
Crop an image to the specified boundaries.