@abasb75/dicom-palettes 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/README.md +69 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -0,0 +1,69 @@
1
+ # @abasb75/dicom-palettes
2
+
3
+ A comprehensive collection of 256-level color palettes/colormaps commonly used in medical imaging (DICOM), scientific visualization, and more.
4
+
5
+ Includes standard DICOM well-known palettes, vendor-specific palettes (GE, Siemens, etc.), and many popular colormaps from the scientific community.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @abasb75/dicom-palettes
11
+ ‍‍‍‍‍‍
12
+ ```
13
+
14
+ ## UsageYou can
15
+ import individual palettes or the full collection:
16
+
17
+ ```js
18
+ import Fall from "@abasb75/dicom-palettes/well-known/Fall";
19
+ import HotIron from "@abasb75/dicom-palettes/well-known/hotIron";
20
+ import HotMetalBlue from "@abasb75/dicom-palettes/well-known/hotMetalBlue";
21
+ import Pet from "@abasb75/dicom-palettes/well-known/pet";
22
+ import Pet20Step from "@abasb75/dicom-palettes/well-known/pet20Step";
23
+ import Spring from "@abasb75/dicom-palettes/well-known/spring";
24
+ import Summer from "@abasb75/dicom-palettes/well-known/Summer";
25
+ import Winter from "@abasb75/dicom-palettes/well-known/Winter";
26
+
27
+ import RedHOT from "@abasb75/dicom-palettes/redHot";
28
+ import GE from "@abasb75/dicom-palettes/ge";
29
+ import GE256 from "@abasb75/dicom-palettes/ge256";
30
+ import Siemens from "@abasb75/dicom-palettes/siemens";
31
+ import SUV from "@abasb75/dicom-palettes/suv";
32
+ import Rainbow2 from "@abasb75/dicom-palettes/rainbow2";
33
+
34
+ import SPET from "@abasb75/dicom-palettes/spet";
35
+ import Perfusion from "@abasb75/dicom-palettes/perfusion";
36
+ import XRay from "@abasb75/dicom-palettes/xray";
37
+ import Isodose from "@abasb75/dicom-palettes/isodose";
38
+ import HSV from "@abasb75/dicom-palettes/hsv";
39
+
40
+
41
+ import colormaps from "@abasb75/dicom-palettes/colormaps";
42
+
43
+
44
+ console.log(HotIron);
45
+
46
+ ```
47
+
48
+
49
+ ## Credits and Sources
50
+
51
+ This package provides a collection of 256-level color palettes/colormaps, derived from the following sources:
52
+
53
+ - **DICOM Standard (NEMA)**
54
+ Standard DICOM palettes (e.g., Hot Iron, PET, Hot Metal Blue, etc.) are directly extracted without modification from the official DICOM Standard.
55
+ Defined in Part 6, Annex B: Well-Known Color Palettes.
56
+ Link: [DICOM Standard - Annex B](https://dicom.nema.org/medical/dicom/current/output/chtml/part06/chapter_B.html)
57
+ (Public domain, maintained by National Electrical Manufacturers Association - NEMA)
58
+
59
+ - **OHIF Viewers**
60
+ Some DICOM-related palettes were copied and resampled/interpolated to 256 levels from the OHIF implementation.
61
+ Repository: [https://github.com/OHIF/Viewers](https://github.com/OHIF/Viewers)
62
+ Licensed under MIT. Copyright notices and license preserved where applicable.
63
+
64
+ - **colormap-shaders by kbinani**
65
+ Various non-DICOM colormaps were extracted by sampling colors from the demo images generated by this project.
66
+ Repository: [https://github.com/kbinani/colormap-shaders](https://github.com/kbinani/colormap-shaders)
67
+ Licensed under MIT.
68
+
69
+ The OHIF Viewers and colormap-shaders projects are both under the MIT License. Full license texts are available in their respective repositories.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abasb75/dicom-palettes",
3
- "version": "0.0.01",
3
+ "version": "0.0.02",
4
4
  "description": "Most commonly used DICOM color palettes",
5
5
  "exports": {
6
6
  ".": {