Skip to content

Feature: improved image alpha channel handling#434

Open
barwojcik wants to merge 10 commits intofacebookresearch:mainfrom
barwojcik:feat/alpha-handling
Open

Feature: improved image alpha channel handling#434
barwojcik wants to merge 10 commits intofacebookresearch:mainfrom
barwojcik:feat/alpha-handling

Conversation

@barwojcik
Copy link

This PR improves image alpha channel handling in loading functions.

Changes

  • The load_and_preprocess_images and load_and_preprocess_images_square functions now returns alpha masks.
  • The load_and_preprocess_images and load_and_preprocess_images_square now support alpha blending onto white, black and ImageNet mean background.
  • Integrated alpha channel masking in demo_gradio.py, demo_viser.py and demo_colmap.py, now points that are at least 50% transparent won't be rendered.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant