@cornerstonejs/polymorphic-segmentation 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +40 -0
- package/package.json +54 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Open Health Imaging Foundation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Cornerstone Segmentation Polymorphic Segmentation
|
|
2
|
+
|
|
3
|
+
A powerful and flexible segmentation addon for Cornerstone3D that provides polymorphic segmentation capabilities.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
The Polymorphic Segmentation package extends Cornerstone3D's segmentation capabilities with advanced features for creating, manipulating, and visualizing segmentations across different modalities and use cases.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @cornerstonejs/polymorphic-segmentation
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Initialization
|
|
16
|
+
|
|
17
|
+
To use the Polymorphic Segmentation package with Cornerstone Tools, you need to initialize it as an addon during the Cornerstone Tools initialization process.
|
|
18
|
+
|
|
19
|
+
### Basic Initialization
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
import { init } from '@cornerstonejs/tools';
|
|
23
|
+
import * as polySeg from '@cornerstonejs/polymorphic-segmentation';
|
|
24
|
+
|
|
25
|
+
// Initialize Cornerstone Tools with the Polymorphic Segmentation addon
|
|
26
|
+
await init({
|
|
27
|
+
addons: {
|
|
28
|
+
polySeg,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
:::note
|
|
34
|
+
If you don't initialize polySeg as an addon, you will not be able to use the polymorphic segmentation features. But the
|
|
35
|
+
rest of the Cornerstone3D components will work as expected.
|
|
36
|
+
:::
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
MIT
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cornerstonejs/polymorphic-segmentation",
|
|
3
|
+
"version": "3.0.0-beta.3",
|
|
4
|
+
"description": "Polymorphic Segmentation utility for Cornerstone3D",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"module": "./dist/esm/index.js",
|
|
9
|
+
"types": "./dist/esm/index.d.ts",
|
|
10
|
+
"directories": {
|
|
11
|
+
"build": "dist"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/esm/index.js",
|
|
16
|
+
"types": "./dist/esm/index.d.ts"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "jest --testTimeout 60000",
|
|
24
|
+
"clean": "rimraf dist",
|
|
25
|
+
"build": "yarn run build:esm",
|
|
26
|
+
"build:esm": "tsc --project ./tsconfig.json",
|
|
27
|
+
"build:esm:watch": "tsc --project ./tsconfig.json --watch",
|
|
28
|
+
"dev": "tsc --project ./tsconfig.json --watch",
|
|
29
|
+
"build:all": "yarn run build:esm",
|
|
30
|
+
"build:update-api": "yarn run build:esm && api-extractor run --local",
|
|
31
|
+
"start": "tsc --project ./tsconfig.json --watch",
|
|
32
|
+
"format": "prettier --write 'src/**/*.js' 'test/**/*.js'",
|
|
33
|
+
"lint": "eslint --fix ."
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/cornerstonejs/cornerstone3D.git"
|
|
38
|
+
},
|
|
39
|
+
"author": "@cornerstonejs",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/cornerstonejs/cornerstone3D/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/cornerstonejs/cornerstone3D/blob/main/packages/polymorphic-segmentation/README.md",
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@icr/polyseg-wasm": "0.4.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@cornerstonejs/core": "^3.0.0-beta.3",
|
|
50
|
+
"@cornerstonejs/tools": "^3.0.0-beta.3",
|
|
51
|
+
"@kitware/vtk.js": "^32.9.0"
|
|
52
|
+
},
|
|
53
|
+
"gitHead": "d2b29db96b3ecf98c9e9f0591978423dc9f6cb3f"
|
|
54
|
+
}
|