Re: Documentation about SciJava converters and SciJava ConvertService

Posted by ctrueden on
URL: http://imagej.273.s1.nabble.com/Documentation-about-SciJava-converters-and-SciJava-ConvertService-tp5018340p5018398.html

Hi Jónathan,

Excited to see you working on this. However, in this case, you might get a
better response on the ImageJ Forum (http://forum.imagej.net/), and/or on
the Gitter channels (https://imagej.net/Chat), since you are asking about
very developer-centric things.

I am sorry I have not had time to reply in depth to your questions, but I
am rather overwhelmed right now. There are quite a few people on the forum
familiar with the SciJava development paradigm though, and you all can
always @mention me if you really need my advice specifically.

Regards,
Curtis

--
Curtis Rueden
LOCI software architect - https://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - https://imagej.net/User:Rueden
Did you know ImageJ has a forum? http://forum.imagej.net/


On Tue, Mar 21, 2017 at 11:36 AM, Jónathan Heras <[hidden email]> wrote:

> Hi,
>
> we recently released a new version of IJ-OpenCV (
> https://github.com/joheras/IJ-OpenCV): a library with the aim of
> connecting
> ImageJ and OpenCV. In that development, we built our converters on top of
> SciJava converters, and used them to implement several ImageJ plugins.
>
> Currently, and following the advice of Curtis Rueden (
> https://github.com/joheras/IJ-OpenCV/issues/5), we are trying to
> reimplement our plugins using SciJava commands to gain the advantages of
> SciJava parametrized modules. To achieve this aim, I think that I need to
> refactor my development.
>
> I have found two projects where they are using SciJava converters and the
> SciJava ConvertService to connect ImageJ with other systems:
>
>    - ImageJ-Matlab (https://github.com/imagej/imagej-matlab) connecting
>    ImageJ and Matlab, and
>    - ImageJ-ITK (https://github.com/imagej/imagej-itk) connecting ImageJ
>    and ITK.
>
> However, I am not sure about the procedure that has been followed when
> developing those libraries. Up to now what I have understood is that the
> following steps are necessary:
>
> 1) Define an interface that extends the ImageJService with two methods:
>
>    - Mat getMat(Dataset dataset):  to convert a Dataset to an OpenCV image.
>    - Dataset getDataset(Mat mat): to conver an OpenCV image to a Dataset.
>
> 2) Implement the above interface with a class defined as a Service plugin.
>
> 3) Define the converter plugins using the above class.
>
> Then, everything should be ready to take advantage of SciJava parametrized
> modules, am I going in the right direction?
>
> Could you indicate me any documentation that I could follow to implement
> this functionality?
>
> Thanks in advance.
>
> Jónathan
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html