Comment out some stuff that I didn't mean to push yet

This commit is contained in:
Erik Ziegler 2019-02-06 14:58:06 +01:00
parent 22202141b8
commit 5b29d082ca
5 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ohif-cornerstone-extension",
"version": "0.0.3",
"version": "0.0.4",
"description": "OHIF extension for Cornerstone",
"author": "OHIF",
"license": "MIT",

View File

@ -49,11 +49,11 @@ function getCornerstoneStack(studies, studyInstanceUid, displaySetInstanceUid) {
return stackClone;
}
function parseSeg(arrayBuffer, imageIds, firstImagePlane) {
function parseSeg(arrayBuffer, imageIds) {
return dcmjs.adapters.Cornerstone.Segmentation.readToolState(
imageIds,
arrayBuffer,
firstImagePlane
//firstImagePlane
);
}
@ -118,11 +118,11 @@ async function handleSegmentationStorage(
const referenceDisplaySet = displaySets[0];
const imageIds = referenceDisplaySet.images.map(image => image.getImageId());
debugger;
//debugger;
const firstImagePlane = cornerstone.metadata.get('imagePlane', imageIds[0]);
//const firstImagePlane = cornerstone.metadata.get('imagePlane', imageIds[0]);
const results = parseSeg(arrayBuffer, imageIds, firstImagePlane);
const results = parseSeg(arrayBuffer, imageIds);
if (!results) {
throw new Error('Fractional segmentations are not supported');

View File

@ -104,7 +104,7 @@
"hammerjs": "^2.0.8",
"lodash.isequal": "^4.5.0",
"ohif-core": "^0.2.6",
"ohif-cornerstone-extension": "^0.0.3",
"ohif-cornerstone-extension": "^0.0.4",
"ohif-dicom-microscopy-extension": "^0.0.5",
"ohif-dicom-pdf-extension": "^0.0.5",
"oidc-client": "^1.6.1",

View File

@ -1 +1 @@
export default '9a0f417eec535bc0de1a57017930abd6d5a4c0c8';
export default '22202141b8ce2fd087627fe24c0d401dc096029a';

View File

@ -8229,10 +8229,10 @@ ohif-core@^0.2.6:
lodash.merge "^4.6.1"
validate.js "^0.12.0"
ohif-cornerstone-extension@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/ohif-cornerstone-extension/-/ohif-cornerstone-extension-0.0.3.tgz#621446db7eae99472a1283081634acd0990a1ee2"
integrity sha512-9q1JIH6UO/LV5XHmmUlLJ0FV+KljcG2Rc5QgGin5svl7EsDAlIG2ocrX12B9KtZ35vYyL1zigbsPd642xbCTOw==
ohif-cornerstone-extension@^0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/ohif-cornerstone-extension/-/ohif-cornerstone-extension-0.0.4.tgz#b5d89a0993af88224b214ab6d9ef1a34033d4a97"
integrity sha512-385fRrlYj+e9vaY7KvWCqsi0zV714pzptrj/6MSD3+Aim87W2C9yMHQoSOnXSRpxSye93RIdtDuiZCYGDdsqpw==
dependencies:
"@babel/runtime" "^7.2.0"
classnames "^2.2.6"