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.

AddLayer Multiple Images

See original GitHub issue

Hello, I wanted to know if it is possible to add multiple images to a layer, since I want to perform the CT / PET fusion, like this example: https://rawgit.com/cornerstonejs/cornerstone/master/example/layers/index.html

The thing is, this only allows a single image, and I would like to add a stack of data. let layer1 = cornerstone.addLayer( element, imagesLayer1, layer1Options.options );

I tried to get it to work but the addLayer method does not allow multiple images, any ideas or solutions?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
shanebenlolocommented, Nov 15, 2021

You may have an easier time duplicating the MPR view offered in OHIF:

91012743-ef3cac80-e629-11ea-9843-7707fb60ebf8

but have it render only one vtk viewport (the left view) rather than three. You can also remove the crosshairs if you wish. This should give a 2D view that you are looking for. This code will probably be much easier to write than the code required to get the layers api to work for this task.

1reaction
shanebenlolocommented, Nov 12, 2021

Is there a reason you need to perform fusion in the cornerstone viewport? If not, you can perform fusion using react-vtkjs-viewport. See this example for details https://react-vtkjs-viewport.netlify.app/fusion

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding multiple Image using Google Earth Engine
When defining you variable collection, you are selecting only the first image of your collection when entering .first().
Read more >
Map.addLayer - Earth Engine
Map.addLayer(image, rgbVis, 'Multi-band RGB image');
Read more >
Mapbox gl js - How to add multiple photo sources on a ...
I was wondering, is it possible to add multiple photo sources on the same layer in order to avoid this multiple layer creation?...
Read more >
Use layer masks to combine images
Start with a document that has at least two images, each on a separate layer. ... Click the Add layer mask button in...
Read more >
How To QUICKLY Combine Multiple Photos Using ... - YouTube
Get Matt's "Photoshop System" for over $100 off when you use the code FRO right here http://mattk.com/fro/ (one week only)Here is a video ......
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