Login  Register

Re: Can ImageJ GUI (not library) be embedded into C++ somehow without rewriting the GUI?

Posted by Fred Damen on May 24, 2018; 5:23pm
URL: http://imagej.273.s1.nabble.com/Can-ImageJ-GUI-not-library-be-embedded-into-C-somehow-without-rewriting-the-GUI-tp5020715p5020731.html

Greetings Bob,

This sounds perfect for a future project of mine.  Would you happen to have an
example of passing in / returning an ImagePlus; even code snippets would be
greatly appreciated, even if it is just the ImageProcessor, etc.

Thanks in advance,

Fred

On Wed, May 23, 2018 3:40 pm, Robert Dougherty wrote:

> Matti,
>
> I've had good luck in Windows with JNA.  I write the C++ parts as C functions
> and export them in a DLL. An interface maps the C functions to Java functions,
> and JNA seems to do a reasonable job of translating the arguments, which
> probably should be kept simple to avoid stressing it. I've been able to use
> openCV and several other libraries this way.
>
> Bob
>
> On May 23, 2018, at 12:41 PM, Matti Viljamaa wrote:
>
>> Hello,
>>
>> I want to use ImageJ in a C++ program. However, I found the GUI pretty
>> useful as it is, but since it’s in Java, then I’m not sure, whether I can
>> use it, because
>> my program has to be in C++.
>>
>> And I don’t want to rewrite the GUI, since it’s done already.
>>
>> What are my options?
>>
>> BR, Matti
>>
>> Lähetetty Windows 10:n Sähköpostista
>>
>>
>>
>> ---
>> This email has been checked for viruses by Avast antivirus software.
>> https://www.avast.com/antivirus
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> Robert Dougherty, Ph.D.
> President, OptiNav, Inc.
> 1414 127th Place NE #106
> Bellevue, WA 98005
> Tel. (425)891-4883
> FAX (425)467-1119
> www.optinav.com
> [hidden email]
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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