User Tools

Site Tools


Sidebar

Top
Profile
Seminar
Courses -2016
Courses 2018-
Textbooks
Documents
Downloads (-2016)
Downloads (2016-)
Weblog
RSS aggregates
Discussions
Archives


EMBL BioImage Data Analysis

EuBIAS

NEUBIAS

—- Contact
CMCI Alumni
ALMF
EMBL Heidelberg
EMBL Intranet


Popularity Ranking


Timeline of @cmci_

cmci_ avatar

RT @LauLauThom: Just updated the Roi 1-click tools with a cool feature 🥳 Keep the left-click maintained to preview the roi and adjust its p…
About 1 day, 20 hours ago by: Kota Miura (@cmci_)

cmci_ avatar

@KuglerElisabeth @martinjones78 @dgaboriau @WilsonAdams_ @focalplane_jcs @AcademicChatter @NEUBIAS_COSThttps://t.co/V7G5Ibfe28
About 2 days, 8 hours ago by: Kota Miura (@cmci_)

cmci_ avatar

RT @KuglerElisabeth: How can #developers help wet lab #scientists to use their analysis approaches? What's your thoughts? Interesting que…
About 2 days, 8 hours ago by: Kota Miura (@cmci_)

cmci_ avatar

RT @paqio: Exciting new all-optical data, fresh off a new prototype! Showing off beautiful holographic optogenetic activation of the cir…
About 3 days, 17 hours ago by: Kota Miura (@cmci_)

cmci_ avatar

thank you, thank you, and thank you! https://t.co/RUJ9XQiLQI
About 5 days, 11 hours ago by: Kota Miura (@cmci_)

cmci_ avatar

Impressive https://t.co/mjCITcRC3Z
About 6 days, 9 hours ago by: Kota Miura (@cmci_)
documents:20190416ijmacro_passingarguments

Passing stdout to ImageJ / Fiji

In case you want to pass stdout to ImageJ macro headlessly, use getArgument.

For example, create a test macro like this and save it as test.ijm:

tt = getArgument();
print(tt);

Then the bash command for passing stdout to this macro headlessly is:

echo "hello" | (read arg; fiji --headless -macro test.ijm "$arg")

There could be more sophisticated ways, but the command above does work. For the command “fiji” to work, it should be set in your .profile or .bash_profile

alias fiji='/Applications/Fiji.app/Contents/MacOS/ImageJ-macosx'
… you need to change the path above according to the place where your Fiji resides.

The command could also be

echo "hello" | (read arg; fiji -batch test.ijm "$arg")

but it's slower somehow.

documents/20190416ijmacro_passingarguments.txt · Last modified: 2019/04/16 12:46 by kota