Comments (16)
I tried that example and it worked locally now
Based on your error it is complaining that the init on crosshairs has not been called, which is called on active, passive, enabled modes. Maybe put a debugger at init and debug line by line to see if the toolCenter is calculated
from cornerstone3d.
@Celian-abd Which example are you trying to run?
from cornerstone3d.
I am trying the crossHairs one.
from cornerstone3d.
When I log my crosshairtool object in the console I can see the toolCenter with coordinates that are the same as my image center coordinates.
from cornerstone3d.
So does it actually get inside the init function? Can you provide the source code you are using?
from cornerstone3d.
So here you have the main code where I create the toolgroup and add it all the tools : https://github.com/Pixilib/Dat_Scan_Viewer/blob/main/datscan/src/components/ViewerVolumeRoot.js#L100
And here is my component where I activate the CrossHair : https://github.com/Pixilib/Dat_Scan_Viewer/blob/main/datscan/src/components/tools/coordsOnCursor.js#L247
from cornerstone3d.
you should do the toolInit before adding tools https://github.com/Pixilib/Dat_Scan_Viewer/blob/main/datscan/src/components/ViewerVolumeRoot.js#L107
from cornerstone3d.
Yes this was only a test, but initially the Toolinit was before adding tools and the error was the same.
from cornerstone3d.
I've updated my code
https://github.com/Pixilib/Dat_Scan_Viewer/blob/main/datscan/src/components/ViewerVolumeRoot.js#L99
Changing slice thickness with the crosshair is working but not rotating.
from cornerstone3d.
what is the recipe for running your app (project)?
from cornerstone3d.
Hi Alireza, it is a simple Create-React-App,
from the repository go to "datscan" folder and then npm install and npm start.
in the opening webpage you will have a drop zone to drop you dicom files to load them in the volume viewer.
thanks for you help,
Salim
from cornerstone3d.
@Celian-abd Is there any specific reason you are using the /dist/esm for the imports? The bundler should automatically use that and you don't need to directly import from each folder
from cornerstone3d.
@sedghi No specific reason, I was using a VS Code extension to automatically import but it was indeed a mistake. I just cleaned all the imports.
Code : https://github.com/Pixilib/Dat_Scan_Viewer/blob/main/datscan/src/components/ViewerVolumeRoot.js
Still did'nt find how to fix the rotation though.
from cornerstone3d.
I think you are not setToolEnable for crosshairs here https://github.com/Pixilib/Dat_Scan_Viewer/blob/main/datscan/src/components/ViewerVolumeRoot.js#L207
I have more time later in the week to run your code.
On a separate note, the createAndCache
does not load the volume, it just allocated memory, so I don't think you should add your segmentation for
from cornerstone3d.
I've already tried to setToolEnable
before setToolActive
but the result is the same.
from cornerstone3d.
Solve with lastest version.
from cornerstone3d.
Related Issues (20)
- [Feature Request] Generate DRR (digitally reconstructed radiograph) from CT
- [Bug] The more versions is increased, the more buggy it is! HOT 4
- [Bug] Using image scrolling will increase the memory footprint constantly
- [Bug] resolve segment data errror
- [Bug] I update my dependencies to 1.68.0. and when I did addSegmentationRepressetation action, the image went wrong. HOT 1
- [Bug] Can't set lineWidth for ProbeTool HOT 2
- [Feature Request] about segmentation detail
- [Bug] Image does not load on Android mobile device
- [Bug] Volume viewports not working on ios HOT 1
- [Feature Request] yarn example with port HOT 1
- [Bug] Dependency conflict with vtk when installing latest version (1.68.1) HOT 1
- [Bug] segmentation mismatch on mpr view HOT 1
- [Bug] how to load multi series 4D
- First loaded frame is always the "next frame" for multiframe images with wadouri.
- [Bug] Cannot destructure property 'pixelRepresentation' of .get(...)' as it is undefined
- [Bug] out of memory int16Array@[native code]
- [Bug] GPU rendering adds padding to MRI images HOT 1
- [Bug] @cornerstonejs/tools/dist/types/utilities/getViewportForAnnotation.d.ts:2:141 - error TS2307: Cannot find module 'packages/core/dist/types/types' or its corresponding type declarations. HOT 4
- [Feature Request] How to rotate labelmap segmentation HOT 4
- [Feature Request] How to display Contour Segmentation in SAGITTAL?
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.