Skip to content

Commit

Permalink
Merge branch 'v0.33'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jun 13, 2024
2 parents 528eb0b + dcb2e8d commit a4fba19
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 15 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [v0.33.1](https://github.com/ivmartel/dwv/releases/tag/v0.33.1) - 13/06/2024

### Fixed

- Wrong slice spacing for DICOM Seg [#1677](https://github.com/ivmartel/dwv/issues/1677)

## [v0.33.0](https://github.com/ivmartel/dwv/releases/tag/v0.33.0) - 06/06/2024

### Added
Expand Down
2 changes: 1 addition & 1 deletion dist/dwv.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dwv.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dwv",
"version": "0.33.0",
"version": "0.33.1",
"description": "DICOM Web Viewer.",
"keywords": [
"DICOM",
Expand Down
4 changes: 2 additions & 2 deletions resources/doc/jsdoc.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"package": "package.json",
"theme_opts": {
"title": "DWV",
"footer": "<i>Documentation generated for dwv v0.33.0.</i>",
"footer": "<i>Documentation generated for dwv v0.33.1.</i>",
"sections": [
"Tutorials",
"Namespaces",
Expand All @@ -50,7 +50,7 @@
"codepen": {
"enable_for": ["examples"],
"options": {
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.33.0/dwv-0.33.0.min.js",
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.33.1/dwv-0.33.1.min.js",
"html": "<div id='dwv'><div id='layerGroup0'></div></div>"
}
}
Expand Down
8 changes: 4 additions & 4 deletions resources/doc/tutorials/test-results.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

## Context

Date: Thu Jun 06 2024 18:05:34 GMT+0200 (Central European Summer Time)
Date: Thu Jun 13 2024 11:56:35 GMT+0200 (Central European Summer Time)

Commit: [677e076](git://github.com/ivmartel/dwv.git/commit/677e076a81724d1e2b659aca942d899175d203ea)
Commit: [5909e54](git://github.com/ivmartel/dwv.git/commit/5909e54fa860694e4867a83d0a3446704373db3c)

Browser: Chrome Headless 125.0.6422.112 (Linux x86_64)
Browser: Chrome Headless 125.0.6422.141 (Linux x86_64)

## Summary
Success: 163 ✅

Failed: 0 ❌

(total: 163, skipped: 0, total time: 1650ms)
(total: 163, skipped: 0, total time: 1600ms)

## Tests details

Expand Down
7 changes: 2 additions & 5 deletions src/dicom/dicomElementsWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,8 @@ export function getSpacingFromMeasure(dataElements) {
parseFloat(pixelSpacing.value[1]),
parseFloat(pixelSpacing.value[0]),
];
// Slice Thickness
if (typeof dataElements['00180050'] !== 'undefined') {
spacingValues.push(parseFloat(dataElements['00180050'].value[0]));
} else if (typeof dataElements['00180088'] !== 'undefined') {
// Spacing Between Slices
// Spacing Between Slices
if (typeof dataElements['00180088'] !== 'undefined') {
spacingValues.push(parseFloat(dataElements['00180088'].value[0]));
}
return new Spacing(spacingValues);
Expand Down
2 changes: 1 addition & 1 deletion src/dicom/dicomParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {DataElement} from '../dicom/dataElement';
* @returns {string} The version of the library.
*/
export function getDwvVersion() {
return '0.33.0';
return '0.33.1';
}

/**
Expand Down
6 changes: 6 additions & 0 deletions src/image/maskFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,15 @@ export class MaskFactory {
if (typeof spacing === 'undefined') {
throw new Error('No spacing found for DICOM SEG');
}
if (spacing.length() !== 3) {
throw new Error('Incomplete spacing found for DICOM SEG');
}
if (typeof imageOrientationPatient === 'undefined') {
throw new Error('No imageOrientationPatient found for DICOM SEG');
}
if (imageOrientationPatient.length !== 6) {
throw new Error('Incomplete imageOrientationPatient found for DICOM SEG');
}

// orientation
const rowCosines = new Vector3D(
Expand Down

0 comments on commit a4fba19

Please sign in to comment.