Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescaling Image on 2 layers #596

Open
CredoSpero opened this issue Jun 24, 2022 · 0 comments
Open

Rescaling Image on 2 layers #596

CredoSpero opened this issue Jun 24, 2022 · 0 comments

Comments

@CredoSpero
Copy link

Hi! I am currently trying to display 2 images in layers onto an element. One is loaded through WADO Loader and the other is loaded through Web Image Loader. However, the images are of different sizes as such I am trying to use the use the cornerstone.rescaleImage(layer1, layer2) function to scale the two images to the same size. However, I am unable to run the function whenever I run the code, it returns cornerstone.rescaleImage is not a function.

I referred to a previous issue #440, where a user also had faced the same issue. Initially, I thought it could be because the images loaded from WebImageLoader have a spacing of undefined for its columnPixelSpacing and rowPixelSpacing as such, I have tried to add columnPixelSpacing and rowPixelSpacing properties to the image loaded from cornerstoneWebImageLoader in hopes to solve the issue but still, the error still returns that rescaleImage is not a function

Hope you could assist me with this issue as soon as possible as I am currently working on a project. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant