Skip to content
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

PERF: MeanImageFilter faster, using BufferedImageNeighborhoodPixelAccessPolicy #1365

Merged
merged 2 commits into from Oct 31, 2019
Merged

PERF: MeanImageFilter faster, using BufferedImageNeighborhoodPixelAccessPolicy #1365

merged 2 commits into from Oct 31, 2019

Commits on Oct 30, 2019

  1. ENH: Add BufferedImageNeighborhoodPixelAccessPolicy for faster access

    Added `BufferedImageNeighborhoodPixelAccessPolicy`, for faster pixel
    access during neighborhood iteration.
    
    Unlike `ConstantBoundaryImageNeighborhoodPixelAccessPolicy` and
    `ZeroFluxNeumannImageNeighborhoodPixelAccessPolicy`, this new pixel
    access policy for `ShapedImageNeighborhoodRange` assumes that the pixel
    index of the selected neighbor is always within the buffered region of
    the image.
    N-Dekker committed Oct 30, 2019
    Configuration menu
    Copy the full SHA
    aea59ad View commit details
    Browse the repository at this point in the history
  2. PERF: Use ShapedImageNeighborhoodRange in MeanImageFilter

    Improved the performance of `MeanImageFilter::Update`
    by replacing its local `itk::ConstNeighborhoodIterator` variable by
    an `Experimental::ShapedImageNeighborhoodRange` variable, using the new
    `BufferedImageNeighborhoodPixelAccessPolicy`.
    
    ~40% reduction of the run-time duration was observed on a
    `filter->Update()` call, using VS2017, processing a 256x256x256 image.
    For a 1024x1024x16 image, the performance improvement appeared even higher.
    N-Dekker committed Oct 30, 2019
    Configuration menu
    Copy the full SHA
    19ce161 View commit details
    Browse the repository at this point in the history