2
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 5 years have passed since last update.

Fiji (ImageJ)のマクロで開いている画像TIFFファイルで保存する

Posted at

ウェスタンブロットで撮影したgelファイルの画像をTIFFファイルに変換することが多いので、マクロにした。

saveAsTiff.ijm
saveAsTiff();

function saveAsTiff(){
	path = getDirectory("image");
	name = getInfo("image.filename");
	saveAs("tiff", path+replace(name, ".gel", ".tif"));
}

getDirectory("image")で開いている画像のディレクトリを取得し、getInfo("image.filename")で拡張子付きのフィアル名を取得してます。saveAs()関数を利用して画像を保存する際に、ファイル名の拡張子をreplace()関数で.gelから.tifに変えてます。

自分が扱うときには、一度に複数の写真を撮るので、指定したフォルダから.gelのファイルを抜き出して、片っぱしからループでsaveAsTiff()を実行させてる。

2
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
2
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?