2

我正在使用木瓜查看 DICOM 图像。http://ric.uthscsa.edu/mango/papaya.html

我想知道如何使用键盘键移动到下一个切片。由于所有命令都嵌入在 javascript 文件中,是否有我应该寻找的特定功能?

请帮忙。

4

1 回答 1

0

查看viewer.jsincrementAxial()中的、incrementCoronal()incrementSagittal()函数:

papaya.viewer.Viewer.prototype.incrementAxial
papaya.viewer.Viewer.prototype.incrementCoronal
papaya.viewer.Viewer.prototype.incrementSagittal

它们采用一个参数,一个布尔值来指示是递增(true)还是递减(false)。

为了知道要增加哪一个,您需要知道哪个切片方向是主切片。有关如何处理的示例,请参见下文:

if (this.mainImage.sliceDirection === papaya.viewer.ScreenSlice.DIRECTION_AXIAL) {
    this.incrementAxial(false);
} else if (this.mainImage.sliceDirection === papaya.viewer.ScreenSlice.DIRECTION_CORONAL) {
    this.incrementCoronal(false);
} else if (this.mainImage.sliceDirection === papaya.viewer.ScreenSlice.DIRECTION_SAGITTAL) {
    this.incrementSagittal(true);
}
于 2015-10-06T23:16:18.380 回答