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
Currently we can ask ConvertService whether a certain conversion is supported via:
convertService.supports(sourceObject, targetType)
It would be great to have some possibility to differentiate what degree of conversion is desired:
Conversion from any Object to String is possible (via toString()) but rarely lossless. Even for bidirectional cases like (File to String) and (String to File), this can be lossless but not always desired.
When running a script that has an Img input, but no image is currently available, we might ask the user to supply a File instead to then load the image from file. This (File to Img) conversion won't always work, but it would be nice if some service would support it in a failure-tolerant way upon request.
How about introducing different 'modes' of conversion, like STRICT, FLEXIBLE and INSISTENT?
The text was updated successfully, but these errors were encountered:
The lossy conversion from Dataset (or, in general, from any Object) to String is currently preventing me from providing a useful batch processing for Dataset, Img etc.: any module accepting String inputs will be recognized as "batchable", which is almost never what you want.
Knowledge about "lossiness" of a conversion would also be useful to allow choice of the best possible column type when post-processing module outputs, see scijava/scijava-table#5.
Currently we can ask
ConvertService
whether a certain conversion is supported via:It would be great to have some possibility to differentiate what degree of conversion is desired:
Object
toString
is possible (viatoString()
) but rarely lossless. Even for bidirectional cases like (File
toString
) and (String
toFile
), this can be lossless but not always desired.Img
input, but no image is currently available, we might ask the user to supply aFile
instead to then load the image from file. This (File
toImg
) conversion won't always work, but it would be nice if some service would support it in a failure-tolerant way upon request.How about introducing different 'modes' of conversion, like
STRICT
,FLEXIBLE
andINSISTENT
?The text was updated successfully, but these errors were encountered: