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

Implements find_objects #97

Closed
wants to merge 5 commits into from
Closed

Commits on Feb 4, 2019

  1. Implement find_objects for Dask Array

    Provides an implementation of `find_objects` that determines bounding
    boxes for each label in the image. Currently requires the user to
    specify the number of labels they would like to inspect. Raises a
    `NotImplementedError` if the user wishes to collect all bounding boxes
    for labels. Works by selecting the 1-D positions that correspond to the
    label while ignoring all other points. Assumes that these positions
    along with an intermediate array of the same size comfortably fit in
    memory.
    
    Within a utility function, determines whether any positions were found
    for the corresponding label. If not, simply returns `None`. If positions
    were found, it manually unravels the positions and finds the maximum and
    minimum positions along each dimension. These are stored into `slice`s,
    which are packed into a `tuple` and returned. Makes sure to use in-place
    NumPy operations to avoid using additional memory.
    jakirkham committed Feb 4, 2019
    Configuration menu
    Copy the full SHA
    c6c36cf View commit details
    Browse the repository at this point in the history
  2. Test find_objects with some input data

    Try testing `find_objects` with some input data that includes labels
    within a chunk, labels that span across chunks, and labels that are not
    present. Compare the results of the dask-image function to that of the
    SciPy function to ensure they match.
    jakirkham committed Feb 4, 2019
    Configuration menu
    Copy the full SHA
    8680f07 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2019

  1. Configuration menu
    Copy the full SHA
    7ea6c45 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2019

  1. Configuration menu
    Copy the full SHA
    297cb55 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ceda72 View commit details
    Browse the repository at this point in the history