Skip to content

Image Registration/ズレ補正

(This page is still in Japanease only.)

Applications/アプリケーション

Install the ImageJ plugin by referring to the link above. For macOS, Right click (sub menu) on the /Application/Fiji.app > Show packege contents. Drag and drop downloaded files into /plugins. Restart ImageJ.
I chose Image Stabilizer among many registration tools. The advantage is that it can export the distance (pixels) moved as a log file. Even if there is a point where registration fails, you can correct the values in the log file to ensure successful registration. Furthermore, by doubling the values in the log file, you can apply registration to large images as well.
In 2022.June, I have developed ImageJ macro and Excel VBA to do all the registration automatically. Please refer to GitHub CoMBI_ImageJ

ImageJ/FIJIに上記リンクを参考に、プラグインをインストールします。Macの場合、Finderで操作します。/Application/Fiji.appの上で、右クリックShow packege contents/pluginsのなかにダウンロードしたファイルをドラッグ・アンド・ドロップし、ImageJ/FIJIを再起動します。
数あるRegistrationツールの中から、Image Stabilizerをえらびました。移動させた距離(ピクセル)をLogファイルとして記録シてくれるのがポイントです。万が一、ズレ補正に失敗する箇所があっても、Logファイルの数値を修正することで、ズレ補正を成功に導けます。さらに、Logファイルの数値を倍加することで、大きな画像にもズレ補正をかけられます。
現在、ImageJ macroとExcel VBAで、Registrationをすべて自動でできるようになっています。GitHub CoMBI_ImageJをご参照のうえ、ぜひご利用ください。(2022.6)

Procedure/手順

ImageJ macro is available to do steps 3-8 automatically.GitHub CoMBI_ImageJ(2022.6). Manual operetion is described below.

  1. (Preparation) Set memory size that ImageJ can use. 75% of on-board RAM is recommended.Edit> Options> Memory & Threads...> Maximum Memory. Input as MB. Ex: RAM64GB, input 42GB(42000 MB). Restart ImageJ.
  2. (Preparation) Set JPEG compression rate. Edit> Options> Input/Output...> JPEG quality (0-100). 100 is recommended. For CoMBI data, image data size are reduced to 6% by 95, 12% by 100 (Comparison with TIFF size). Image quality seems to be maintained. Do not use default value 85, since it reduces data into 2.5% and also reduces the quality of images too much.
  3. Open serial images. Drag and drop a folder containing images to ImageJ bar. Max data size is about 1000x1000 pixesl, 1000 images, though it depends on RAM. Open them all in the RAM, since Image Registration requires to do so.
  4. Plug-ins, Image Stabilizer. Registration begins from opening position. If opening the first image, register from the first to last (Forward). If opening last, register from last to first (Backward). Check Save Log. It is better to check Create as a new series if RAM is enough, since it is useful for evaluating success or failure.
  5. Browse registered series. Useful tool: Analyze>Tools>Synchronize Windows allow to compare between original series and registered series.
  6. Save as, Image Sequense... Check Use original file name
  7. Save log files. Extension is .log, but its a simple text or csv file. If you register both forward and backward, save both log files with identical names, ex. forward.log, backward.log.
  8. If you find some failure, remember the place (Image number from the front). Keep the place of failure and log files, no need to keep serial images which contains failure.

