CalculateContainingVolume(minWorldCoordinates,
maxWorldCoordinates,
resolutions,
resolutionMode=' highest ' ,
resolutionValue=None)
|
|
This function calculates values for N, origin and resolution that span
the specified world-coordinate range.
len( resolutions ) == len( minWorldCoordinates ) == len(
maxWorldCoordinates )
- Parameters:
minWorldCoordinates (iterable< iterable< float, 3 > > ) - The minimum world-coordinates to consider
maxWorldCoordinates (iterable< iterable< float, 3 > > ) - The maximum world-coordinates to consider
resolutions (iterable< float, 3 > ) - The resolutions to consider
resolutionMode (string ) - Either "highest", in which case the highest resolution
is used for the resized VolumeDatas, "lowest", in which
case the lowest resolution is used, or "fixed", in
which case the resolution specified by resolutionValue will be
used
resolutionValue (iterable< float, 3 > ) - The resolution value to use when the resolutionMode is
"fixed". Ignored otherwise
- Returns:
tuple< iterable< int, 3 >, iterable< float, 3 >,
iterable< float, 3 > >
- These are the values of N, resolution and origin that span the
input world-coordinate range
|