Suppress printing of MIJ output

1 次查看(过去 30 天)
I am using MIJ so that I can call ImageJ plugins from Matlab. At some point in my code, I open images, use the plugin and then use the line: pixel_translation = MIJ.getResultsTable; This does save the results table into my desired variable, but it also for some reason prints the result to the Matlab command window, which is really annoying as the results table has hundreds of lines of numbers. Any way to prevent this?
Related, I have called Miji(false) in order to open ImageJ functionality without the gui. However, when I open images with Matlab (MIJ.run('Open...', image_name), the images still open. I am just trying to run an ImageJ plugin and get the numbers out of it into Matlab, so it would be ideal if I could do this without anything printing or opening at all!

采纳的回答

Kevin Gleason
Kevin Gleason 2017-5-4
One possible solution is wrapping the call in an "evalc" to capture all output. You can then suppress the output of the evalc call:
It might also be worth it to reach out to the author of the MIJ library.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by