Skip to content

Commit

Permalink
fix(itk): downgrade so median filter works
Browse files Browse the repository at this point in the history
The median filter depends on itk.js v13 and an older version of
ITKHelper, which has been copied in-tree.
  • Loading branch information
floryst committed Jun 28, 2023
1 parent 56821a0 commit d5fd586
Show file tree
Hide file tree
Showing 6 changed files with 296 additions and 30 deletions.
2 changes: 1 addition & 1 deletion externals/ITKReader/ITKDicomImageReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import regeneratorRuntime from 'regenerator-runtime';

import macro from '@kitware/vtk.js/macro';
import ITKHelper from '@kitware/vtk.js/Common/DataModel/ITKHelper';
import ITKHelper from 'paraview-glance/src/vtk/ITKHelper';

import readImageDICOMFileSeries from 'itk/readImageDICOMFileSeries';

Expand Down
100 changes: 75 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@girder/components": "3.1.0",
"@kitware/vtk.js": "28.0.0",
"@linusborg/vue-simple-portal": "0.1.5",
"itk": "14.1.1",
"itk": "13.1.4",
"jszip": "3.7.1",
"mousetrap": "1.6.5",
"patch-package": "^6.4.7",
Expand Down Expand Up @@ -119,4 +119,4 @@
"@semantic-release/github"
]
}
}
}
2 changes: 1 addition & 1 deletion src/components/core/GirderBox/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {

import writeImageArrayBuffer from 'itk/writeImageArrayBuffer';

import ITKHelper from '@kitware/vtk.js/Common/DataModel/ITKHelper';
import ITKHelper from 'paraview-glance/src/vtk/ITKHelper';
import vtkXMLPolyDataWriter from '@kitware/vtk.js/IO/XML/XMLPolyDataWriter';
import vtkXMLWriter from '@kitware/vtk.js/IO/XML/XMLWriter';
import vtkSTLWriter from '@kitware/vtk.js/IO/Geometry/STLWriter';
Expand Down
2 changes: 1 addition & 1 deletion src/components/tools/MedianFilter/script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import runPipelineBrowser from 'itk/runPipelineBrowser';
import IOTypes from 'itk/IOTypes';
import macro from '@kitware/vtk.js/macro';
import ITKHelper from '@kitware/vtk.js/Common/DataModel/ITKHelper';
import ITKHelper from 'paraview-glance/src/vtk/ITKHelper';

import { Portal } from '@linusborg/vue-simple-portal';

Expand Down
Loading

0 comments on commit d5fd586

Please sign in to comment.