question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'samplesPerPixel' of undefined

See original GitHub issue

This is an url from OHIF that works and is loading correctly in OHIF application.

const imageIds = ['wadors:https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs/studies/1.3.6.1.4.1.14519.5.2.1.3098.4963.326280635338660616706998482671/series/1.3.6.1.4.1.14519.5.2.1.3098.4963.202287948568406289093737485605/instances/1.3.6.1.4.1.14519.5.2.1.3098.4963.958421198232751376686173267385/frames/1']

But when I use the same url in my application, I get the following error:
(I get the same error with any wadors url)

Screen Shot 2020-12-03 at 5 27 07 PM

Any ideas about this?

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
swederikcommented, Dec 4, 2020

Hi there!

Good question, this is something we should clarify in the documentation.

In our case we are pre-populating the Cornerstone Metadata provider with the WADO-RS responses for each instance (we request it at the series level and then add it to the provider) before loading the image frames.

My guess is that you aren’t doing that, so you are loading the frame without any metadata available and Cornerstone has no idea how to decode the pixel data.

Using frame-level retrieval requires you to grab the metadata from somewhere else. Are you doing that?

On Thu., Dec. 3, 2020, 10:41 p.m. Facu Escobar, notifications@github.com wrote:

This is an url from OHIF that works and is loading correctly in OHIF application.

const imageIds = [‘wadors:https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs/studies/1.3.6.1.4.1.14519.5.2.1.3098.4963.326280635338660616706998482671/series/1.3.6.1.4.1.14519.5.2.1.3098.4963.202287948568406289093737485605/instances/1.3.6.1.4.1.14519.5.2.1.3098.4963.958421198232751376686173267385/frames/1’]

But when I use the same url in my application, I get the following error:

[image: Screen Shot 2020-12-03 at 5 27 07 PM] https://user-images.githubusercontent.com/6618677/101091491-fd8a5500-3596-11eb-8cc2-1748ff24dc1c.png

Any ideas about this?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cornerstonejs/cornerstoneWADOImageLoader/issues/348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEUMML4FGGYQZWGXMAN443STAAYDANCNFSM4UMSN3CA .

0reactions
acegankcommented, Sep 19, 2022

hi, @facuescobar ,can you resolve?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'samplesPerPixel' of undefined
This is an url from OHIF that works and is loading correctly in OHIF application. const imageIds = ['wadors:https://server.dcmjs.org/dcm4chee- ...
Read more >
Cannot read property 'image' of undefined - Stack Overflow
I am trying to build an application using react but I got an error saying "cannot read property 'image' of undefined".
Read more >
JSDoc: Source: geotiffimage.js - geotiff.js
@property {Array<number>} [bbox=whole image] the subset to read data from in ... 1 : samplesPerPixel;; const outArray = arrayForType(format, bitsPerSample, ...
Read more >
TwainImageInfoMBS properties - Monkeybread Xojo plugin
-1 can only be used if the application has set ICAP_UNDEFINEDIMAGESIZE to TRUE. (the plugin doesn't support undefined image size) (Read and Write...
Read more >
Google Groups
But I get an error that jpeg is still undefined even though I have added the ... an Uncaught TypeError: Cannot read property...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found