Reload cornerstone image stack

256 views
Skip to first unread message

7zelle7

unread,
May 19, 2016, 11:38:08 PM5/19/16
to cornerstone platform
Hi,

I am having a problem loading a new cornerstone image stack.

What I actually do is:

Call via Ajax the server and get a new Image Array
Display it wit with cornerstone

That works well, as long as I don't call a second time. Then the new image stack is loaded but it seems the new images are not simply loaded, they are somewhere added to the existing stack. With adding, I mean, the values are added to the old values resulting in a very light new image.

I am not using load and cache, only load image. I am disabling and enabling the HTML element on every call. I also tried cornerstone purge cache, although I am not using the cache. That does all not help.

I tried a lot clearing every object in the image loader and so on, but could not find the problem.

Does anyone know how I have to reset cornerstone between loading a new image?

jamesa...@gmail.com

unread,
May 19, 2016, 11:43:48 PM5/19/16
to cornerstone platform
I modified the cornerstoneTools stack example to load images from links in a json file. I just set the imageid's (array with the links to images) length to 0, erasing what is already in there and just reassigning it with the values from the json file.

7zelle7

unread,
May 20, 2016, 11:10:36 AM5/20/16
to cornerstone platform

Thanks for the help, but that also, did not work for me. Maybe I will use an iframe for the cornerstone viewer.

Diego Angulo

unread,
May 20, 2016, 1:59:58 PM5/20/16
to cornerstone platform
Could it be a problem with the window width and center?

7zelle7

unread,
May 20, 2016, 2:25:41 PM5/20/16
to cornerstone platform
Not, I think not. It works for every image if this image is the first image to be shown. And starting with the second image I get problems.

Diego

unread,
May 20, 2016, 2:59:59 PM5/20/16
to 7zelle7, cornerstone platform
My experience is that cornerstone sets the window automatically for the first image, and it will keep that window after you change the image. You could try adjusting the window on the second image to see if you get a correct image.

--
You received this message because you are subscribed to a topic in the Google Groups "cornerstone platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cornerstone-platform/Hcl09Ci9FSA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cornerstone-plat...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cornerstone-platform/b4529ec1-8295-4187-bcad-a31798b1a5ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dung Bui

unread,
Oct 16, 2020, 10:47:58 AM10/16/20
to cornerstone platform
@7zelle7: I ran into the same problem. Can you please share your solution?

Thanks,
Tom

Reply all
Reply to author
Forward
0 new messages