-
Notifications
You must be signed in to change notification settings - Fork 9
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
Upgrade itk vtk viewer and add switch widget tab #50
base: master
Are you sure you want to change the base?
Conversation
Deploy preview for kaibu ready! Built with commit 8cb5495 |
@oeway awesome!
Does this provide the desired behavior? |
@thewtex The new option I have another minor issue about the UI, the part for contrast stretching is currently collapsed by default, how make it open by default? |
This should not be the case, hopefully it is addressed by Kitware/itk-vtk-viewer#364 . If it is still persistent, would could add an API function to programmatically select a layer. |
@thewtex Basically, made a multiScaleImage by first read the jpg image from url with:
Then convert the itkImage with
It should work according to here, however, I still go the reddish color map. |
@oeway this looks correct. |
@thewtex For some reason, I still get red image with the latest version |
@oeway with this patch, the result is: |
@thewtex Yes, it works now! One last request for this PR, it seems the the contrast stretching panel is still collapsed by default, but I remembered you already fixed it? |
@thewtex Any idea on why it's still red when using pixelType 14 and itk-vtk-viewer v11.1.4? |
I am digging into this. I will get WASM debugging going in the process. |
@thewtex Great! Please keep me posted, I would like to merge this issue after you fixed it! |
@thewtex After upgrading to |
@oeway thanks for the note. This branch should address this: Kitware/itk-vtk-viewer#379 , but we have to merge / publish before it can be tested. |
HI @thewtex Thanks for the fix, I can now load it, the independent components are shown, the collapse bug also being fixed! However, when I use pixelType=14, I got this gray image, I guess I will need to call |
Hi again @thewtex I am trying to set the Color map with the following lines:
But this failed because this error:
I try to dig into it, but found I could not do npm link and test it with my local itk-vtk-viewer repo anymore because of an error:
No idea how to proceed now, maybe you can take a look? I thought I might found something, in the case of RGBA, we have 4 components, but we only handle the case of 3: https://github.com/Kitware/itk-vtk-viewer/blob/6b51d86ba26592471ff32b4e6bc31a56d56b3d93/src/UI/Layers/createLayersUIMachine.js#L165-L177 And also, for the alpha channel, is there a color map that for the transparency mask? Or we simply ignore it? |
Hi @oeway :-) When I try to
Does this ring a bell?
Yes, |
Hi, I just tried and I do get this error, I saw it before. And I can fix it by change the `"ecmaVersion" from 6 to 11. However, when I switch back to 6 again, I cannot reproduce it. Could you try to pull from my branch and test it again? Thanks! |
This PR aims to integrate the changes in the itk-vtk-viewer, to enable support for multi-scale images.
The main issue for now is the coordinate system is not in sync with openlayers after the upgrade, it appears to be the origin position issue (the y axis are reversed). @thewtex Any tips for fixing this?