Suppress printing of MIJ output

조회 수: 2 (최근 30일)
JWall
JWall 2017년 5월 1일
답변: Kevin Gleason 2017년 5월 4일
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에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by