You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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
toUnsignedByteType
should clip or not, or if a conversion toImgLabeling
should add prefixes to the labels, and if yes, which prefix.How about a new signature:
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:
or
/cc @frauzufall @ctrueden
The text was updated successfully, but these errors were encountered: