本文整理匯總了TypeScript中neuroglancer/sliceview/base.getCombinedTransform函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript getCombinedTransform函數的具體用法?TypeScript getCombinedTransform怎麽用?TypeScript getCombinedTransform使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了getCombinedTransform函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: withDefaultCompression
/**
* Returns a VolumeChunkSpecification with default compression specified if suitable for the
* volumeType.
*/
static withDefaultCompression(options: VolumeChunkSpecificationDefaultCompressionOptions&
VolumeChunkSpecificationOptions&
VolumeChunkSpecificationVolumeSourceOptions) {
let {
compressedSegmentationBlockSize,
dataType,
voxelSize,
transform,
lowerVoxelBound,
upperVoxelBound
} = options;
transform = getCombinedTransform(transform, options.volumeSourceOptions);
if (compressedSegmentationBlockSize === undefined &&
options.volumeType === VolumeType.SEGMENTATION &&
(dataType === DataType.UINT32 || dataType === DataType.UINT64)) {
compressedSegmentationBlockSize = getNearIsotropicBlockSize({
voxelSize,
transform,
lowerVoxelBound,
upperVoxelBound,
maxVoxelsPerChunkLog2: 9,
maxBlockSize: vec3.min(
vec3.create(), options.chunkDataSize,
options.maxCompressedSegmentationBlockSize || kInfinityVec),
});
}
return new VolumeChunkSpecification(
Object.assign({}, options, {compressedSegmentationBlockSize, transform}));
}
示例2: getDefaults
static getDefaults(options: VolumeChunkSpecificationGetDefaultsOptions) {
const adjustedOptions = Object.assign(
{}, options,
{transform: getCombinedTransform(options.transform, options.volumeSourceOptions)});
let {chunkDataSizes = getChunkDataSizes(adjustedOptions)} = options;
return chunkDataSizes.map(
chunkDataSize => VolumeChunkSpecification.withDefaultCompression(
Object.assign({}, options, {chunkDataSize})));
}
示例3: make
static make(options: VolumeChunkSpecificationOptions&
{volumeSourceOptions: SliceViewSourceOptions}) {
return new VolumeChunkSpecification(Object.assign(
{}, options,
{transform: getCombinedTransform(options.transform, options.volumeSourceOptions)}));
}