Giter VIP home page Giter VIP logo

dicomviewerlib's People

Contributors

dependabot[bot] avatar fourctv avatar re4388 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

Watchers

 avatar  avatar  avatar  avatar

dicomviewerlib's Issues

import { DICOMViewerComponent } from 'dicomViewer';

ERROR in ./src/app/app.component.ts
Module not found: Error: Can't resolve 'dicomViewer' in '/home/junior/dev/@Angular/dicomViewerLib/src/app'

ERROR in src/app/app.component.ts:2:38 - error TS2307: Cannot find module 'dicomViewer' or its corresponding type declarations.

2 import { DICOMViewerComponent } from 'dicomViewer';
                                       ~~~~~~~~~~~~~
src/app/app.module.ts:9:35 - error TS2307: Cannot find module 'dicomViewer' or its corresponding type declarations.

9 import { DicomViewerModule } from 'dicomViewer';

Regarding MPR

Dear Juli, If you add MPR tool it will be very useful. Without mpr this viewer library just a basic Viwer. Kindly make a ground level work and implement mpr into this viewer. Kindly advise.

i want to get files from API

hello i have a problem with dicomViewerLib i want to add files to library from API i have i URL for files not from input file,
can any one help me ?

Compilation Failing in Angular14

Hello,

I tried adding the dependencies for DicomViewerModule and tried importing it

for import { DicomViewerModule } from 'ng-dicomviewer';

But the compilation fails

image

Any idea, how to resolve this or this is an incompatibility issue with angular14.0?

Regards
Jithu

Is there any option to save the dicom image (canvas element)?

var link=document.getElementById("linkuse");
const uri=(document.getElementsByClassName("cornerstone-canvas")[0] as any).toDataURL('image/png',0.85);
(link as any).href = uri;
(link as any).download = "imageop";
(link as any).click();
var blob = this.dataURItoBlob(uri);
saveAs(blob,"newoneds");

dataURItoBlob(dataURI) {
// convert base64 to raw binary data held in a string
// doesn't handle URLEncoded DataURIs - see SO answer #6850276 for code that does this
var byteString = atob(dataURI.split(',')[1]);
// separate out the mime component
var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0]
// write the bytes of the string to an ArrayBuffer
var ab = new ArrayBuffer(byteString.length);
// create a view into the buffer
var ia = new Uint8Array(ab);
// set the bytes of the buffer to the correct values
for (var i = 0; i < byteString.length; i++) {
ia[i] = byteString.charCodeAt(i);
}
// write the ArrayBuffer to a blob, and you're done
var blob = new Blob([ab], {type: mimeString});
return blob;
}

I used the above code. But it is not working for me. Can you please check this?

Feature needed

Dear sir,
I am impressed with your work on this project, Kindly implement MPR basic version to really successful project.

Viewer not loading

Followed all the steps which you have mentioned in the repo but I am facing the below error.

image

Error while trying to load a DICOM image using dicomViewerlib

I am new to Angular and I am facing an issue while trying to load a dicom image using ng-dicom viewer component ; I get this error :
ERROR TypeError: Cannot read property 'resetAllTools' of undefined
As well as Tools Icons are not visible
can you help me please !

Compatibility for Angular 9

Dear Fourctv,
Will this package can be used in angular 9?
Advise on it, because of ivy rendering in angular 9 I feel it will perform better.kindly advise.

JPEGLS DCM file not opening with error.

I uploaded images via http and loaded it demo app. It is showing
Uncaught RangeError: Array buffer allocation failed
at new ArrayBuffer ()
at CharLS (VM4 cornerstoneWADOImageLoaderCodecs.js:5)
at initializeJPEGLS (VM3 cornerstoneWADOImageLoaderWebWorker.js:619)
at decodeJPEGLS (VM3 cornerstoneWADOImageLoaderWebWorker.js:627)
at decodeImageFrame (VM3 cornerstoneWADOImageLoaderWebWorker.js:222)
at Object.handler (VM3 cornerstoneWADOImageLoaderWebWorker.js:1069)
at ./webWorker/webWorker.js.self.onmessage (VM3 cornerstoneWADOImageLoaderWebWorker.js:1241)
download_20200731_145113

Next/Previous Image buttons (in toolbar) not working for few anonymized DICOM files

For anonymized DICOM files in which patient name metadata is removed completely (not just replaced by another anonymized name string), the next/previous image buttons do not work as expected. This is happening because the code to display an image (in cornerstone.directive.ts) always treats patient name as non-empty and apply a string operation on that. Patient name metadata should be checked for non-empty string before applying any operation on it.

Mobile responsive?

Is there going to be a version where we can use this dicom viewer on mobile screen ?
cornerstoneTools.wwwcTouchDrag.activate(this.element) // - Drag
cornerstoneTools.zoomTouchPinch.activate(this.element) // - Pinch
cornerstoneTools.panMultiTouch.activate(this.element) // - Multi (x2)
All these are not working for mobile

Image rendering slowness in Angular

Dear sir,
We used your project inside a angular app for preview image, but images loading inside viewer is slow since same back end server images are loading fine and faster in OHIF viewer and Weasis viewer but loading slower in this viewer and we found the the reason is when executing this code line cornerstone.enable(element); makes cpu usage 100%.
So due to this images loading to view slower.
how to resolve the 100% cpu usage while enable the above line.

Notes : We use the viewer inside the angular as Dynamic Tab model.

"cornerstone": "^0.1.1",
"cornerstone-core": "^2.3.0",
"cornerstone-math": "^0.1.9",
"cornerstone-tools": "^5.1.2",

Angular version : 10

Urgent_web app not responding for bigger 2 or 3 MB DICOM files

Dear sir,
When we try to open 2 or 3 MB DICOM CT images it is not getting loaded and makes page unresponsive.
But the same images loading fine in OHIF viewer and others.
angular dicom viewer fourcetv error
I do not have options to send those DICOM files here but I have attached screen shot.
It is becoming serious issues

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.