imagesplit.image.combined_image module
Classes for aggregating images from multiple files into a single image
-
class
imagesplit.image.combined_image.Axis(dim_order, dim_flip)[source]
Bases: object
Defines coordinate system used by image coordinates
-
static
from_condensed_format(dim_order_and_flip)[source]
Creates an Axis from a condensed axis array
-
to_condensed_format()[source]
Creates a condensed Axis array for this Axis
-
class
imagesplit.image.combined_image.CombinedImage(descriptors, file_factory)[source]
Bases: object
A kind of virtual file for writing where the data are distributed
across multiple real files.
-
close()[source]
Closes all streams and files
-
get_limits()[source]
Return minimum and maximum values across all subimages
-
read_image(start_local, size_local, transformer)[source]
Assembles an image range from subimages
-
write_image(source, rescale, test=False)[source]
Write out all the subimages with data from supplied source
-
class
imagesplit.image.combined_image.CoordinateTransformer(origin, size, axis)[source]
Bases: object
Convert coordinates between orthogonal systems
-
image_to_global(local_image)[source]
Convert local coordinates to global coordinates
-
image_to_local(global_image)[source]
Transform global image to local coordinate system
-
image_to_other(local_image, other_transformer)[source]
Transform image to a different local coordinate system
-
to_global(local_start, local_size)[source]
Convert local coordinates to global coordinates
-
to_local(global_start, global_size)[source]
Convert global coordinates to local coordinates
-
to_other(local_start, local_size, other_transformer)[source]
Convert local coordinates to a different local system
-
class
imagesplit.image.combined_image.Limits(rmin, rmax)[source]
Bases: object
Image range values across all subimages
-
class
imagesplit.image.combined_image.LocalSource(source, transformer)[source]
Bases: imagesplit.image.combined_image.Source
Fetch and transform data using local coordinates
-
close()[source]
Close all streams and files
-
read_image(start, size)[source]
Returns a partial image using the specified local coordinates
-
class
imagesplit.image.combined_image.Source[source]
Bases: object
Base class for reading data
-
abstract
close()[source]
Read image from specified starting coordinates and size
-
abstract
read_image(start, size)[source]
Read image from specified starting coordinates and size
-
class
imagesplit.image.combined_image.SubImage(descriptor, file_factory)[source]
Bases: imagesplit.image.combined_image.Source
An image which forms part of a larger image
-
bind_by_roi(start_global, size_global)[source]
Find the part of the specified region that fits within the ROI
-
close()[source]
Close all streams and files
-
get_limits()[source]
Return minimum and maximum values across all subimages
-
read_image(start, size)[source]
Returns a subimage containing any overlap from the image
-
read_image_bound_by_roi(start, size)[source]
Returns a subimage containing any overlap from the ROI
-
write_image(global_source, rescale_limits)[source]
Write out SubImage using data from the specified source