-
Notifications
You must be signed in to change notification settings - Fork 619
Open
Labels
questionFurther information is requestedFurther information is requested
Milestone
Description
Is this possible, or is there at least a way to achieve this with a workaround, many other professional dicom viewers allow images with different orientation in the same serie. However, the component has an explicit check and throws an error for other orientations.
appendSlice(rhs) {
// check input
if (rhs === null) {
throw new Error('Cannot append null slice');
}
const rhsSize = rhs.getGeometry().getSize();
let size = this.#geometry.getSize();
if (rhsSize.get(2) !== 1) {
throw new Error('Cannot append more than one slice');
}
if (size.get(0) !== rhsSize.get(0)) {
throw new Error('Cannot append a slice with different number of columns');
}
if (size.get(1) !== rhsSize.get(1)) {
throw new Error('Cannot append a slice with different number of rows');
}
if (!this.#geometry.getOrientation().equals(
rhs.getGeometry().getOrientation(), 0.0001)) {
throw new Error('Cannot append a slice with different orientation');
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested