Project-MONAI / Project-MONAI/MONAI

Make generate_spatial_bounding_box more general

Open
#7,033 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature request
Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

Description

Describe the solution you'd like
generate_spatial_bounding_box transform is great to find bounding box for organs. However for tumors there would be multiple tumors.
util should return bounding box for each tumor

Describe alternatives you've considered
I have to:

  1. run connected components on tumor label.
  2. make a look for each component
  3. call the function to get bounding box with function filtering on that component

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the generate_spatial_bounding_box transform and its existing tests. Read how it currently handles a single labeled region, then define completion as returning a separate bounding box for each tumor component without requiring callers to split components and invoke the transform repeatedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.