Print Statements

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Print Statements

haider
Hello,

I recently developed an ImageJ plugin (https://github.com/haiderriazkhan/CANDLE-J <https://github.com/haiderriazkhan/CANDLE-J>) called CANDLE-J. CANDLE-J has its main interface written in Jython; but it also has components written in Java and C. The problem is that the ImageJ “Log” window does not print statements from the Java and C components.  I need the print statements to update the user about the progress of the program (the statements serve as kind of a progress bar). It would be nice to have them. Any help?

Best
Haider
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Print Statements

ctrueden
Hi Haider,

If you use ImageJ2 (e.g., Fiji -- http://fiji.sc/Downloads), then any
output to stderr (in the same process) should appear in a separate Console
graphical window.

Regards,
Curtis

On Wed, Jul 15, 2015 at 6:49 PM, haider riaz <[hidden email]>
wrote:

> Hello,
>
> I recently developed an ImageJ plugin (
> https://github.com/haiderriazkhan/CANDLE-J <
> https://github.com/haiderriazkhan/CANDLE-J>) called CANDLE-J. CANDLE-J
> has its main interface written in Jython; but it also has components
> written in Java and C. The problem is that the ImageJ “Log” window does not
> print statements from the Java and C components.  I need the print
> statements to update the user about the progress of the program (the
> statements serve as kind of a progress bar). It would be nice to have them.
> Any help?
>
> Best
> Haider
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Print Statements

Burger Wilhelm
In reply to this post by haider
Hello Haider,

I had similar needs about 2 years ago and put together some code to redirect the standard output streams in plain ImageJ (see https://list.nih.gov/cgi-bin/wa.exe?A2=IMAGEJ;6cbb8c7e.1302). The original code and documentation can still be found here: http://staff.fh-hagenberg.at/burger/imagej/index.html ("Redirect_System_Streams"). Perhaps it works for you (for Java output at least).

A more recent version is contained in the 'imagingbook' library (https://sourceforge.net/projects/imagingbook/) -- unfortunately SourceForge is down at the moment.

--Wilhelm

________________________________________
From: ImageJ Interest Group [[hidden email]] On Behalf Of haider riaz [[hidden email]]
Sent: Thursday, July 16, 2015 01:49
To: [hidden email]
Subject: Print Statements

Hello,

I recently developed an ImageJ plugin (https://github.com/haiderriazkhan/CANDLE-J <https://github.com/haiderriazkhan/CANDLE-J>) called CANDLE-J. CANDLE-J has its main interface written in Jython; but it also has components written in Java and C. The problem is that the ImageJ “Log” window does not print statements from the Java and C components.  I need the print statements to update the user about the progress of the program (the statements serve as kind of a progress bar). It would be nice to have them. Any help?

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