weixin_39718173
2020-12-26 15:47 阅读 0

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.

该提问来源于开源项目:Kitware/vtk-js

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

5条回答 默认 最新

  • weixin_39718173 weixin_39718173 2020-12-26 15:47

    Here is a first cut

    点赞 评论 复制链接分享
  • weixin_39978444 weixin_39978444 2020-12-26 15:47

    very nice!

    LGTM.

    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 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....

    Best, W

    On Thu, May 25, 2017 at 2:09 PM, Matt McCormick wrote:

    https://github.com/martinken very nice!

    LGTM.

    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

    点赞 评论 复制链接分享
  • weixin_39718173 weixin_39718173 2020-12-26 15:47

    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.

    点赞 评论 复制链接分享
  • weixin_39718173 weixin_39718173 2020-12-26 15:47

    Yup good ideas. I'll amend this commit based on folks feedback.

    点赞 评论 复制链接分享

相关推荐