Here is a first cut
fix(ImageData): support directions
Provide initial support for imageData having directions for its axes. The image Mapper has been modified to take them into account while the volume mapper has not. The ImageGridSource allows you to set the directions.
5条回答 默认 最新
- 点赞 评论 复制链接分享
- weixin_39978444 2020-12-26 15:47
In the documentation, it will be helpful to clarify if the direction array should be row-major or column major, and what the equation for index to world coordinates are.点赞 评论 复制链接分享
- weixin_39966053 2020-12-26 15:47
Any advice on how to handle this with algorithms like marching cubes? Since I am am in debugging mode for MC, this would be a good time to add axes support and develop some basic patterns for image algorithms to follow....
On Thu, May 25, 2017 at 2:09 PM, Matt McCormick wrote:
https://github.com/martinken very nice!
In the documentation, it will be helpful to clarify if the direction array should be row-major or column major, and what the equation for index to world coordinates are.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Kitware/vtk-js/pull/260#issuecomment-304081590, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMMcvth92PIsjIBmCiBOTRSU2f-g_ssks5r9cPtgaJpZM4NmqzY .
-- William J. Schroeder, PhD Kitware, Inc. - Building the World's Technical Computing Software 28 Corporate Drive Clifton Park, NY 12065 will.schroeder.com http://www.kitware.com (518) 881-4902点赞 评论 复制链接分享
I added methods to do conversions as well as to provide the transform matrix. For marching cubes I suspect the best bet is to get the indexToWorld directions and use those local basis vectors in computing the world coords from ijk. But I haven't tried it yet in a filter.点赞 评论 复制链接分享
Yup good ideas. I'll amend this commit based on folks feedback.点赞 评论 复制链接分享