0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ImageJマクロの関数で複数の戻り値を返す

Last updated at Posted at 2021-02-03

配列を返せば可能。

sample.ijm
function double(a, b) {
	a *= 2;
	b *= 2;
	return newArray(a, b);
}

のようにする。

result = double(1, 2);
//resultは長さ2の配列になり、2, 4が入る

この場合、戻り値を受ける変数resultは配列宣言しておく必要はない。強制的に配列になる。

環境 Windows10, Fiji

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?