our-medical
Version:
medical image vue component
31 lines (30 loc) • 1.02 kB
TypeScript
import { type Types } from '@cornerstonejs/core';
/**
* @description 计算输入2D/3D点集的外包围盒
* @author jiannan.jiao
* @date 22/09/2023
* @export
* @param {Types.Poin2[]3 |Types.Point3[]} points
* @returns {*}
*/
export declare function getBoundingBox(points: Types.Point2[] | Types.Point3[]): number[][];
/**
* @description 计算视口当前所在层与体积边界相交产生的外包围盒
* @author jiannan.jiao
* @date 22/09/2023
* @export
* @param {Types.IVolumeViewport} viewport
* @returns {*}
*/
export declare function getViewportBoundingBox(viewport: Types.IVolumeViewport): number[][] | undefined;
/**
* @description 判断输入点是否在指定体积的外包围盒内
* @author jiannan.jiao
* @date 11/10/2023
* @export
* @param {string} volumeId
* @param {Types.Point3} point
* @param {('x' | 'y' | 'z')} [orientation]
* @returns {*}
*/
export declare function pointInVolumeBoundingBox(volumeId: string, point: Types.Point3, orientation?: 'x' | 'y' | 'z'): boolean;