Open dietzc opened 9 years ago
I fear we need this for all lossless converters, yeah. I say "fear" because it might explode the number of method signatures in some cases too much. If that turns out to be the case, we can think about how to greenlight only certain converters as "causing" additional built-ins.
I say "need" because it will avoid a proliferation of ugly and unnecessary code in downstream components that call into the various hodgepodge of conversion, rather than leaning on the nice framework!
Example problem: Many operations require a
IterableInterval
orIterable
as input. However, eachRandomAccessibleInterval
can be converted to anIterableInterval
usingViews.iterable(...)
. In aNamespace
we should have methods which hide theViews.iterable(...)
call from the user (which makes their lives easier and the code more readable). This problem can be generalized to all situations where an object of typeA
can be converted to an object of typeB
using (scijava)Converter
.