imagesplit.file.image_file_reader module
Write multidimensional data line by line
-
class
imagesplit.file.image_file_reader.BlockImageFileReader(image_size, data_type)[source]
Bases: imagesplit.file.image_file_reader.ImageFileReader
Base class for writing data from source to destination as a 2d block
-
abstract
close_file()[source]
Close the file
-
abstract
load()[source]
Reads an image from the file
-
read_image(start_local, size_local)[source]
Read the specified part of the image
-
abstract
save(image)[source]
Write the image to the file
-
write_image(data_source, rescale_limits)[source]
Create and write out this file, using data from this image source
-
class
imagesplit.file.image_file_reader.ImageFileReader[source]
Bases: object
Base class for writing data from source to destination
-
abstract
write_image(data_source, rescale_limits)[source]
Create and write out this file, using data from this image source
-
class
imagesplit.file.image_file_reader.LinearImageFileReader(image_size)[source]
Bases: imagesplit.file.image_file_reader.ImageFileReader
Base class for writing data from source to destination line by line
-
abstract
close_file()[source]
Close the file
-
read_image(start_local, size_local)[source]
Read the specified part of the image
-
abstract
read_line(start, num_voxels)[source]
Reads a line of bytes from the file
-
write_image(data_source, rescale_limits)[source]
Create and write out this file, using data from this image source
-
abstract
write_line(start, image_line, rescale_limits)[source]
Write the next line of bytes to the file