Comments (2)
Did you ever get this fixed?
Looks like the problem I see is that you can't use async functions like that within reacts useEffect hook.
Define the async function inside the hook.
useEffect(() => {
// what happens in vegas (in the promise) stays in vegas
const render = async() => {
...
}
render()
},[viewportRef1])
same goes for the init of cornerstone.
from cornerstone3d.
It has been a while since I've fixed the issue but I think the issue was related to the faulty/missing installation of cornerstoneWADOImageLoader.
Here is what I did if someone is having a similar issue. I was initially using CRA but realized that I need to make some changes to the webpack.config.js
file to install cornerstoneWADOImageLoader properly. I started a fresh project and created the webpack.config.js
file manually. The important point is adding the following property to the webpack.config.js
file:
resolve: {
alias: {
"cornerstone-wado-image-loader": "cornerstone-wado-image-loader/dist/dynamic-import/cornerstoneWADOImageLoader.min.js"
}
}
You also need the CopyWebpackPlugin
installed and added to the config file. The tricky thing here is that the documentation of cornerstoneWADOImageLoader is faulty. You need to add the following property to the config file:
plugins: [
new CopyWebpackPlugin(
{
patterns: [
{
from: path.resolve(__dirname, './node_modules/cornerstone-wado-image-loader/dist/dynamic-import'),
to: "../dist",
},
]
})
],
Be mindful that "to" here should point to your build folder, make sure other paths are correct as well
from cornerstone3d.
Related Issues (20)
- [Bug] StackViewport not cancelling scroll debounce timer when the Image Set is not fully Loaded HOT 1
- [Bug] Desired resource size is greater than max texture size HOT 2
- [Bug] Issue in runtime useing @vue/cli-service building tool after upgrade cornerstone libs. HOT 2
- [Bug] Contour's color is wrong HOT 17
- Nifti scroll problem
- [Bug] Memory Leaks on inter cpu computer HOT 3
- [Bug] Volume viewport synchronization - Couldn't handle volume viewport synchronization for different viewports (Sagittal, axial and coronal)) HOT 3
- [Bug] After using compression, DICOM files rendereed as brighter HOT 2
- [Bug] When using @cornerstonejs/tools with electron or SPA Vue+vite, production application crash HOT 3
- [Bug] generateVolumePropsFromImageIds allocates an Int16Array if rescale or intercept is negative, which is incompatible with texSubImage3D HOT 1
- [Feature Request] How do I render a TAG pixel in Dicom with a TAG Value of 6000,3000 HOT 6
- Image Loader - cancelLoadAll() errors when no imageId's in request pool. HOT 1
- [Bug] When I have a lot of contourSegments displayed, the pagination of the image becomes sluggish HOT 1
- [Bug] 使用volumeLoader.registerVolumeLoader("nifti", cornerstoneNiftiImageVolumeLoader);加载图像出现Bug HOT 2
- [Bug] How to resolve "Multiple segmentation representations detected for this tool group. The first one will be used." HOT 1
- [Bug] First image rendered by the volume loader is not the first instance in series HOT 2
- [Bug] fix(metaData Types): change { any } to any type HOT 1
- [Bug] StackViewport.setImageIdIndex should set this.targetImageIdIndex too HOT 2
- Image display blur
- Rendering .nii file error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cornerstone3d.