pial | Python Imaging Abstraction Library
kandi X-RAY | pial Summary
kandi X-RAY | pial Summary
Python Imaging Abstraction Library
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Crop the given image
- Parse crop
- Crop the image
- Return the offset from a crop option
- Get the size of an image
- Scale an image
- Scale image
- Scale the image
- Convert a number to an integer
- Write image to dest_fobj
- Get raw data
- Gets the ratio of the given image
pial Key Features
pial Examples and Code Snippets
Community Discussions
Trending Discussions on pial
QUESTION
I converted nifti file to vtk using python-implemented vtk. The main function was vtkMarchingCubes.
...ANSWER
Answered 2020-Mar-05 at 14:16VTK's MarchingCubes filter should produce triangles in the same coordinate system as the volume. The only issue is that the Nifti image also includes a coordinate system of the image, and VTK is probably not correctly using it. I'd guess there's a transform in the Nifti that VTK isn't properly using.
Try using either Slicer (slicer.org) or ITK-Snap (itksnap.org). They do better at maintaining coordinate systems for medical images.
QUESTION
I'd like to recreate a web version of FreeSurfer pial/white surfaces overlaid on T1.mgz similar to the first freeview image at https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/PialEdits_freeview. Using XTK I can get something that hints at that using advice from Othographic Projection in XTK. The code I used to create the image (along with kruft from multiple attempts) is below the image.
Is this possible with XTK or should I switch over to AMI.js (which has freesurfer surfaces and MGZ file formats on their roadmap but are not implemented)?
In either case, pointers to how to accomplish this would be appreciated.
Thanks.
...ANSWER
Answered 2018-Feb-12 at 08:50You can now do it in AMI (thanks to your PR: https://fnndsc.github.io/ami/#viewers_quadview)
Display intersection between a mesh and a plane
Post process the intersection to display the contours.
There are different techniques to display mesh/plane intersection:
- With a stencil buffer (https://github.com/daign/clipping-with-caps)
- Playing the the mesh opacity (https://github.com/FNNDSC/ami/tree/dev/examples/viewers_quadview)
All those techniques are computationally expensive at it requires 3 renders pass to display contours of 1 mesh and there may be a better approach but not sure what would be the best alternative.
HTH
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pial
You can use pial like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page