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
-
close_file
()[source]
Close the file
-
load
()[source]
Reads an image from the file
-
read_image
(start_local, size_local)[source]
Read the specified part of the image
-
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
-
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
-
close_file
()[source]
Close the file
-
read_image
(start_local, size_local)[source]
Read the specified part of the image
-
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
-
write_line
(start, image_line, rescale_limits)[source]
Write the next line of bytes to the file