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

ConvertService API improvements #383

Open
imagejan opened this issue Apr 30, 2020 · 0 comments
Open

ConvertService API improvements #383

imagejan opened this issue Apr 30, 2020 · 0 comments

Comments

@imagejan
Copy link
Member

For some conversions, it would be useful if we were able to hand over some optional parameters, e.g. to specify if a conversion from UnsignedShortType to UnsignedByteType should clip or not, or if a conversion to ImgLabeling should add prefixes to the labels, and if yes, which prefix.

How about a new signature:

ConvertService#convert(Object src, Type dest, Options options)

where these options could be specified?


Maybe this could even help in distinguishing between lossless and lossy conversions? (See also #288.) Although for this we might also need:

ConvertService#supports(Object src, Type dest, boolean lossless)

or

ConvertService#isGuaranteedLossless(Object src, Type dest)

/cc @frauzufall @ctrueden

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