当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript base.getCombinedTransform函数代码示例

本文整理汇总了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}));
 }
开发者ID:google,项目名称:neuroglancer,代码行数:33,代码来源:base.ts

示例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})));
  }
开发者ID:google,项目名称:neuroglancer,代码行数:10,代码来源:base.ts

示例3: make

 static make(options: VolumeChunkSpecificationOptions&
             {volumeSourceOptions: SliceViewSourceOptions}) {
   return new VolumeChunkSpecification(Object.assign(
       {}, options,
       {transform: getCombinedTransform(options.transform, options.volumeSourceOptions)}));
 }
开发者ID:google,项目名称:neuroglancer,代码行数:6,代码来源:base.ts


注:本文中的neuroglancer/sliceview/base.getCombinedTransform函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。