Main Content


(To be removed) Partition bigimageDatastore

Since R2019b

The partition function of the bigimageDatastore object will be removed in a future release. Use the partition function associated with the blockedImageDatastore object instead. For more information, see Compatibility Considerations.


outds = partition(bigds,n,index) partitions big image datastore bigds into the number of parts specified by n and returns the partition corresponding to the index index.

Input Arguments

collapse all

Big image datastore, specified as a bigimageDatastore object.

Number of partitions, specified as a positive integer.

Example: 3

Data Types: double

Index, specified as a positive integer.

Example: 1

Data Types: double

Output Arguments

collapse all

Output datastore, returned as a bigimageDatastore object.

Version History

Introduced in R2019b

expand all

R2023b: partition will be removed

The bigimageDatastore object and this function will be removed in a future release. Use the partition function of the blockedImageDatastore object instead.

To update your code, first create a blockedImage object to read your image data, then create a blockedImageDatastore to manage blocks of the data. In the call to the partition function, replace the first input argument with the blockedImage object. You do not need to change the other arguments.

Discouraged UsageRecommended Replacement

This example partitions a bigimageDatastore object into three parts.

bigIm = bigimage("tumor_091R.tif");
bigDS = bigimageDatastore(bigIm);
outds = partition(bigDS,3,1);

Here is equivalent code that partitions a blockedImageDatastore object.

blockedIm = blockedImage("tumor_091R.tif");
blockedDS = blockedImageDatastore(blockedIm);
outds = partition(blockedDS,3,1);