Skip to content

ENH: Add LineSegment + Sequence + Box classes, to be returned by segment algorithms #49

Closed

Description

@NickleDave

as discussed here: #40 (comment)

We want to group segmentation algorithms in term of their outputs. Either they give us a sequence of (line) segments, or they give us a set of bounding boxes.

I'm realizing that since a segmenting algorithm that returns (line) segments usually returns a sequence of them, we need a Sequence class too. And I guess the analogy for an algorithm that returns boxes would be a set of boxes (a "set" because there's no ordering).

I know this means re-inventing something that's already in crowsetta (a Sequence of Segments). But I want the two packages to be independent--you shouldn't need vocalpy to use crowsetta.

Activity

  1. added
    ENH: enhancement
    on Sep 18, 2023
  2. NickleDave commented on Sep 19, 2023

    @NickleDave
    ContributorAuthor

    See #51 -- I think we don't want this class used by segment algorithms, that should instead return a Sequence or a BoxSet. But we will want a LineSegment class for an ORM that builds a dataset of sequences, because there we will need to have a more OO-like representation of each individual segment as a row in a database table.

  3. added
    Segmentation
    on Sep 21, 2023
  4. NickleDave commented on Feb 12, 2024

    @NickleDave
    ContributorAuthor

    Closing, superceded by #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ENH: enhancementSegmentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions