I would like to use some functionality of the ops in the context of a plugin (command). Like elaborated in the doc and other posts I us a service instance to access the ops:
@Parameter private OpService ops;
now when I call for instance some threshold method
Img<BitType> bw = (Img<BitType>) ops.threshold().huang(sec);
… I have to cast the output from Object to Img (and the syntax checker complains that it is a unchecked cast). However, there would be a function signature correponding to the call that is matching my call:
<T extends RealType<T>> Img<BitType> huang(Img<T> in)
I must be doing something wrong… any ideas?