ImageJ macroで、下記の手順3-8は、自動で行えます。GitHub CoMBI_ImageJ(2022.6)

  1. (準備、済んでいれば改めては不要です)ImageJ/FIJIが利用するメモリ量を決める。搭載メモリの75%が推奨最大値。Edit> Options> Memory & Threads...> Maximum Memory。MBで入力、余裕を持って全メモリ量の75%を超えないように設定している。例えば、64GBなら42GB(42000 MB)など。入力後、いちどImageJ/FIJIを再起動する
  2. (準備、済んでいれば改めては不要です)JPEGの圧縮率を決めておく。Edit> Options> Input/Output...> JPEG quality (0-100)100をおすすめします。CoMBIの連続画像の場合、データ量はTIFF比較(フォルダの容量)で95で6%へ、100で12%へと減少し、画質は遜色ないかなといった程度です。デフォルトの85では、データ量が2.5%へとかなり減少しますが、画質はかなり低下します
  3. 連続画像をひらく フォルダごとImageJのバーにドラッグアンドドロップ。搭載メモリと相談ですが、おおかた1000x1000x1000枚の画像が限度です。メモリに展開してください。かつてはVirtual Stackでもできましたが、ImageJのバージョンアップ後、逐次保存ができなくなりました。
  4. Plug-ins, Image Stabilizer このとき一番前の画像を開いておけば、前から順にに補正をかけます。一番後ろの画像を開いておけば、後ろから補正します。Logファイルを生成するに必ずチェックをいれます。もし、メモリが潤沢なら、結果を別ファイルで表示するにチェックしたほうがよく、補正の成否確認に便利です。
  5. パラパラとめくってみて、成功していれば、ラッキー。完了です。(ちょっと便利:Analyze>Tools>Synchronize Windowsで、補正前後の連続画像を同期してめくれます)
  6. 補正に成功した連続画像を保存するには、Save as, Image Sequense... 元のファイル名を使うに、チェック。
  7. ログファイルも保存します。拡張子は、.logで、テキストファイルです。
    • 前から補正したlogファイルと、後ろから補正したlogファイルがあれば、区別できるようにファイル名をつけて保存します。例、前から.log、後から.logとか(以降の説明ではこの名称を使います)、forward.log、backward.logとか。
  8. 補正に失敗した場合、失敗箇所(前から何枚目か)のメモをとります。このメモと、logファイルさえ保存しておけば、失敗連続画像を保存する必要はありません。

Correct log file/Logファイルを修正する

If there is a failure, do not give up. Modify the Log files. The Log file has four columns of numbers as below;
ズレ補正に失敗があっても、あきらめません。Logファイルをエクセルなどで修正します。Logファイルには、4列の数値があります。

  1. Image number 画像の順番
  2. Register forward or backward (1 or -1) 補正は前に進んだか後に進んだか
  3. Horizontal correction distance ヨコの補正距離
  4. Vertical correction distance タテの補正距離

There are two types of failures, and they are recorded separately in the notes. In the figure below, "only one image jumped out" occurred in the 699th and 742nd images during forward registration. In the 762nd (forward) and 318th (backward), a "shift" has occurred. To correct these failure, the correct part of the forward.log and the correct part of backward.log are combined and saved as a new log.
補正失敗には2通りあり、失敗箇所のメモでは区別して記録します。下図では、前から補正の699、742枚目で"一枚だけ飛び出し"が起こっています。前から補正の762、後ろから補正の318では、"移動"が起こっています。失敗箇所を修正するためには、前から.logの正しいところと、後ろから.logの正しいところを合体させて、全体が正しいlogファイルを新しく作ります。

  1. "only one image jumped out"1枚だけが飛び出ている
  2. "shift" 1枚ずれるとそれ以降もずれたままになる

3D slicer open

Examle of forward and backward registraion. 前から補正と後ろから補正の結果の例

Procedure for correcting log/修正手順

