qurit / qurit/rt-utils

Pixelated contours preferred

Open
#86 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
256
Forks
75
PR merge metrics
No merged PRs in 30d

Description

Dear authors,

Thank you for creating this excellent light-weight tool for converting into RTStruct.

One thing we notice is that the current contours are smoothed. In most cases, the centres of voxels are connected (corners excluded). This is fine in most cases, but in some scenarios, we want the exact contour as the mask, i.e. full voxel coverage without any smoothing. We've done some tests using rasterio to create the contour coordinates (instead of using cv2.findContours) and it's doing as expected. It will be good to have a mode that preserve the pixelated corners.

Can I make a pull request to include this mode?

Thanks,
Yu Sun

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 current use of cv2.findContours and compare its contour output with the rasterio-based coordinates described in the issue. Define how the new mode is selected, then verify that pixelated corners and full voxel coverage are preserved without changing the existing smoothed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
computer-vision
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.