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

ENH: remove or rework insufficient rgb support ? #633

Closed
wants to merge 3 commits into from

Conversation

ncullen93
Copy link
Member

@ncullen93 ncullen93 commented May 15, 2024

The ConvertScalarImageToRGB function from ANTs cannot be wrapped due to some unsolvable errors. RGB images are basically insufficiently supported in antspy right now. The easiest option would be to remove rgb support and treat any such images as vector images. Otherwise they need better support.

The main question is whether rgb images are useful for anything other than visualization? The plotting part is already handled by matplotlib colormaps, so if not then they should probably be removed.

@ncullen93 ncullen93 changed the title FIX: wrap ConvertScalarImageToRGB ENH: remove unused rgb support ? May 16, 2024
@ncullen93 ncullen93 changed the title ENH: remove unused rgb support ? ENH: remove or rework insufficient rgb support ? May 16, 2024
@coveralls
Copy link

Coverage Status

coverage: 81.329% (+0.5%) from 80.836%
when pulling 09c7134 on wrap-convertscalartorgb
into 9266f2f on master.

@cookpa
Copy link
Member

cookpa commented May 16, 2024

RGB does provide some extra functionality for some filters in the RGB space. I don't use them myself, though.

What I would like to have is the ability to write a vector image as an RGB or RGBA file.

@ntustison
Copy link
Member

Thanks @ncullen93 . I don't think I've ever used this functionality through ANTsPy. I'm fine with removing it for now and perhaps revisiting once RGB support has expanded.

@ncullen93 ncullen93 closed this May 17, 2024
@ncullen93 ncullen93 deleted the wrap-convertscalartorgb branch May 17, 2024 11:32
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

Successfully merging this pull request may close these issues.

None yet

4 participants