Git Product home page Git Product logo

Comments (12)

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

Even if I clone right version of cached images getPixelData() return wrong values.

from cornerstone3d.

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

I fixed this by saving the same data separately in the cache, but adding symbols for the VolumeViewport to the imageId. I also have to make a fake metaDataProvider to take metadata from the original imageId. Thus, VolumeViewport edits imageIds created specifically for it, but does not touch the original ones for StackViewport. But this is more of a hack than a solution.

from cornerstone3d.

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

@sedghi Can you explain, please?

from cornerstone3d.

sedghi avatar sedghi commented on August 18, 2024

For conversions use the new convertStackToVolumeViewport and vice versa utilities

packages/core/src/utilities/convertStackToVolumeViewport.ts

from cornerstone3d.

jlopes90 avatar jlopes90 commented on August 18, 2024

For conversions use the new convertStackToVolumeViewport and vice versa utilities

packages/core/src/utilities/convertStackToVolumeViewport.ts

#1045

from cornerstone3d.

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

For conversions use the new convertStackToVolumeViewport and vice versa utilities

packages/core/src/utilities/convertStackToVolumeViewport.ts

Somehow it is possible to create 3 orientations at once from one "viewport"? This is some very inconvenient function in my case.

from cornerstone3d.

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

And another problem is that my element is changing. And during conversion, the viewport will refer to the previous element.

from cornerstone3d.

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

@sedghi Is it possible to change element of existing viewport?

from cornerstone3d.

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

@sedghi I did it with this utilities and my stack viewport still pixelated and now my VolumeViewport become pixelated after I switch viewport from Stack to Volume two times.

from cornerstone3d.

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

The more I switch, the larger(?) the pixels become, as if something isn't being undone each time and the calculations are being based incorrectly.

from cornerstone3d.

sedghi avatar sedghi commented on August 18, 2024

is this related to the other issue here? #1045 can we close this then?

from cornerstone3d.

Sergey1888888 avatar Sergey1888888 commented on August 18, 2024

I think yes

from cornerstone3d.

Related Issues (20)

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.