From cc8e1a411bb5281daba32ad987debc50aa100cad Mon Sep 17 00:00:00 2001 From: Sachidanand Alle Date: Fri, 22 Nov 2024 11:07:49 +0000 Subject: [PATCH] Add copyright header Signed-off-by: Sachidanand Alle --- .../monai-label/src/components/ModelSelector.css | 13 +++++++++++++ .../monai-label/src/components/ModelSelector.tsx | 13 +++++++++++++ .../monai-label/src/components/MonaiLabelPanel.css | 13 +++++++++++++ .../monai-label/src/components/MonaiLabelPanel.tsx | 13 +++++++++++++ .../src/components/OptionsInputDialog.tsx | 13 +++++++++++++ .../monai-label/src/components/SettingsTable.css | 13 +++++++++++++ .../monai-label/src/components/SettingsTable.tsx | 13 +++++++++++++ .../src/components/actions/AutoSegmentation.tsx | 13 +++++++++++++ .../monai-label/src/components/actions/BaseTab.css | 13 +++++++++++++ .../monai-label/src/components/actions/BaseTab.tsx | 13 +++++++++++++ .../src/components/actions/ClassPrompts.tsx | 13 +++++++++++++ .../src/components/actions/NextSampleForm.css | 13 +++++++++++++ .../src/components/actions/NextSampleForm.tsx | 13 +++++++++++++ .../src/components/actions/OptionsForm.css | 1 + .../src/components/actions/PointPrompts.css | 13 +++++++++++++ .../src/components/actions/PointPrompts.tsx | 13 +++++++++++++ .../ohifv3/extensions/monai-label/src/config.json | 5 ----- .../monai-label/src/services/MonaiLabelClient.js | 13 +++++++++++++ .../monai-label/src/tools/ProbeMONAILabelTool.ts | 13 +++++++++++++ .../monai-label/src/utils/GenericAnatomyColors.js | 13 +++++++++++++ .../monai-label/src/utils/GenericUtils.js | 13 +++++++++++++ .../extensions/monai-label/src/utils/SegUtils.js | 13 +++++++++++++ .../monai-label/src/utils/SegmentationReader.js | 13 +++++++++++++ .../monai-label/src/utils/addToolInstance.ts | 13 +++++++++++++ 24 files changed, 287 insertions(+), 5 deletions(-) delete mode 100644 plugins/ohifv3/extensions/monai-label/src/config.json diff --git a/plugins/ohifv3/extensions/monai-label/src/components/ModelSelector.css b/plugins/ohifv3/extensions/monai-label/src/components/ModelSelector.css index 78cd084b3..f09f184e8 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/ModelSelector.css +++ b/plugins/ohifv3/extensions/monai-label/src/components/ModelSelector.css @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + .modelSelector .table { border-collapse: collapse; border: 0 solid; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/ModelSelector.tsx b/plugins/ohifv3/extensions/monai-label/src/components/ModelSelector.tsx index 49ed04ccd..ed0ca1e63 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/ModelSelector.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/ModelSelector.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { Component } from 'react'; import PropTypes from 'prop-types'; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/MonaiLabelPanel.css b/plugins/ohifv3/extensions/monai-label/src/components/MonaiLabelPanel.css index aa3d60e72..d8b5adbc6 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/MonaiLabelPanel.css +++ b/plugins/ohifv3/extensions/monai-label/src/components/MonaiLabelPanel.css @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /*@import url("w3.css");*/ .monaiLabelPanel { diff --git a/plugins/ohifv3/extensions/monai-label/src/components/MonaiLabelPanel.tsx b/plugins/ohifv3/extensions/monai-label/src/components/MonaiLabelPanel.tsx index 70e3143a0..4ab37b53a 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/MonaiLabelPanel.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/MonaiLabelPanel.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './MonaiLabelPanel.css'; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/OptionsInputDialog.tsx b/plugins/ohifv3/extensions/monai-label/src/components/OptionsInputDialog.tsx index 91ca70e1a..2c6f74c6d 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/OptionsInputDialog.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/OptionsInputDialog.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from 'react'; import { Dialog, ButtonEnums } from '@ohif/ui'; import OptionsForm from './actions/OptionsForm'; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/SettingsTable.css b/plugins/ohifv3/extensions/monai-label/src/components/SettingsTable.css index abbca0c73..c7629e728 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/SettingsTable.css +++ b/plugins/ohifv3/extensions/monai-label/src/components/SettingsTable.css @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + .settingsTable { border-collapse: collapse; border: 0 solid; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/SettingsTable.tsx b/plugins/ohifv3/extensions/monai-label/src/components/SettingsTable.tsx index be23b334f..56491e417 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/SettingsTable.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/SettingsTable.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { Component } from 'react'; import './SettingsTable.css'; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/AutoSegmentation.tsx b/plugins/ohifv3/extensions/monai-label/src/components/actions/AutoSegmentation.tsx index d249a8d5f..a0a2ad669 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/AutoSegmentation.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/AutoSegmentation.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from 'react'; import ModelSelector from '../ModelSelector'; import BaseTab from './BaseTab'; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/BaseTab.css b/plugins/ohifv3/extensions/monai-label/src/components/actions/BaseTab.css index 5c1d6397c..f1f98b706 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/BaseTab.css +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/BaseTab.css @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + .optionsTable { font-family: arial, sans-serif; border-collapse: collapse; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/BaseTab.tsx b/plugins/ohifv3/extensions/monai-label/src/components/actions/BaseTab.tsx index cb64b60d5..420a69835 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/BaseTab.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/BaseTab.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Component } from 'react'; import PropTypes from 'prop-types'; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/ClassPrompts.tsx b/plugins/ohifv3/extensions/monai-label/src/components/actions/ClassPrompts.tsx index 0601ea76f..4ef046b04 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/ClassPrompts.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/ClassPrompts.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from 'react'; import ModelSelector from '../ModelSelector'; import BaseTab from './BaseTab'; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/NextSampleForm.css b/plugins/ohifv3/extensions/monai-label/src/components/actions/NextSampleForm.css index 1ee5e67db..62f88457f 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/NextSampleForm.css +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/NextSampleForm.css @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + .nextSampleForm { } .nextSampleForm .actionButton { diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/NextSampleForm.tsx b/plugins/ohifv3/extensions/monai-label/src/components/actions/NextSampleForm.tsx index 61897add4..f1ee3b059 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/NextSampleForm.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/NextSampleForm.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { Component } from 'react'; import './NextSampleForm.css'; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/OptionsForm.css b/plugins/ohifv3/extensions/monai-label/src/components/actions/OptionsForm.css index 00b1381d4..ac82d5c7d 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/OptionsForm.css +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/OptionsForm.css @@ -10,6 +10,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ + .optionsForm { background-color: white; } diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/PointPrompts.css b/plugins/ohifv3/extensions/monai-label/src/components/actions/PointPrompts.css index 7ef8790c2..31ff41ab6 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/PointPrompts.css +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/PointPrompts.css @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + .tmpActionButton { border: 2px solid #000; border-radius: 15px; diff --git a/plugins/ohifv3/extensions/monai-label/src/components/actions/PointPrompts.tsx b/plugins/ohifv3/extensions/monai-label/src/components/actions/PointPrompts.tsx index 9d967874d..67b4e3517 100644 --- a/plugins/ohifv3/extensions/monai-label/src/components/actions/PointPrompts.tsx +++ b/plugins/ohifv3/extensions/monai-label/src/components/actions/PointPrompts.tsx @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from 'react'; import './PointPrompts.css'; import ModelSelector from '../ModelSelector'; diff --git a/plugins/ohifv3/extensions/monai-label/src/config.json b/plugins/ohifv3/extensions/monai-label/src/config.json deleted file mode 100644 index 013b48296..000000000 --- a/plugins/ohifv3/extensions/monai-label/src/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "MONAI_LABEL_API_ENDPOINT": "http://localhost:8000", - "MONAI_LABEL_USER_ID": "9967f4fc-5a63-11ee-8c99-0242ac120002", - "MONAI_LABEL_ACCESS_TOKEN": "" -} diff --git a/plugins/ohifv3/extensions/monai-label/src/services/MonaiLabelClient.js b/plugins/ohifv3/extensions/monai-label/src/services/MonaiLabelClient.js index 502b9d09a..b15446da4 100644 --- a/plugins/ohifv3/extensions/monai-label/src/services/MonaiLabelClient.js +++ b/plugins/ohifv3/extensions/monai-label/src/services/MonaiLabelClient.js @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import axios from 'axios'; export default class MonaiLabelClient { diff --git a/plugins/ohifv3/extensions/monai-label/src/tools/ProbeMONAILabelTool.ts b/plugins/ohifv3/extensions/monai-label/src/tools/ProbeMONAILabelTool.ts index 6ad8a7ee9..0d0f36a48 100644 --- a/plugins/ohifv3/extensions/monai-label/src/tools/ProbeMONAILabelTool.ts +++ b/plugins/ohifv3/extensions/monai-label/src/tools/ProbeMONAILabelTool.ts @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { ProbeTool, annotation, drawing } from '@cornerstonejs/tools'; const { getAnnotations } = annotation.state; diff --git a/plugins/ohifv3/extensions/monai-label/src/utils/GenericAnatomyColors.js b/plugins/ohifv3/extensions/monai-label/src/utils/GenericAnatomyColors.js index dcb70ce3e..f2d454a3d 100644 --- a/plugins/ohifv3/extensions/monai-label/src/utils/GenericAnatomyColors.js +++ b/plugins/ohifv3/extensions/monai-label/src/utils/GenericAnatomyColors.js @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + function componentToHex(c) { const hex = c.toString(16); return hex.length === 1 ? '0' + hex : hex; diff --git a/plugins/ohifv3/extensions/monai-label/src/utils/GenericUtils.js b/plugins/ohifv3/extensions/monai-label/src/utils/GenericUtils.js index 9484d16a6..f7762bd5b 100644 --- a/plugins/ohifv3/extensions/monai-label/src/utils/GenericUtils.js +++ b/plugins/ohifv3/extensions/monai-label/src/utils/GenericUtils.js @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { GenericAnatomyColors, GenericNames } from './GenericAnatomyColors'; function getRandomInt(min, max) { diff --git a/plugins/ohifv3/extensions/monai-label/src/utils/SegUtils.js b/plugins/ohifv3/extensions/monai-label/src/utils/SegUtils.js index f3147ee39..3f58f792a 100644 --- a/plugins/ohifv3/extensions/monai-label/src/utils/SegUtils.js +++ b/plugins/ohifv3/extensions/monai-label/src/utils/SegUtils.js @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + function currentSegmentsInfo(segmentationService) { const info = {}; const indices = new Set(); diff --git a/plugins/ohifv3/extensions/monai-label/src/utils/SegmentationReader.js b/plugins/ohifv3/extensions/monai-label/src/utils/SegmentationReader.js index 2ea06f9cf..5426f89bc 100644 --- a/plugins/ohifv3/extensions/monai-label/src/utils/SegmentationReader.js +++ b/plugins/ohifv3/extensions/monai-label/src/utils/SegmentationReader.js @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import nrrd from 'nrrd-js'; import pako from 'pako'; diff --git a/plugins/ohifv3/extensions/monai-label/src/utils/addToolInstance.ts b/plugins/ohifv3/extensions/monai-label/src/utils/addToolInstance.ts index 2181abbef..b4d2c1e10 100644 --- a/plugins/ohifv3/extensions/monai-label/src/utils/addToolInstance.ts +++ b/plugins/ohifv3/extensions/monai-label/src/utils/addToolInstance.ts @@ -1,3 +1,16 @@ +/* +Copyright (c) MONAI Consortium +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { addTool } from '@cornerstonejs/tools'; export default function addToolInstance(