Coder Social home page Coder Social logo

webnamics / u-dicom-viewer Goto Github PK

View Code? Open in Web Editor NEW
151.0 5.0 62.0 24.84 MB

A simple web browser DICOM viewer for any device.

License: MIT License

HTML 0.48% CSS 0.11% JavaScript 99.41%
dicom viewer javascript cornerstonejs react medical-images dicomviewer universal-dicom-viewer dicom-viewer

u-dicom-viewer's People

Contributors

webnamics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

u-dicom-viewer's Issues

Suggestion for beginner

Hi,

Thanks for sharing your amazing viewer. I would like to learn to build a viewer like yours. I have followed the examples in cornerstone and seen other implementations but, as a beginner, it is quite difficult to understand them to develop my own viewer. I was wondering if you could please suggest any beginner tutorials on learning cornerstone from zero or learning to create your specific dicom viewer. Thank you!

[Open DICOMDIR] in the Viewer, does not import and show Dicom images in folder

Hi,
I want to upload a folder that contains some Dicom images. Unfortunately after uploading nothing happen without any images and just the alert box with this message appears in the viewer:

Upload 10 files to this site?
This will upload all files from "dicom_folder". Only do this if you trust the site.

After press uploads nothing import in the viewer for doing the rest of the process.

How can I solve this issue?
Thanks.

FreehandRoi -- Error

Hi,
I want to use u-dicom-viewer, but I have a problem after uploading dicom image, FreehandRoi have got error which part of it is:

1 of 2 errors on the page
TypeError: item.data.area is undefined
render
src/components/MeasureItem.js:109

106 | break
107 | case 'FreehandRoi':
108 | pText =

109 |

A: {item.data.area.toFixed(2)} mm²

| ^ 110 |
M: {item.data.meanStdDev.mean.toFixed(2)} {item.data.unit}

111 | < div> SD: {item.data.meanStdDev.stdDev.toFixed(2)} {item.data.unit}

112 |

Is it possible guide me to solve this issue?
Thanks

Parameter Json

Congratulations, very good. You can pass the information through a json for example. So you could open DICOM images stored on Amazon S3 for example.

Mobile swipe stack scroll

Thank you very much for this wonderful viewer,
I need to use in mobile, but i face some error;
Like;
Mobile stack scroll by swiping isn't functioning;
I tried modifying componentDidMount() function in DicomViewer.js file to apply swipe scroll
It scroll ok but but its enabled all the time.

componentDidMount() { //console.log('dicomviewer - componentDidMount: ') this.props.runTool(this) this.props.changeTool(this) cornerstone.events.addEventListener('cornerstoneimageloaded', this.onImageLoaded) const { dcmRef } = this.props dcmRef(this) this.layoutIndex = this.props.index var asd=this; document.getElementById(viewer-${this.props.index}).addEventListener("wheel", this.handlerMouseScroll) var elz = document.getElementById(viewer-${this.props.index}`);
var hammertime = Hammer(elz);
hammertime.get('swipe').set({ direction: Hammer.DIRECTION_ALL });
hammertime.on('swipe', function(ev) {
if(ev.direction===Hammer.DIRECTION_UP){
if (asd.shouldScroll) {
asd.props.listOpenFilesNextFrame();
}

    }else{
      if (asd.shouldScroll) { 
        asd.props.listOpenFilesPreviousFrame();
      }
    }  
  });


}`

Also choosing two vertical viewport "more suitable to mobile dimension" causes the upper toolbar to disappear.

And another question is there is a way to pass dicom files through url parameters like: ?url=""

I had met some problems when using this project, can someone help me?

hi,
here are the problems i had met.

  1. After i installed all dependencies in package.json and input command 'npm start', i got some error message :Module not found: Error: Can't resolve 'fs'...
  2. Also when i replayed a cine, i got some error message on web console: Uncaught TypeError: Cannot read properties of undefined (reading 'brhc')

How to build and run

Please help me as I am not aware of this technology.
How to run in own system build procedures.

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.