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

Pixelated contours preferred #86

Open
sunyu0410 opened this issue Mar 17, 2023 · 0 comments
Open

Pixelated contours preferred #86

sunyu0410 opened this issue Mar 17, 2023 · 0 comments

Comments

@sunyu0410
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant