Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@cornerstonejs/dicom-codec
Advanced tools
DICOM Codecs for JavaScript (browser and node support).
codec name | transferSyntaxUID(s) | decode | encode | external codec | js/wasm based |
---|---|---|---|---|---|
LittleEndian | 1.2.840.10008.1.2 1.2.840.10008.1.2.1 1.2.840.10008.1.2.1.99 | - | - | - | - |
BigEndian | 1.2.840.10008.1.2.2 | - | - | - | - |
LibjpegTurbo8Bit | 1.2.840.10008.1.2.4.50 | X | X | X | X |
LibjpegTurbo12Bit | 1.2.840.10008.1.2.4.51 | - | - | - | - |
JpegLossless | 1.2.840.10008.1.2.4.57 1.2.840.10008.1.2.4.70 | X | - | X | - |
Jpegls | 1.2.840.10008.1.2.4.80 1.2.840.10008.1.2.4.81 | X | X | X | X |
Jpeg2000 | 1.2.840.10008.1.2.4.90 1.2.840.10008.1.2.4.91 | X | X | X | X |
RleLossless | 1.2.840.10008.1.2.5 | X | - | - | - |
HTJ2K | 1.2.840.10008.1.2.202 (201,203 as well) | X | X | X | X |
v0.0.11: support for LibjpegTurbo12Bit. v.0.0.12 support for encoding options. v1.0.0: support for browser (dynamic loading included) and node.
# Restore packages
yarn
# Build
yarn run build
Commonjs
const dicomCodec = require('@cornerstonejs/dicom-codec');
....
const imageFrame = ....// see API
const imageInfo = {} // add here image information (see API)
const result = await dicomCodec.transcode(imageFrame, imageInfo, sourceTransferSyntaxUID, targetTransferSyntaxUID);
const pixelData = dicomCodec.getPixelData(result.imageFrame, result.imageInfo);
ES6
import dicomCodec from '@cornerstonejs/dicom-codec';
...
const imageFrame = ....// see API
const imageInfo = {} // add here image information (see API)
const result = await dicomCodec.transcode(imageFrame, imageInfo, sourceTransferSyntaxUID, targetTransferSyntaxUID);
const pixelData = dicomCodec.getPixelData(result.imageFrame, result.imageInfo);
async function that decodes an image
Parameters (It does not mutate any param):
Returns:
Decode does not occur if there is no codec for sourceTransferSyntaxUID or related codec's transferSyntaxUID refers to uncompressed.
async function that encodes an image
Parameters (It does not mutate any param):
Returns:
Encode does not occur if there is no codec for targetTransferSyntaxUID or related codec's transferSyntaxUID refers to uncompressed.
async function that transcodes an image (decodes and then encodes)
Parameters (It does not mutate any param):
Returns:
Transcode might not occur depending on transferSyntaxUID's params (see above).
function that returns formatted imageFrame based on imageInfo Some of codecs might have specific rules for pixelData based on imageInfo.
Parameters (It does not mutate any param):
Returns:
function that set up dicom-codec configuration properties Parameters (It does not mutate any param):
TBD
FAQs
DICOM Codecs for JavaScript (browser and node support).
The npm package @cornerstonejs/dicom-codec receives a total of 70 weekly downloads. As such, @cornerstonejs/dicom-codec popularity was classified as not popular.
We found that @cornerstonejs/dicom-codec demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.