Skip to content

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.

License

Notifications You must be signed in to change notification settings

HFJingchuang/ANTsPy_gpu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • for GPU base on branch v0.4.2

Samples

    # 图像配准
    seg_gary = cv.cvtColor(seg, cv.COLOR_BGR2GRAY)

    template_gary = cv.cvtColor(_template_clor, cv.COLOR_BGR2GRAY)
    _template_gary = template_gary.copy()

    moving_image = seg_gary.reshape((width, _h), order="F")
    fixed_image = template_gary.reshape((width, _h), order="F")

    cudaRegistration = utils.get_lib_fn("cudaRegistration")
    Gc = cudaRegistration(fixed_image, moving_image)

    ants_img = Gc.reshape((_h, width), order="F")

    fixed_image = _template_gary.astype(np.uint8)
    ants_img = ants_img.astype(np.uint8)

About

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 65.5%
  • C++ 32.0%
  • Shell 1.5%
  • Batchfile 0.3%
  • CMake 0.3%
  • C 0.2%
  • Other 0.2%