User Tools

Site Tools


Sidebar

Top
Profile
Freelancing
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 @StifelCenter: A visual programming language for ImageJ that allows to create macros without any programming by just creating a flowchar…
About 1 week, 5 days ago by: Kota Miura (@cmci_)

cmci_ avatar

@naba_chatterjee @haesleinhuepf I'm afraid not
About 1 week, 6 days ago by: Kota Miura (@cmci_)

cmci_ avatar

Symposium Programme 2023: BioImage Data Analysis: Tools & Workflows in Life Sciences Deep Learning for Image Data… https://t.co/ZfjtsDdyFK
About 1 week, 6 days ago by: Kota Miura (@cmci_)

cmci_ avatar

Training School 2023 Introduction to bioimage analysis, tools, and workflows FAIR principles Cloud-hosted image da… https://t.co/FnzmoxI2Eb
About 1 week, 6 days ago by: Kota Miura (@cmci_)

cmci_ avatar

IN-PERSON #NEUBIAS training school and symposium! Deadline for the Training school on Wednesday... sorry for this b… https://t.co/8rbitWsBka
About 1 week, 6 days ago by: Kota Miura (@cmci_)

cmci_ avatar

RT @BertrandVernay: Beautiful 3D dataset; One of them is going to find its way to our @RISE_micro "Introduction to image processing and ana…
About 2 weeks, 3 days 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