-
Notifications
You must be signed in to change notification settings - Fork 213
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
MIP method of thicknessMethod probably don't consider the current slice orientation #392
Comments
Interesting, so I guess the normal is not set properly anymore at: https://github.com/FNNDSC/ami/blob/master/src/shaders/shaders.data.vertex.js#L8 It only works in 1 direction right? Maybe we must also attach the normals here: https://github.com/FNNDSC/ami/blob/master/src/geometries/geometries.slice.js#L113 or call Can you call '.computeVertexNormals () ' then '.normalizeNormals ()' on the buffer geometry of the slice in your code .to see if that helps? |
Thanks for the rapid response. |
Ok. After some tries, I think the problem in my case is not caused by the normal vector not updated. |
I've generated a fake dicom file (with coronal direction stack). It has black-white stripe image at odd index, and whole gray image at even index. So if the MIP is correctly applied, the expected result should be gray-white stripe image. But the behavior is that the white area expands as the thickness increases. The result can be viewed at https://codesandbox.io/embed/ami-lesson-03-tz610. |
I am struggling with this issue. I am wondering if this issue has been resolved. |
Hi,
Thanks for the reply. I used that method, but it didn't work though I don't
know if I called the function properly. In my code, what I did:
this.stackHelper.orientation = this.camera.stackOrientation; // Change orientation
this.stackHelper.slice.geometry.computeVertexNormals(); // As suggested
this.stackHelper.slice.thickness = 5.1; // Change slice thickness
After this, the issue is not resolved.
I tested this on the lesson in GitHub (https://codesandbox.io/s/github/FNNDSC/ami/tree/master/lessons/03) as well.
I added the following to the end of the code. It seems that the thickness
change works well in axial, but not in coronal and sagittal orientations.
stackFolder
.add(stackHelper.slice, 'thickness', 0, 30)
.step(0.3)
.listen();
I am wondering if you know how to resolve the issue.
Thanks,
Ikkyun
…On Sat, Feb 13, 2021 at 11:41 AM omerravid ***@***.***> wrote:
I am struggling with this issue. I am wondering if this issue has been
resolved.
the solution is to call the following after updating the slice direction
plane:
stackHelper.slice.geometry.computeVertexNormals()
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#392 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADUG2WMWK36YXUUPD7HMELLS622TXANCNFSM4IRNFI3Q>
.
|
Description
When using MIP method (default thickness method with some >0 thickness slice setting) with non-axial slice, it displays some repeated pattern. It seems like the direction that max intensity is calculated is not perpendicular to the slice plane. I am not sure if this is the expected result of MIP, or it is really a bug.
For example, this is a part of coronal view without MIP method (slice thickness = 0)
And when MIP method is turned on, the pattern are repeated (and there is no such problem in the axial view).
Live Demo
Similar behavior can be found in the geometries slice example.
Set thickness to some value > 10. In some direction, you would see some ripple-like pattern and the bright area seems expanded.
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: