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

WIP: Add static member, itk::Image::CreateInitialized(const RegionType &) #4599

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Apr 19, 2024

  1. ENH: Add static member, Image::CreateInitialized(const RegionType &)

    Aims to simplify creating an image with an allocated buffer of zero-initialized
    pixels.
    N-Dekker committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    6589f2d View commit details
    Browse the repository at this point in the history
  2. STYLE: Use Image::CreateInitialized(const RegionType &) in tests

    Replaced more than sixty cases of code like:
    
        auto image = ImageType::New();
        image->SetRegions(region);
        image->AllocateInitialized();
    
    with the following single statement:
    
        auto image = ImageType::CreateInitialized(region);
    
    in ITK test files ("itk*Test*.cxx").
    N-Dekker committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    a8ac2f1 View commit details
    Browse the repository at this point in the history