Manual operetion is described below. All procedure can be done automatically using Excel macro. Refer GitHub CoMBI_artisan (2022.6).

  1. Prepare Excel, forward.log, Backward.log, Memo of failure location.
  2. Forward.log is imported into Excel, File> ImportText fileImport. Select a log file and Get Data.
  3. Text import wizard
    1. Check Delimited
    2. File origin: Macintosh for macOS 
    3. Button Next.
    4. Check Commma
    5. Button Finish
    6. Existing sheet, sheet1,
    7. Button OK
  4. Add Sheet2, and import Backward.log as same as described above.
  5. Sort Backward.log
    1. Select all four colomn.
    2. Tab Data
    3. Sort, Sort by Column A, Order A-Z,
    4. Button OK
  6. Copy and paste the sorted Backward.log in the next colomn to Forward.log(Sheet1).
  7. Correct the value at the failure location.

    1. Mark the failure location with color.
    2. In case of "one image is jumped out"

      • Add difference using a formula below.
      • (correct value)=(value before failure location) + (Correct log at the same place) - (Correct log, one cell before)
      • Apply to both horizontal and vertical correction distances.
    3. In case of "shift"

      1. In the new colomn,
      2. At the begining of "shift", add difference.
      3. After the begining point, create correct value;
        • (Correct value) = (Correct begining point value) + (Correct log, the same location) - (Correct log, one cell before)
      4. Auto Fill the formula below cells.
      5. Correct both horizontal and vertical correction distance.
        IS log補正 Correct the begining of "shift" at 699. 699以降で移動している例(上の図とは異なります) まず、新しい列で、699の正しいヨコ補正距離を計算している(緑枠)
        IS log補正 Correct the value after the begining.(タテ補正距離も計算したあと)、つぎに、正しい移動距離数値より以降のセルに、正しい移動距離をつくる
  8. Make corrected log, which has the style of log file as "title in the first line, values in the below lines, four colomn".

    1. Create new sheet.
    2. Copy and paste correct values. Edit, Paste Special..., Check Values, OK.
  9. Save as xlsx format file.
  10. Save a sheet with corrected value as a csv format file. File> Save as, File Format:csv.
  11. In Finder (macOS), rename csv file from .csv to .log. Press button use log.
  12. In Finder (macOS), open in TextEdit. Right click, Open with, TextEdit.app.
  13. Delete needless charactors. 6x(") 3x(,) in the 1st line, 3x(,) in the 2nd line. With these needless charactors, Image Stabilizer Log Applier can't recognize log files.
  14. (In the rare case, delete "space" in the 1st and 2nd lines.) IS log補正 Delete needless charactors. 余計な文字を削除

  15. File> Save. Complete!

  16. In ImageJ, open serial images and correct log file. Plug-ins, Image Stabilizer Log Applier. Note: Some versions of ImageJ/FIJI can't open log file. See below.

下記は、手作業で修正する手順です。エクセルVBAで全自動でできます。GitHub CoMBI_artisanをご参照ください。(2022.6)

  1. 用意するものは、前から.log、後から.log、失敗箇所のメモ
  2. Excelで、Sheet1に前から.logをインポートします。File> ImportText fileImportボタンファイルをえらんでGet Data
  3. Text import wizard
    1. Delimitedにチェック、
    2. File originは、MacならMacintosh 
    3. ボタンNext
    4. Commmaにチェック、
    5. ボタンFinish
    6. Existing sheet, sheet1,
    7. ボタンOK
  4. Excelで、Sheet2を用意し、上記と同様に、後から.logをsheet2にインポートします。
  5. 後から.logは降順になっているので、昇順になおします。
    1. 4列とも、選択する。
    2. タブData
    3. Sort, Sort by Column A, Order A-Z,
    4. ボタンOK
  6. 前から.log(Sheet1)のすぐ隣に、後から.log(Sheet2)をコピペする
  7. 失敗位置を修正する

    1. 失敗箇所を、色を違えるなどして、マークする。
    2. 「一枚だけ飛び出ている」場合

      • 失敗場所だけ、差分を加算する。下の式。
      • (失敗場所の本来の移動距離)=(失敗場所のひとつ前)+(正しいlogの同じ場所 - 正しいlogのひとつ前)
      • ヨコの補正距離、タテの補正距離、の両方に施すこと。
    3. 「1箇所以降ごっそり移動」の場合

      1. 新しい列で作業します。
      2. まず、ズレはじめの場所で、差分を加算して修正し(上記の式)、正しい移動距離を新しい列に記載します。
      3. つぎに、正しい移動距離数値より以降のセルに、正しい移動距離をつくります。
        • (以降の正しい移動距離)=(前項でつくった正しい移動距離)+(正しいlogの同じ場所 - 正しいlogのひとつ前)
      4. 以降セルすべてに適用します。Auto Fillという機能で、選択したセルの四角いマークを下へ伸ばします。
        IS log補正 699以降で移動している例(上の図とは異なります) まず、新しい列で、699の正しいヨコ補正距離を計算している(緑枠)
        IS log補正 (タテ補正距離も計算したあと)、つぎに、正しい移動距離数値より以降のセルに、正しい移動距離をつくる
  8. 修正がすんだら、元のLogファイルと同じデザインにします。「1行目はタイトル行、その下に枚数分の行数があって、各4桁」にします。

    1. 新しいシートをつくる
    2. そこに、計算結果の数値をコピペする。Excelなら、Edit, Paste Special..., Valuesチェック, OKボタンを使います。
  9. ここで、いったん、xlsx形式で保存しておきます。
  10. 次に、別名保存で、csv形式で保存します。File> Save as, File Format:csv CSVファイルは、Sheetごとにしか保存できません。
  11. Finderで、保存したcsvファイル名の拡張子を書き換えます。.csvから.logへ。メッセージがでて、ボタンuse logをクリック。
  12. Finderで、そのファイルをテキストエディタで開く。右クリック, Open with, TextEdit.app
  13. 余計な文字を削除する。1行目の「"」6個、「,」3個、2行目の「,」3個を削除。(この作業を忘れると、のちのLog Applierで認識してくれません。もとのLogファイルとそっくりにします。特に1行目、2行目、最終行を確認。余計なスペースがあったら削除。) IS log補正 余計な文字を削除

  14. 保存、File> Save。これで修正Logファイルの完成です。

  15. ImageJ/FIJI, Plug-ins, Image Stabilizer Log Applierにかけます。連続画像と、修正したlogファイルを開いておいてから、Applierを実行します。(注、最新のImageJ/FIJIには、logファイルを開くときにバグがあります。対策は下記)

Multiply log values/Logファイルを倍加する

For example, if "Image Stabilizer" is successfully applied to a series of 500x500 pixels, 40 µm/pixel, you can double all the values in the Log file and apply "Image Stabilizer Log Applier" to a series of 1000x1000 pixels, 20 µm/pixel. This Log Applier is low load on the computer, and can register a heavy serial images.

例えば、「500x500 pixels, 40 µm/pixel」の連続画像で、Image Stabilizer(ズレ補正)に成功すれば、Logファイルの数値ぜんぶを2倍にして、「1000x1000 pixels, 20 µm/pixel」の連続画像に、Image Stabilizer Log Applierをかけることができます。Log Applierはパソコンへの負荷が低いので、重い連続画像でズレ補正する際に、重宝しています。

Then, can values be multiplied by 4 and applied to "2000x2000 pixels, 10µm/pixel"? The data is too heavy, so you may need to be a little creative. If you prepare a serial images (e.g., 1000x1000, 10µm/pixel) with the desired area cropped, you can apply it to Applier and make a high-resolution 3D observation. "Image Stabilizer", the first step in the process, uses the block contour as the basis for the registration, so the registration can only be applied to images captureing a wide area. In contrast, "Image Stabilizer Log Applier" no longer requires the block contour, and is used for both "low-magnification 3D observation of the entire sample" and "high-definition 3D observation of only the areas you are interested. The modified log file makes such observation possible.

では、4倍にして、「2000x2000 pixels, 10µm/pixel」の連続画像にかけられるか?これは、データ量が多くなるので、ちょっと工夫が必要になるかもしれません。高精細さはそのままに、観たいところだけクロップした連続画像「例、1000x1000, 10µm/pixel」を用意すれば、Applierにかけられ、高精細観察ができます。最初に行う、Image Stabilizerは、ブロック周囲形状をズレ補正の基準にしているので、ズレ補正は、広く写した画像にしか適用できません。一方、Image Stabilizer Log Applierでは、ブロック周囲形状は、もはや必要ありません。「試料全体で低倍率の3D観察」と「観たいところだけで高精細の3D観察」を分けて行っています。倍加logファイルがそういう観察を可能にしてくれています。

How much can values be multiplied? 2x and 4x works fine in many cases. 8x 10x can register but not so properly. More than 10x ? I don't need, since the original image is up to about 8000x6000 pixels, and 1/10 is 800x600 pixels, which is light enough to register.

どこまで倍加できるのか?2倍、4倍までなら、余裕でキレイに補正してくれます。8倍、10倍は?ズレ補正が甘い場合があります、うまくいくときはうまくいきます。10倍以上の倍加は?通常そんなに倍加することはありません。オリジナル画像は最大約8000x6000 pixelsで、10分の1だと800x600 pixels。余裕でズレ補正できる軽さになるからです。

Tips/ヒント

Too slow/おそい

  • Are the images too large? Typically, I try to start with a serial images of 500x500 widh a high success rate. Once you have the log file, you can double the values to make the log applier for larger images.
  • Reduce the amount of data by resizing and cropping. Crop is done when converting from RAW to JPEG or when resizing in Photoshop or ImageJ, so that the blockface and a little of the surrounding area remain.
  • Grayscale images are lighter than color images, one-third, and suitable for registration.
  • I have also used only odd numbers or even numbers, when I sliced too thin. For macOS, first make the Finder appear vertically elongated and then select "icon view". Icons appear in two columns, then select one of the columns with the mouse and group them into a new folder.

  • 画像が大きすぎませんか。はじめは小さく縮小した連続画像からやってみて、Logファイルをゲットします。具体的には、はじめは500x500程度で、成功率は高いです。つぎに750x750程度、さらに1000x1000程度で成功すればラッキーです。Logファイルさえ入手できれば、そのまま使うもよし、数値を倍加するなどして、大きなままの連続画像に対してLog Applierするもよし。
  • 画像のデータ量を少なくする (1):縮小やクロップで少なくしています。クロップは、RAW−JPEG変換時またはPhotoshop, ImageJで縮小するときにやっていて、ブロック面と周辺少しが残る程度にしています。
  • 画像のデータ量を少なくする (2):カラー画像よりも、グレースケール画像のほうが軽いです。3分の1。
  • 画像データ量を少なくする、別の技。奇数番号だけ、偶数番号だけにしたこともあります。これは、切削を薄くしすぎた、過剰だったときに行ないます。Macの場合、まず、Finderを縦に細長く表示させ、アイコン表示にします。2列に表示されれば、マウスで片方の列だけ選択して、新しいフォルダにまとめます。

Failure/うまくいかない

  • Sometimes it works on the first try, and in rare cases, I have to struggle for two days or so. However, I have experienced over 200 samples imaged with CoMBI, and have never failed to register. I am sure we can do it. The fastest record of a successful CoMBI is that 8 mouse brain were imaged with CoMBI and images were successfully registered within 2 days.
    • Try Image Stabilizer forward and backward
    • Correct log files of Image Stabilizer
    • Apply Image Stabilizer 2 times or 3 times. Later, add up values and use for "Log Applier". To keep image quality high, do not save images every time after registration, but save log files only. Modify Log and conduct "Applier" once.
    • Make sure that images containd the conture of block. Do not crop too much.
    • Registration may fail at the block covered with debris. Discard the image covered with debris and use an adjacent image to complete. Duplicate the neighboring image and rename the file. Leave a record in the experiment notebook.
    • Registration may fail where imaging has failed. For example, a block has passed the shooting point. Discard the image covered with debris and use an adjacent image to complete. Or crop manually to make correction distance minimal.
    • If the contrast is too low, it may not work. Create high contrast series and try registration with them. Once you can get log file, you can apply othre series.

  • 一発でうまくいくときから、まれに2日間ほど悩むときもあります。しかし、これまで200サンプル以上のCoMBI撮影を経験し、ズレ補正に失敗したことはありません。きっとどうにかできるはずです。うまくいったときの最速記録は、8サンプルのCoMBI撮影からズレ補正までを丸2日間で成功させたというものです。
    • Image Stabilizerを最初の画像からやってみてだめなら、後ろからやってみる。
    • Image StabilizerのLog(前からLogと後ろからLog)を修正する。
    • 前から後から、何度でもやってみる。あとでLogを足し合わせ、Applier。毎度修正連続画像を保存していると画質が低下するので、Logは複数回分、Applierで一回にする。
  • これらでできない場合は:
    • ブロックの外周で補正がかかります。画像にブロック外周が含まれていますか?クロップしすぎていませんか。
    • ゴミがかかっている画像で、ズレ補正が失敗することがあります。ゴミをかぶった画像はすてて、隣の画像で補完してください。隣を複製し、ファイル名をかえます。実験ノートに記録をのこします。
    • 撮影に失敗した箇所で、ズレ補正が失敗することがあります。たとえば撮影ポイントを通り過ぎてしまった一コマなど。手動クリオスタットの場合にときどきあります。ひどい場合は、捨てて隣で補完します。惜しいときは、クロップ(RAW-JPEG変換時か、PhotoshopやImageJでやったか)するときに、手動でクロップ位置を修正します。
    • コントラストが低すぎると、うまくいかないかもしれません。コントラストをどぎつくしたバーションもつくってみて、Image Stabilizerをやってみます。Logファイルさえ手に入れば、好みのコントラストシリーズにもLog Applierをかけられます。

Don't give up/どうしてもだめ

Contact me. I never give up.
どうしてもダメなら、ご連絡ください。無敗ですので。

ImageJ/FIJI can't open log file/新版ImageJ/FIJIのバグ、Image Stabilizer Log Applierができない?

After updating ImageJ/FIJI to the latest version, when I open a Log file in the Image Stabilizer Log Applier, the line breaks are gone. This may be a bug when I reopen a saved Log file. Mac OS 10.15.6(August 2020), Windows 10 (October 2020), and Linux/Ubuntu 20.04 (April 2021) also show the same symptoms (Thank you! T). According to the FIJI website, a major update was made in August 2020. The bug may appear after August 2020.

ImageJ/FIJIを最新にアップデートしたら、Image Stabilizer Log ApplierでLogファイルをひらくと、改行がなくなってしまい、使えなくなります。いつもどおり、Image Stabilizerはできるし、Logファイルも正しく生成はされます。一旦保存したLogファイルを再び開くときだけのバグです。改行コードの扱いに関するようにもみえるし、FIJIがテキストファイルを認識するとき、利用するウィンドウ種の選択がおかしくなったようにもみえます。FIJIのサイトによると、2020年8月に大型アップデートを施したそうです。2020年8月Mac OS 10.15.6、および2020年10月Windows10、2021年4月Linux/Ubuntu20.04でも同様の症状がでます(Thank you! T)。いまのところ、以下の対策いずれかで使えるようになります。

1. Use ImageJ 1

Use ImageJ1 instead of FIJI/ImageJ2. version 1.53k as of 2022.6 does not cause the above problem with Image Stabilizer Log Applier. Test environment was 2022.6.3 "ImageJ 1.53k Java 1.8.0_172, macOS12.4, iMac27_2017", "ImageJ 1.53k bundled with Zulu OpenJDK 13.0.6, macOS12.4, MacBookPro16_2021_M1_max". Download from the links below, according to your environment: MacOS(Intel), MacOS(ARM), Linux, Windows. https://imagej.nih.gov/ij/download.html

FIJI/ImageJ2ではなく、ImageJ1を使う。2022.6現在のバージョン1.53kでは、Image Stabilizer Log Applierに上記のような問題は起こりません。テスト環境は、2022.6.3「ImageJ 1.53k Java 1.8.0_172, macOS12.4, iMac27_2017」、「ImageJ 1.53k bundled with Zulu OpenJDK 13.0.6, macOS12.4, MacBookPro16_2021_M1_max」です。上記のリンク先から、それぞれの環境に合わせて、ダウンロードします。MacOS(Intel), MacOS(ARM), Linux, Windows

However, MacOS (Intel mac, M1 mac) will not start straight away due to security reasons.

  1. Downloaded file will saved in Download folder. Move it to Application folder.
  2. If you try to open it by double-click in the Application folder, you will find “ImageJ.app cannot be opened because the developer cannot be verified. macOS cannot verify that this app is free from malware". Then, only Cancel can be done.
  3. Move ImageJ icon to the Dock bar by drag and drop from Application to Dock.
  4. Over the ImageJ icon in the Dock, right click > Open
  5. You will find message as "macOS cannot verify the developer of ImageJ.app. Are you sure you want to open it?". This time, you can choose Open!
  6. Once you Open, you can open ImageJ without any messages.

ただし、MacOS(Intel mac、M1 mac)の場合、セキュリティの関係で素直には起動しません。

  1. Downloadすると, Downloadフォルダに入る。Applicationフォルダに移動(ここまで通常の作業)。
  2. Applicationフォルダ内のアイコンを直接ダブルクリックしても、起動できない。“ImageJ.app” cannot be opened because the developer cannot be verified. macOS cannot verify that this app is free from malware. というメッセージが出て、Cancelを押すしかない。そこで、、、
  3. ImageJをDockにいれる。Applicationフォルダ内のアイコンをドラッグして、Dockにドロップする。
  4. Dock内のImageJアイコン上で、right click > Open
  5. 先とは異なるメッセージ macOS cannot verify the developer of “ImageJ.app”. Are you sure you want to open it? が出て、今度はOpenボタンがあります。
  6. Openボタンで一度起動させると、以降はメッセージなく、起動させられます。

2. Use old FIJI

Previous version of FIJI is available at below link. https://downloads.imagej.net/fiji/archive/

  • FIJI 20200721-1931 can open Log file. Use previous version than this.
  • FIJI 20200802-0255 or newer cannot open Log file.
  • FIJI 20220414-1745 fiji-macosx.zip cannot. (2022.6.3).

下記リンク、過去のバージョンリスト(2019.10.27-2020.8.10)には20種のバージョンがあます。 https://downloads.imagej.net/fiji/archive/

  • FIJI 20200721-1931 Logファイルは正常に開く。これより前の古いバージョンを使ってください。
  • FIJI 20200802-0255 Logファイルは直接使えない。もし、これより新しいバージョンを使わなければ行けない場合は、上記の対策1を行ってください。
  • FIJI 20220414-1745 fiji-macosx.zipやっぱりダメ。(2022.6.3検証)

3. Copy and paste

  1. Open a log file with text editor. For mac, Right click> Open with...> TextEdit.app. For windows, use memopad. Select all and copy.
  2. In ImageJ/FIJI, create new text window. For Linux, Win, Mac, File> New> System clipboard, then automatically paste values. For Mac, Plug-ins>New>Text Window... (any width, any height). Paste manually.
  3. Now, log file is available in FIJI/ImageJ.
  4. Open serial images in ImageJ/FIJI
  5. Apply "Image Stabilizer Log Applier" In case of error "Invarid log: For input string: 0", delete "space" next to 0 in the 2nd line. There may be "space" in the 1st and 3rd lines, but no need to be deleted.

  1. Logファイルをテキストとして開く。Macの場合、Finderで保存したLogファイル上で右クリック、アプリ指定で開く Open with... TextEdit.app。Windowsの場合、メモ帳で開く。すべて選択してコピー。
  2. ImageJ/FIJIで、新規のテキストウィンドウを作る。Linux, Win, Macの場合、File> New> System clipboard 上記でコピーしておいたデータがすでにペーストされています。Macの場合、Plug-ins>New>Text Window... (width, heightはなんでもよい) でもできます、手動でペーストします。(以前、Plug-ins由来のこの方法は、Mac, Winでできると記していましたが、Macだけの対応でした。すみません訂正します。2021.4)
  3. これでLogファイルが正常に開いた状態になります。以降は通常のImage Stabilizer Log Applierの手順です。
  4. ImageJ/FIJIで、連続画像を開く
  5. ImageJ/FIJI Plug-ins > Image Stabilizer Log Applier エラー 「Invarid log: For input string: "0 "」が出る場合、2行目の「0」のとなりにスペースが入ってしまっているかも知れません。2行目のスペースを削除してください。なお、1行目および3行目以降にも、末尾スペースがありますが、削除する必要はありません。