size_to_seq(size, im=None, bins=None)¶
Converts an image of invasion size values into sequence values
This is meant to accept the output of the
size (ND-image) – The image containing invasion size values in each voxel.
im (ND-image, optional) – A binary image of the porous media, with
Trueindicating the void space and
Falseindicating the solid phase. If not given then it is assumed that the solid is identified as
size == 0.
bins (array_like or int (optional)) – The bins to use when converting sizes to sequence. The default is to create 1 bin for each unique value in
size. If an int is supplied it is interpreted as the number of bins between 0 and the maximum value in
size. If an array is supplied it is used as the bins directly.
seq – An ND-image the same shape as
sizewith invasion size values replaced by the invasion sequence. This assumes that the invasion process occurs via increasing pressure steps, such as produced by the
- Return type