-
Notifications
You must be signed in to change notification settings - Fork 326
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
Image ordering is getting reversed in Stack viewport after Streaming Volume loading using WADO-URI #399
Comments
@sedghi , is there any solution for this issue ? |
Hey, can you explain what is happening? and what is your use case? Steps to reproduce? |
Overview : We load images in stack viewer while doing this the order of images is correctly rendered but after we create MPR in same element & switch back to stack view again the order of image is getting reveresed from original. Here are step to reproduce it Step 1: Create image ID array with WADO URI Step 2: Render the images in Satck viewport
Step 3: On clicking of button, we are loading MPR. SO for this we are switching STACK viewport to ORTHOGRAPHIC viewport
Step 4: On click of button we are switching back to STACK viewport from ORTHOGRAPHIC viewport
On switching back to stack view from MPR view we tried doing it by both ways either using image ids from volume viewport or using original imageIds variable We have also tried reversing the image id before rendering viewport Thanks |
This will help a lot, thanks for your explanation |
@sedghi |
not yet |
@idemopacs I believe the issue is that by default the volume is sorted by the patient position tag independent from imageId order. The solution would likely be to add a parameter to the volume to sort based on some orientation. Related: https://itk.org/Wiki/Proposals:Orientation |
I guess the problem is in this function |
I ran into the same problem when I converted volume and stack and 'getCurrentImageIdIndex' returned a different value. |
so i looked into this, doesn't relate to the PR mentioned in the description of the first issue. It was always there by design. So basically the question is where do we set the origin for a volume and by convention that is the [0,0,0] pixel in the world space, so since we sort image ids when we want to create a volume here then if we are going back to stack we should reverse the stack since now the order has changed. Hope this helps |
Image ordering is getting reversed in Stack viewport after Streaming Volume loading using WADO-URI
This is happening after PR 354
#354
Please see the attached example , I have changed example 'stackToVolumeWithAnnotations' from Tools library.
I am using latest version
stackToVolumeWithAnnotations.zip
The text was updated successfully, but these errors were encountered: